The TST350 Stage is operated through 2 virtual motors and some spock Macros.
The startup procedure
- start the script that connects to the device and starts a server ready to accept connections from virtual motors or spock macros.
- $ linkamcontrollerTCP.py -i
Enter: connect 192.168.57.198 10006
'help' for help, xget, fget should give some results
- restart the virtual motors
$ TngUtility.py --restart VmExecutor
tst350stage: p03/vmexecutor/exp.01
The vertical opening, Pool: tst350stage
Properties:
HostName: 131.169.255.159
PortNb: 23233
VmCode: /usr/local/experiment/Tango/VmCode/tst350stage.py
online.xml
<device>
<name>tst350stage</name>
<type>type_tango</type>
<module>motor_tango</module>
<device>p03/vmexecutor/exp.01</device>
<control>tango</control>
<hostname>haspp03:10000</hostname>
</device>
tst350stageForce: p03/vmexecutor/exp.02
The force, Pool tst350force
Properties:
HostName: 131.169.255.159
PortNb: 23233
VmCode: /usr/local/experiment/Tango/VmCode/tst350stageForce.py
tmo = HasyUtils.getEnv( "tst350_timeout")
coeff1 = HasyUtils.getEnv( "tst350_coeff1")
coeff2 = HasyUtils.getEnv( "tst350_coeff2")
ret = self.com( "jfopen %g %s %s %s" % (argin, tmo, coeff1, coeff2))
online.xml
<device>
<name>tst350force</name>
<type>type_tango</type>
<module>motor_tango</module>
<device>p03/vmexecutor/exp.02</device>
<control>tango</control>
<hostname>haspp03:10000</hostname>
</device> - start spock and re-load the macros
spock> relmaclib tst350stagemacros
There are some macros defined to operate the TST350 stage. They begin with 'tst350', see tst350_help
File: /home/p03user/sardanaMacros/tst350stagemacros.py