LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call same sub-VI twice ?

Solved!
Go to solution

Hello,

I'm doing data acquisition using a cDAQ, and I created a subVI doing the acquisition (and saving / export) of each module. This subVI will be called 4 times to get the 4 modules done, but I need to launch them in parallel because there is a while looping (starting and stopping the acquisition) wich is given by the master via a global variable.

Do you know is there's a way of doing so or if i'll absolutely need to completely change my code so that the subVI doesn't have a while loop ?

 

If you need more informations i'll give them ofc

 

Thx for your help !

0 Kudos
Message 1 of 2
(181 Views)
Solution
Accepted by topic author F.NIORT

If you make the subVIs reentrant, each instance can execute independently and in parallel.

 

Of course the caller also needs to be architected correctly. We can't really tell what you are doing from the sparse description.

0 Kudos
Message 2 of 2
(161 Views)