Synchronization
It is possible to synchronize SCPI commanding with GSG’s internal processing loop, with a resolution of 100 ms. This can be achieved by using the *WAI
and/or *OPC?
commands.
For example, checking that the ECEF position command is applied on next 10 Hz epoch:
sour:scen:ecefposition IMMEDIATE,1000.0,2000.0,3000.0 *OPC? sour:scen:ecefposition?
This synchronization can happen irrespective of whether an RSG command comes in.
For example, to see elapsed time “ticking” in 100 ms epochs
*OPC? sour:scen:elapsedTime? *OPC? sour:scen:elapsedTime?
In addition, this synchronization mechanism can be used to consecutively to achieve any desired synchronization rate (max resolution of 100 ms, ie. at 10 Hz). For this purpose only *OPC?
should be used. To use *WAI
for this purpose the user would need to insert a small micro sleep, or perform suitable actions, between consecutive *WAI
commands.
For example, to see elapsed time “ticking” every half a second the following commands can be looped:
... *OPC? sour:scen:elapsedTime? *OPC? *OPC? *OPC? *OPC? *OPC? sour:scen:elapsedTime? *OPC? ... syst:err?