From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Closing VI reference using .Net

So again the easiest thing to do would be to change the name of the VI so they are not the same.  If that solution doesn't work for you I may have another idea.  Since there doesn't appear to be a dipose or destroy method, you might need to close the LabVIEW Application reference instead.  Something similar to

oVI = oLabVIEWApp.GetVIReference(cfg.VIFilePath, "", false, 0);
oLabVIEWApp.Quit()

Once you have removed the LabVIEW Application from memory you can reopen the reference and try calling another VI path.  Let me know if you make any progress.

Andy F.
-----------------------------------------------------------------
National Instruments
Message 11 of 12
(954 Views)
Thanks, that is what i was doing ...... closing the LabVIEW application itself.
0 Kudos
Message 12 of 12
(939 Views)