LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run Multiple Same Vi in Parallel?

Solved!
Go to solution

This Nugget touches on spwaning off multiple VI running in parallel with unique occurences used to control each. The code is included in that thread that will demonstrate this basci design.

 

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 14
(1,544 Views)

Great stuff, 

However, I thought I shouldn't need the occurance array generation, and may simply run multiple subVIs in a parametric for loop and leave them to run, like what Lunch a Template Instance.vi in Ben's package does.

I am now only investigating if I can replace the series of (Invoke Node Invoke Method: Contral Value:Set...)s by one Call By Reference node, which can accommodate the connector pane of the subVI in one node, so all parameters can be wired up to one node, avoiding setting control values one at a time,... trying to get the concepts clear,...

 

Siamak

Message Edited by Siamak on 08-14-2009 12:40 PM
0 Kudos
Message 12 of 14
(1,532 Views)

Siamak wrote:

Great stuff, 

However, I thought I shouldn't need the occurance array generation, and may simply run multiple subVIs in a parametric for loop and leave them to run, like what Lunch a Template Instance.vi in Ben's package does.

I am now only investigating if I can replace the series of (Invoke Node Invoke Method: Contral Value:Set...)s by one Call By Reference node, which can accommodate the connector pane of the subVI in one node, so all parameters can be wired up to one node, avoiding setting control values one at a time,... trying to get the concepts clear,...

 

Siamak

Message Edited by Siamak on 08-14-2009 12:40 PM

 

Invoke node call by reference will wait for the called VI to complete so it can get the data returned by the sub-VI.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 13 of 14
(1,527 Views)

thanks Ben, this sorted out my understanding.

Siamak

0 Kudos
Message 14 of 14
(1,517 Views)