| Keysight.Visa Namespace > MessageBasedSession Class : ReadStatusByte Method |
'DeclarationPublic Function ReadStatusByte() As StatusByteFlags
'UsageDim instance As MessageBasedSession Dim value As StatusByteFlags value = instance.ReadStatusByte()
public StatusByteFlags ReadStatusByte()
public: StatusByteFlags ReadStatusByte();
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.
Current with Keysight IO Libraries Suite 18