LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What does the number returned from VISA Read STB represent?

The value seems to correspond to ibsta, but I thought Read STB returned the status of the instrument, not the bus. If the former is the case, how can the instrument have a status value of 64 (REN/40 + CIC/20 + LACS/4) since it is a counter and is not capable of being the CIC. Any thoughts?

Thanks,
Chris
0 Kudos
Message 1 of 2
(3,514 Views)
Read STB issues a *STB? command which retrieves the contents of the instrument's status byte register. Decimal 64 corresponds to bit 6 (RQS/MSS set). The device is sending SRQ. It is not the same thing as ibsta at all. Your instrument manual should have a section on it's status byte register.

And if it was ibsta, decimal 64 is still bit 6 only (2**6 = 64) and not bits 2, 5, and 6. REM, CIC, and LACS all being set would be decimal 100 (REM=64, CIC =32, LACS=4).
Message 2 of 2
(3,514 Views)