LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI waiting for another VI finishing before completing

Howdy

i have a goniometer.vi which should move the detectorarm 1°, then starts a spectrometer.vi and measures the spectrum. after completing measurements the goniospectrometer.vi should move another 1° and again...

i have made the spectrometer.vi a sub.vi and wanted to include it into goniometer.vi, but i have no idea how to tell the goniometer.vi that spectrometer.vi is ready for moving on.

thanks
Robert
0 Kudos
Message 1 of 2
(2,295 Views)
Use a while loop. Make sure that both subvi's (goniometer and spectrometer) have error in and error out. Call the goniometer vi first and spectrometer second, wire error out from the first to error in of the second. Put some kind of exit condition to stop the loop. The first vi will execute, then when it is done the second will execute. The process will repeat until the stop condition is met.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 2
(2,277 Views)