VISA Read STB Function
- Updated2025-01-28
- 2 minute(s) read
VISA Read STB Function
Reads a service request status byte byte from the message-based device specified by VISA resource name.

Inputs/Outputs
![]() VISA resource name specifies the resource to be opened. The VISA resource name control also specifies the session and class. ![]() error in describes error conditions that occur before this node runs. This input provides standard error in functionality. ![]() VISA resource name out is a copy of the VISA resource name that VISA functions return. ![]() status byte contains the status byte read from the instrument. ![]() error out contains error information. This output provides standard error out functionality. |
Status Bytes for 488.2 Instruments (GPIB, VXI, TCP/IP, USB)
This function reads a service request from a message-based device. The following details are bus-specific:
- GPIB—This function reads the status by serial polling the device.
- VXI—This function sends the Word Serial Read STB query to the device.
- USB—This function sends the device the Read Status Byte command on the control pipe.
Status Bytes for Non-488.2 Instruments (Serial Instr, TCP/IP Socket, USB Raw)
This function retrieves status information by sending a message in response to a service request. For a session to a Serial Instr or Ethernet Socket, if the property IO Protocol is Serial-TCPIP/488 (4), the device is sent the string "*STB?\n" and then the device status byte is read; otherwise, this operation is not valid.