ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA resource connected

Solved!
Go to solution

Hi,

 

I would like to check if a VISA ressource is already in use.

 

This seems to be indicated by this symbol in the VISA resource name control:

THBU_0-1575901125586.png

 

Where can I find documentation about the meaning of this symbol? 

Is it possible to read the status of the connection programmatically in code?

 

Thank you!

 

Thomas

0 Kudos
Message 1 of 3
(3,035 Views)
Solution
Accepted by THBU

Hi Thomas,

 

You can read open VISA sessions using this code:

 

OpenSessions.png

 

Regards,

Vilius

 

 

 

0 Kudos
Message 2 of 3
(2,587 Views)

Thank you, Vilius

 

If someone else should look for this VI, it is located in Program Files (x86)\National Instruments\LabVIEW 2019\vi.lib\Utility\visa.llb

0 Kudos
Message 3 of 3
(2,578 Views)