ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear a reference?

Mjello!

I have a program which runs different .vi's depending on the connected hardware. I have a variable that holds a reference to the last used .vi... My problem is how to clear such a reference manually -- so that I get "not a refnum/NaN" if I try using it?


Giddy up!
Martin
0 Kudos
Message 1 of 3
(3,188 Views)
I see that the "Close Reference" function does it. However, I still find it unlogical. Why can't there be a constant that I can use in an assignment?

Another Q: Is there any way to check whether or not a .vi is running?


- Martin
0 Kudos
Message 2 of 3
(3,188 Views)
Do not answer last Q here. I will make another thread.

Sorry about the SPAM effect.

- Martin
0 Kudos
Message 3 of 3
(3,188 Views)