LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate execution of VIs

Hello.
Please,can you tell can I make some VI to execute one by one in main VI.
For example,we chose option "Start test" and then DAC Voltage begins to execute,after that it writes some data to database,then next VI goes and so on.
After all VIs executed we have report based on database with the results this VI's  work.
Thank you!
0 Kudos
Message 1 of 2
(2,530 Views)
You have a lot of options. The simplest is just to have error in/error out connections on each of your subVIs. LabVIEW is a dataflow language and by wiring error out to error in of some other subVI, the dataflow connection enforces execution order. A sequence structure does the same thing but doesn't need dataflow. I'm not a big fan of sequence structures though. A more sophisticated aprroach would be a state machine. There are shipping examples of this and templates of these are part of the design patterns you can choose from when you select File>New.
0 Kudos
Message 2 of 2
(2,524 Views)