Chapter 5
S Mode Functions
© National Instruments Corp.
5-53
GPIB-SCSI-A User Manual
loc
(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-SCSI-A to send the Go To Local (GTL) command to
the GPIB device with primary address 1, secondary address 2.
Build SCSI Command Descriptor Block (CDB)
Byte 0 = 0xCA
Byte 1 = 0x08
Byte 2 = 0x14
Byte 3 = 0x00
Byte 4 = 0x00
Byte 5 = 0x00
2.
Request the GPIB-SCSI-A to configure itself for local program mode.
Build SCSI Command Descriptor Block (CDB)
Byte 0 = 0xCA
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