LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best way to send data to another VI (opened by reference)?

I have a main VI who opens a subvi by reference (let say VI1).  I can call the VI1 several time during a test (to change the configuration of the test during execution). 

 

 

In the previous versions:

- Invoke node FP.open

- Invoke node CtrlValSet for each data I sent

- Invoke node Run VI. 

 

It is working fine but the diagram is a mess for the CtrlValSet(up to 9).

 

I try to improve the code and I made an attachment with a simplified version (of my current code).  I need advice and comment to improve this(maybe restart from scratch?).

 

My main VI opens 5 differents VIs by reference and I try to standardize the sequence: open VI, send the data and run.

 

 

Jean-Marc

0 Kudos
Message 1 of 3
(3,320 Views)
If I were you I would consider looking at using queues, notifiers or shared variables rather than references and directly interacting with the front panel controls. Any of these approaches is more flexible and extensible.


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 3
(3,310 Views)

Thanks Mark,

 

I will seriously consider those possibilities.

 

Jean-Marc

0 Kudos
Message 3 of 3
(3,288 Views)