LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I programatically run a sequence of vis from a list of available vis

I have several vis that are indivual tests and I need a way to run some or all of these vis in a sequencial order (programatically). The sequence list (and order of execution) will be derived from a text file that is created from a "test procedure configuration" vi that I have developed. (Labview full development only)
0 Kudos
Message 1 of 4
(2,959 Views)
For some basic examples, look at the shipping examples called Test Sequencer and State Machine Test Sequencer. The examples can be easily modified to load test numbers from a file. One step up is to load the names of the tests from the file and call the VIs dynamically. To step all the way, you might want to look at NI's TestStand. It's a great product that easily handles what you want and takes care of the limit comparisons, report generation, datalogging, so that you can concentrate on writing the actual tests and not on maintaining your own test executive.
0 Kudos
Message 2 of 4
(2,959 Views)
Thanks for the tip. Test Stand is not an option for me. I was hoping that someone had a VI that they were willing to share. I searched NI site and couldn't find anything close to what I'm trying to accomplish. I had already looked at the two examples that you talk about. If I were to build on this, I would need to program each and every one of my test vis into the sequencing vi? I don't want to go that way if I can help it. Any further comments are appreciated.
Thanks
0 Kudos
Message 3 of 4
(2,959 Views)
You don't have to program your test VI's into the sequencer if you call them dynamically. Look at the example called Plug In Example. What you want to do is similar. Read the text file and return an array of VI paths. This array could go into a for loop or while loop with the array auto-indexed and providing the VI path to the Open VI Reference/Call By Reference Node. If you go this route, each test VI has to have the same connector pattern. An output cluster with test results and an error cluster would seem to be about the minimum.
0 Kudos
Message 4 of 4
(2,959 Views)