07-25-2016 01:19 PM
I want to open a vi dynamically, at the same time I have to pass a parameter to the dynamically opened VI. Is there any way to do so?
Thank You
Skaria Roy
LabVIEW Enthusiast
Solved! Go to Solution.
07-25-2016 01:21 PM
check here https://zone.ni.com/reference/en-XX/help/371361M-01/lvconcepts/dynamic_loadcall_vis/
07-25-2016 01:37 PM
Thank you for the reply. Will this open (popup) the VI? I want to popup another vi when a push button is pressed. I have to pass two variables the popup VI.
07-25-2016 02:01 PM
Yes, it does.
Use Help->Find Examples->Search for asynchronous call and collect example for more details.
07-25-2016 03:21 PM
Thank you so much for the reply. But when I tried wiring the OpenVI reference to the cally by reference node it is giving an error. " The refrence input for all styles of call by refrence nodes must ber strict VI reference"
07-25-2016 03:36 PM
07-25-2016 03:52 PM
Did you notice that the Open VI Reference function has an input on the top called "type specifier VI Refnum"? This is where you need to pass a strictly-typed VI Refnum of the VI you wish to call (as that includes the configuration of the Connector Pane). The "cleanest" way to do this is with a Static VI Reference (made Strictly Typed) "pointing to" the VI you are calling, but that sort of defeats the "Dynamic" (or "known only at Run Time") point.
How "Dynamic" does this have to be?
07-25-2016 06:34 PM
I tried the method above getting error. LabVIEW: VI Reference type does not match VI connector pane.
07-25-2016 11:38 PM
I don't understand what you did, but it wasn't what we tried to tell you to do. Please attach your VI (the actual VI itself -- don't waste our time attaching a picture of the Block Diagram) that exhibits the error, and we can probably tell you (a) why you are getting an error, and (b) how to fix it.
Bob Schor
07-26-2016 01:50 AM
What have you tried and done so far?
-Please post vi or snippet of what you tried.