Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

how to control mult_instrument cooperating

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

123456.jpg

0 Kudos
Message 1 of 2
(4,039 Views)

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.

greetings from the Netherlands
0 Kudos
Message 2 of 2
(4,011 Views)