LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically call a VI in an executable without including it in Source Files or without using a static VI reference

Am I right, your plan is to change a strict typedef with the runtime version? 

Are you sure that this is gonna work? If you change a typedef I think your VIs have to be recompiled which isn't working in the runtime environment.

Or is your plan to e.g. change individual elements of an array of clusters?

0 Kudos
Message 11 of 16
(712 Views)

That doesn't seem like you are changing the typedef.

It seems you are just changing the value of the control that happens to be a typedef control.

0 Kudos
Message 13 of 16
(682 Views)

And now for something completely different...

 

Another approach to launching VIs is to not use the call by reference node but rather...

 

Open a reference to the VI based on its path on disk

Use Invoke Node >>> Control Value >>> Set

After setting all of the inputs the way you want...

Use Invoke Node >>> Run VI

 

Using that approach lets you invoke VIs with diverse icon connectors. You need only know the names of the inputs you want to set and ensure you are passing the correct data type.

 

Yes, it is a bit more work (as was a lot of things in the old days when we had to make due stone knives and bear skins) but it is another approach that may help out.

 

Ben

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

Thank you Ben I will give it a try.

0 Kudos
Message 15 of 16
(661 Views)

Yes I am changing the value of Control that is a typedef.

0 Kudos
Message 16 of 16
(640 Views)