How to Acquire a List of Open VISA Sessions in LabVIEW

Updated Jan 2, 2018

Reported In

Software

  • LabVIEW Full
  • LabVIEW Base

Driver

  • NI-VISA

Issue Details

How do I get an array or list of all open VISA sessions in LabVIEW? I understand that the VISA Find Resources function node in LabVIEW can give me an array or list of available VISA resources on my machine.

Solution

Two VIs exist that list all active VISA sessions in LabVIEW.
  • Open Sessions.vi returns an array of all the active VISA sessions on that machine
  • Open VISA Session Monitor.vi is a standalone VI that allows a user to monitor all open VISA sessions on that machine over time

Additional Information

Both of the above VIs are located in the visa.llb stored at the following directory: \vi.lib\Utility.

A text-based equivalent of the Open Sessions.vi does not currently exist, as it is unique to the LabVIEW development environment.

 

WAS THIS ARTICLE HELPFUL?

Not Helpful