Keysight VISA.NET Help
ReadStatusByte Method (MessageBasedSession)



Reads the status from the device. For 488.2 instruments, this is the 488.2 status byte.
Syntax
'Declaration
 
Public Function ReadStatusByte() As StatusByteFlags
'Usage
 
Dim instance As MessageBasedSession
Dim value As StatusByteFlags
 
value = instance.ReadStatusByte()
public StatusByteFlags ReadStatusByte()
public:
StatusByteFlags ReadStatusByte(); 

Return Value

A value that indicates which status byte bits are set.
Remarks

For a session to a Serial device or TCPIP socket, if IOProtocol is Ieee4882, this method sends the string "*STB?\n" to the device, and reads the status byte. If IOProtocol is not Ieee4882, this method cannot return the status byte. If the status information is only one byte long, the most significant byte is returned with the zero value. If the service requester does not respond in the actual timeout period, the method times out.

For a session to a USB instrument, this function sends the READ_STATUS_BYTE command on the control pipe.

Requirements

Current with Keysight IO Libraries Suite 18

See Also

 

 


© Keysight Technologies 2015-2025