This is the general procedure to prepare a virtual counter, explained
by an example returning the time (Jan Kotanski):
- create a VC script, e.g. using python `time.time()` or `datatime.datatime`
and save it in to some directory e.g. /usr/local/experiment/Tango/VcCode/
(you can check `VcCode` properties of your other VcExecutors)
- run jive: Edit -> Create Server -> ...
for example:
Server:
VcExecutor/SystemTime
Class:
VcExecutor
Device:
p23/vcexecutor/systemtime
- set its VcCode Property in jive to /usr/local/experiment/Tango/VcCode/<my_script.py>
where <my_script.py> is the name of a script you have created
- start new server VcExecutor/SystemTime in astor
- add the VcExecutor to online.xml
<device>
<name>systemtime</name>
<type>counter</type>
<module>counter_tango</module>
<device>p23/vcexecutor/systemtime</device>
<control>tango</control>
<hostname>hasep23eh:10000</hostname>
</device>
- run SardanaAIO.py -x