LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to pass arguments to subvi that runs in parallel to main vi.

Solved!
Go to solution

Please help me.

 

I can successfully pass arguments to a sub-vi using "call-by-reference-node" but the sub-vi will not run in parallel.  I can also run my sub-vi in parallel by using "invoke node", but then cannot pass arguments.  I can't seem to figure out how to merge these two concepts together.

 

When I open the VI reference, I have to specify the strict type, when using call-by-reference-node.  When I use invoke node, I don't specify the type.  It seems that specifying the strict type keeps the VIs from running in parallel, but also seems necessary to pass arguments.

 

I apologize for my lack of a deeper understanding of this and appreciate any help you can give me.

 

Chris

 

0 Kudos
Message 1 of 5
(2,579 Views)
Solution
Accepted by topic author ctojeira

You need the invoke node "Ctrl Val.Set".

Download All
Message 2 of 5
(2,553 Views)

Is your vi reentrant? Also each call by reference needs it's own static vi reference constant. (I think)

 

Capture.PNG

=====================
LabVIEW 2012


0 Kudos
Message 3 of 5
(2,544 Views)

The code in this Nugget may help get you started.

 

Preview...

 

 

It launches multiple FPs to simulate each notes from an Aimusic video.

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 5
(2,529 Views)

FANTASTIC, Jean-Marc!!!!!

 

Thank you for your great insight!!!!

 

Chris

0 Kudos
Message 5 of 5
(2,509 Views)