S Mode Functions
Chapter 5
GPIB-SCSI-A User Manual
5-16
© National Instruments Corp.
cac
(continued)
Examples:
Note:
Because the only difference between Examples 1 and 2 is the
CDB, only the place where the CDB is created is repeated.
Example 2 contains the entire program sequence.
1.
Request the GPIB to become Active Controller of the GPIB
immediately.
Build SCSI Command Descriptor Block (CDB)
Byte 0 = 0xC0
Byte 1 = 0x00
Byte 2 = 0x00
Byte 3 = 0x00
Byte 4 = 0x00
Byte 5 = 0x00
2.
Request the GPIB-SCSI-A to become Active Controller of the GPIB
synchronously.
Build SCSI Command Descriptor Block (CDB)
Byte 0 = 0xC0
Byte 1 = 0x00
Byte 2 = 0x00
Byte 3 = 0x01
Byte 4 = 0x00
Byte 5 = 0x00
SCSIArbitrate
SCSISelect(GPIB-SCSI-A id)
SCSICmd(CDB)
SCSIStatus(Sbyte)
SCSIMesgIn(Mbyte)
ErrorCheck