03-22-2013 02:57 PM
I have a question regarding active VISA sessions and how to determine them.
My understanding, via http://www.ni.com/support/visa/vintro.pdf , is that if a session is opened with an instrument but never closed, it begins to take up system resources. I also understand that I can use the FindReferences(string) command to find all the Resources in a system. What I don't know how to do is find the Sessions in a system. Is this possible?
For instance, let's say a session is opened in C++, but this program crashes. I'd like to be able to develop a C# program which can find this active session and close it. The link above seems to imply that LabVIEW is capable of finding open sessions and creating links to them, but I can't seem to determine how this is done in .NET.
For reference, I am using Visual Studio 2012, Measurement Studio 2013, the latest VisaNS DLL, and am targeting .NET Framework 4.5.
Thank you!
03-26-2013 08:54 AM
Hi piercel
I have been looking for a function similar to the one that LabVIEW has, but unfortunately it seems that for C# there is not any function available to do this. You can also have a look to the VISA manual
Regards
Esteban R.
09-21-2018 01:41 PM - edited 09-21-2018 01:42 PM
Hi,
I am facing the same issue here. Is there a way to list all the VISA Sessions that are open and close them in C# ?
regards,
Cedric.