S Mode Functions
Chapter 5
GPIB-SCSI-A User Manual
5-114
© National Instruments Corp.
wrt
(continued)
2.
Use
wrt
with the SCSI disconnection/reconnection capability to write
1,500 bytes of data to the GPIB device at primary address 2 with no
secondary address.
Build SCSI Command Descriptor Block (CDB)
Byte 0 = 0xDB
Byte 1 = 0x10
Byte 2 = 0x00
Byte 3 = 0x05
Byte 4 = 0xDC
Byte 5 = 0x00
SCSIArbitrate
SCSISelectATN(GPIB-SCSI-A id)
SCSIMesgOut(0xc0)
SCSICmd(CDB)
While Not Done
While SCSI phase = Data Out
SCSIWrite(buffer, 1)
Increment buffer pointer
If SCSI phase = Message In
SCSIMesgIn(Mbyte)
If Mbyte = SAVE DATA POINTER
Set up necessary conditions and
wait to be reconnected by the
GPIB-SCSI-A. Upon reconnection,
the GPIB-SCSI-A enters the
Message In phase and sends an
IDENTIFY message of 0x80. The
Data Out phase should resume.
Содержание GPIB-SCSI-A
Страница 20: ......
Страница 27: ......
Страница 355: ...Appendix C Operation of the GPIB National Instruments Corp C 7 GPIB SCSI A User Manual Figure C 2 Linear Configuration ...
Страница 356: ...Operation of the GPIB Appendix C GPIB SCSI A User Manual C 8 National Instruments Corp Figure C 3 Star Configuration ...