Chapter 5
S Mode Functions
© National Instruments Corp.
5-75
GPIB-SCSI-A User Manual
rqsns
(continued)
Example:
Request the GPIB-SCSI-A to return to the Initiator 16 bytes of sense
data during the Data In phase.
Build SCSI Command Descriptor Block (CDB)
Byte 0 = 0x03
Byte 1 = 0x00
Byte 2 = 0x00
Byte 3 = 0x00
Byte 4 = 0x10
Byte 5 = 0x00
SCSIArbitrate
SCSISelect(GPIB-SCSI-A id)
SCSICmd(CDB)
SCSIRead(databuffer, 16)
SCSIStatus(Sbyte)
SCSIMesgIn(Mbyte)
ErrorCheck