GPIB Status

Shows the present status of the GPIB Controller indicated by address string.

address string contains the address of the GPIB device with which the function communicates. You can input both the primary and secondary addresses in address string by using the form primary+secondary. Both primary and secondary are decimal values, so if primary is 2 and secondary is 3, address string is 2+3.

If you do not specify an address, the functions do not perform addressing before they attempt to read and write the string. They assume you have either sent these commands another way or that another Controller is in charge and therefore responsible for the addressing. If the Controller is supposed to address the device but does not do so before the time limit expires, the functions terminate with GPIB error 6 (timeout) and set bit 14 in status. If the GPIB is not the Controller-In-Charge, do not specify address string.

When there are multiple GPIB Controllers that LabVIEW can use, a prefix to address string in the form ID:address (or ID: if no address is necessary) determines the Controller that a specific function uses. If a Controller ID is not present, the functions assume Controller (or bus) 0.

error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurs before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
status The following table shows the numeric value and symbolic status of each bit in status. This table also includes a description of each bit.

Status Bit Numeric Value Symbolic Status Description
0 1 DCAS Device Clear state
1 2 DTAS Device Trigger State
2 4 LACS Listener Active
3 8 TACS Talker Active
4 16 ATN Attention Asserted
5 32 CIC Controller-In-Charge
6 64 REM Remote State
7 128 LOK Lockout State
8 256 CMPL Operation Completed
12 4096 SRQI SRQ Detected while CIC
13 8192 END EOI or EOS Detected
14 16384 TIMO Timeout
15 -32768 ERR Error Detected
GPIB error contains the most recent error code reported by any of the GPIB functions. The following table shows the possible values for GPIB error if bit 15 of status is set.

GPIB Error Symbolic Status Description
0 EDVR Error Connecting to Driver
1 ECIC Command Requires GPIB Controller to be CIC
2 ENOL Write Detected No Listeners
3 EADR GPIB Controller Not Addressed Correctly
4 EARG Invalid Argument or Arguments
5 ESAC Command Requires GPIB to be System Controller
6 EABO I/O Operation Aborted
7 ENEB Non-existent Board
8 EDMA DMA Hardware Not Detected
9 EBTO DMA Hardware uP Bus Timeout
11 ECAP No Capability
12 EFSO File System Operation Error
13 EOWN Shareable Board Exclusively Owned
14 EBUS GPIB Bus Error
15 ESTB Serial Poll Byte Queue Overflow
16 ESRQ SRQ Stuck On
17 ECMD Unrecognized Command
19 EBNP Board Not Present
20 ETAB Table Error
30 NADDR No GPIB Address Input
31 NSTRG No String Input (Write)
32 NCNT No Count Input (Read)
61 EPAR Serial Port Parity Error
62 EORN Serial Port Overrun
63 EOFL Port Receive Buffer Overflow
64 EFRM Serial Port Framing Error
65 SPTMO Serial Port Timeout, Bytes Not Received at Serial Port
byte count is the number of bytes the previous GPIB operation sent.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.