@Kevin_Price wrote:
As a public service FYI:
This will only identify VISA sessions that are part of the same execution context. A colleague tried it out from the dev environment while an EXE was holding a particular COM port open and the EXE's session wasn't in the VISA array. Which is how it *should* work -- there's a good reason for it *not* to be included. So this isn't a complaint, just an FYI.
-Kevin P
I just got some time to dig into this a little more. Sitting right next to Open Sessions.vi on disk is Open VISA Session Monitor.vi. This looks like a great debugging tool for VISA sessions as far as seeing what is open and forcing sessions to close. It does look like it was written in the 5.1 days, but it does look like it does the job (I would refactor it to use an Event Structure instead of all the case structures for the buttons).
For those wanting to dig, these two VIs are located at <vi.lib>\Utility\visa.llb.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5