Chapter 5
S Mode Functions
© National Instruments Corp.
5-89
GPIB-SCSI-A User Manual
stat - Return GPIB-SCSI-A Status
Type:
General Use function
Purpose:
Use
stat
to obtain the status of the GPIB-SCSI-A to see if
certain conditions are currently present.
stat
is used most
often to see if the previous operation resulted in an error.
stat
is also used to configure the GPIB-SCSI-A for
continuous status reporting.
Format:
Bit
7
6
5
4
3
2
1
0
Byte
0
Opcode = D7H
1
Reserved
2
Reserved
3
Reserved
Mode
4
Allocation Length
5
Reserved
Remarks:
The Allocation Length indicates the number of bytes that the
Initiator allocates for returned status information. An
Allocation Length of zero indicates that no bytes of status
information are transferred. Any other value indicates the
maximum number of bytes that are transferred, up to eight.
The GPIB-SCSI-A terminates the Data In phase when
Allocation Length bytes have transferred or when all available
status information has transferred to the Initiator, whichever is
less.
Use
stat
frequently in the early stages of your program
development when the responses of your device are likely to
be unpredictable.