From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to check visa if the instrument is busy?

Hi, I'm try to code on labview to check for status of a GPIB instrument is busy or not. I think we can use visa check status to check for this. can anyone let me know how please?

 

thanx.

0 Kudos
Message 1 of 4
(2,909 Views)
VISA doesn't know if your instrument is busy or not. Your instrument will have to tell you that. See if you can do an OPC? query or read the status byte.
0 Kudos
Message 2 of 4
(2,895 Views)

Perhaps you mean you want to check if the instrument is available? In that case, just try to open a handle to the instrument and check the error.

 

Or maybe you want to check if the handle to the instrument is still valid? You can use the "Not A Number/Path/Refnum?" to check that.

 

If not, please give more details.

www.vartortech.com
0 Kudos
Message 3 of 4
(2,891 Views)

Hi Enrique,

 

Thanks for your response. I'm trying to query current from a power supply every second and skip if it be use by other. Can I use "Visa Wait on Event"?

 

thank you,

0 Kudos
Message 4 of 4
(2,866 Views)