Determines the status of a specified GPIB board.
[ lStatus = ] GpibStatus ( lBoard )
The GpibStatus procedure syntax has the following parts:
Name |
Type |
Description |
lStatus |
Long |
Status |
lBoard |
Val Long |
Board address |
This function reads the current state of the SRQ and NDAC lines of the specified GPIB board.
The hexadecimal format of the lBoard parameter is as follows:
lBoard = 0xBB0000
Where:
BB = Board address (1 - 9)
This function returns a Long integer containing the status: Bit #0 (LSB) designates the state of SRQ line (1 for set, 0 for clear); Bit #1 designates the state of NDAC line.
A return value of -1 indicates that an error occurred during execution.
The following command reads the status of GPIB board #2 and determines if the SRQ line is asserted:
lStatus=GpibStatus(0x20000)
lSrqOn = lStatus <> -1 and (lStatus and 1)