LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get a reference to an open vi

Is it possible to get a reference of a VI in memory without having the path?

I know it is possible to get all VI in memory. But I would like to get a reference of all VI in memory as well...

thanks,

Nitrof
0 Kudos
Message 1 of 2
(2,653 Views)
The Open VI Reference can take a string on the path input. The string must be the name of a VI that is already in memory. (filename.vi) If the VI is not in memory, it will generate an error.

So all you need to do is get your array of all VIs in memory, then index this into an Open VI Reference function and you'll have a reference to everything in memory.

Just don't forget to close all those references when you're done with them.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 2
(2,653 Views)