LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use select a vi function inside a loop?

I am modifying the notifier basics part 2.vi to send a notifier to each of 64 sub-vi's. How can you use the 'select a vi' function inside a loop for 64 iterations to access the individual filenames??
0 Kudos
Message 1 of 2
(2,566 Views)
If all you are trying to do is send notifiers to each of these 64 subVIs, I would suggest not doing it in a loop, but rather just placing the 64 subVIs in your diagram.

The alternative is of course to use the call by reference node and have an array of VI names. This is a little cleaner on the diagram, but 1) doesn't occur in parallel and 2) is a bit tricky. Additionally, you have to be sure that your array of filenames is correct, and that you NEVER move or rename those VIs. Of course, you could always put them in a directory and create an array by reading the directory contents.

Either way, good luck, it doesn't sound like fun.
0 Kudos
Message 2 of 2
(2,566 Views)