LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running the same VI concurrently

How do I run the same VI from two different location in my block diagram. I need the VIs to run concurrently. For eg. consider ABC.vi

I use ABC.vi in one stack and I have ABC.vi in another stack so when I execute the block diagram both stacks will run. But I only get one of the ABC.vi running at any one time. The other ABC.vi will have to wait until the first one completes. Thanks
0 Kudos
Message 1 of 3
(2,839 Views)
Set the VI as "reentrant". (In File...VI properties...execution).
Message 2 of 3
(2,839 Views)
You should probably do a little reading to learn about reentrant VIs so you know when and when not to use them. There is an application note (Using LabVIEW to Create Multithreaded Applications for Maximum Performance and Reliability) which discusses marking VIs as reentrant (section labelled Simultaneously Calling SubVIs from Multiple Places). You can get a link to this app. note by opening LabVIEW's help, selecting the Index Tab and entering "reentrant" (or just select the link above 🙂 ).
0 Kudos
Message 3 of 3
(2,839 Views)