Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

How to unlock the resource if it is locked with error code BFFF000FF

$
0
0

Hi,

 

I am using NI Visa library (NI Visa version4.6.2) for my applicaiton which written in C#.

Sometimes, the program might catch below error by using the exception handling function that halted my program. 

At this point, the VISA Sessions are still open and locked.
 

NationalInstruments.VisaNS.VisaException: Specified type of lock cannot be obtained, or specified operation cannot be performed, because the resource is locked. VISA error code -1073807345 (0xBFFF000F), ErrorResourceLocked

 

So, is there a way for me to programmatically unlock or close all VISA sessions on my machine, without knowing the handles

to the sessions in advance?

 

Thanks,

aiheong


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>