S Mode Functions
Chapter 5
GPIB-SCSI-A User Manual
5-96
© National Instruments Corp.
stat
(continued)
Examples:
1.
Request the GPIB-SCSI-A to return to the Initiator all eight bytes
of the internal status recorded by the GPIB-SCSI-A.
Build SCSI Command Descriptor Block (CDB)
Byte 0 = 0xD7
Byte 1 = 0x00
Byte 2 = 0x00
Byte 3 = 0x00
Byte 4 = 0x08
Byte 5 = 0x00
SCSIArbitrate
SCSISelect(GPIB-SCSI-A id)
SCSICmd(CDB)
SCSIRead(statusinf, 8)
SCSIStatus(Sbyte)
SCSIMesgIn(Mbyte)
ErrorCheck
2. Configure the GPIB-SCSI-A for continuous status reporting. Send the
sic
command, then read the continuous status information returned
after its execution.
Build SCSI Command Descriptor Block (CDB) for
the stat command
Byte 0 = 0xD7
Byte 1 = 0x00
Byte 2 = 0x00
Byte 3 = 0x01
Byte 4 = 0x08
Byte 5 = 0x00