05-09-2014 12:29 AM
Hi,
Now I can control a single intrument.Howerve, now I want to control two instruments which need to be cooperating.
one is Translation Stages,the other is oscilloscope.the translation stage move some distance,then ask it if it is finished,if finished,let oscilloscope get a waveform,the ask if the oscilloscipe finished,the let the tranlation stages move some equall distance,again and again.
I need help how to do this. I don't know how to program so that they can be cooperating.
anything is helpful would be highly appreciated.
yong
05-09-2014 03:46 PM
Hi
The best way to cooperate with instruments is
1) use existing drivers and hide the vis read and write in subvi's to keep an overview in your main program.
2) use error in an error out to synchronise between the subvi's.
I mean that a subvi only is called when all wires to its icon are available, and that means that the vi where a wire is coming from has finished.