In [1]:
from pytemca.scope import scope

In [2]:
scope = scope.ScopeConnection(5)

In [3]:
scope.beep()


Out[3]:
''

In [4]:
scope.htcond(80, 120, 3)


Out[4]:
True

In [33]:
scope._send_command("DMPLNS\r")


Out[33]:
'?W:DMPLNS#\r'

In [34]:
scope._send_command("LCURDA 00\r")


Out[34]:
'OK:LCURDA [ 0,8307]'

In [35]:
scope._send_command("DCURDA 00\r")


Out[35]:
'\rOK:DCURDA [ 0,    32,   -56]'

In [29]:
scope.close()

In [52]:
scope._send_command("OBJF\r")


Out[52]:
'\rOK:OBJF [     0]'

In [93]:
for i in range (0, -327670, -1000):
    scope.beep()
    o.append(scope.set_obj_focus(i))

In [162]:
scope.set_obj_focus(-32760)


Out[162]:
'\rOK:OBJF [-32760]'

In [161]:
scope.set_obj_focus(32767)


Out[161]:
'\rOK:OBJF [ 32767]'

In [125]:
scope.set_obj_focus(100)


Out[125]:
'\rOK:OBJF [   100]'

In [120]:
scope.set_obj_focus(-100)


Out[120]:
'\rOK:OBJF [  -100]'

In [96]:
scope.set_obj_focus(16000)


Out[96]:
'\rOK:OBJF [ 16000]'

In [57]:
o = []
for i in range (0, 10):
    scope.beep()
    o.append(scope.get_lens_current(i))
print str(o)


['8307', '7FFF', '86FF', '7FFF', '8848', '886F', '8000', '8000', '864A', '84AB']

In [42]:
o = []
for i in range (0, 10):
    #scope._send_command("BEEP\r")
    o.append(scope._send_command("LCURDA " + str(i) + "\r"))
print str(o)


['\rOK:LCURDA [ 0,8307]', '\rOK:LCURDA [ 1,7FFF]', '\rOK:LCURDA [ 2,877F]', '\rOK:LCURDA [ 3,7FFF]', '\rOK:LCURDA [ 4,8868]', '\rOK:LCURDA [ 5,886A]', '\rOK:LCURDA [ 6,8000]', '\rOK:LCURDA [ 7,8000]', '\rOK:LCURDA [ 8,862F]', '\rOK:LCURDA [ 9,8500]']

In [5]:
scope.close()

In [ ]: