LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

closing Instrument handles

If I use NI-Switch to get an instrument handle and set a bunch of switches, do I need to keep track of it like a reference with a FGV or something in order to close it? Or if I initialize again to close it, is it the same one? Hope that makes sense.
0 Kudos
Message 1 of 3
(2,889 Views)

Can you clarify that a little? You should not reinitialize a session that is already open, so you should be keeping track of your session info in some form in order to close it. In addition, not closing a session can cause memory leaks. I have included a link to one of the NI Switch help documents that may help you get started.

http://zone.ni.com/reference/en-XX/help/375472A-01/switch/programming/

Maggie M.
Application Engineer
National Instruments.
http://www.ni.com/support
0 Kudos
Message 2 of 3
(2,844 Views)

I acutaully realized I can close it and the switches stay where they are, which makes sense I guess.

0 Kudos
Message 3 of 3
(2,837 Views)