Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to unlock a resource if the locking session has failed?

If part of a system takes an exclusive lock to a resource and then fails without unlocking that resource, is it possible for some other part (which would not have the same session to the resource) to unlock the resource? If not, are you forced to go to such extremes as cycling power to unlock the resource?

If this helps, I am running Visual Studio on NT.

thanks!
0 Kudos
Message 1 of 2
(3,255 Views)
Hello Beth,

Are you using VISA? If you are, you may be able to close the open reference by using viClear.
For more information on using this function, see chapter 5 of the NI-VISA Programmer Reference Manual (see link below).

http://digital.ni.com/manuals.nsf/web%2Fbyproductcurrent?OpenView&Start=1&Count=500&Expand=6.16#6.16

Good luck!

Kim L.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,255 Views)