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