S Mode Functions
Chapter 5
GPIB-SCSI-A User Manual
5-68
© National Instruments Corp.
rd
(continued)
2.
Use
rd
with the SCSI disconnection/reconnection capability to read
34,300 bytes from the GPIB device at primary address 2 and secondary
address 10.
Build SCSI Command Descriptor Block (CDB)
Byte 0 = 0xCF
Byte 1 = 0x10
Byte 2 = 0x54
Byte 3 = 0x85
Byte 4 = 0xFC
Byte 5 = 0x00
SCSIArbitrate
SCSISelectATN(GPIB-SCSI-A id)
SCSIMesgOut(0xc0)
SCSICmd(CDB)
While Not Done
While SCSI phase = Data In
SCSIRead(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 In 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 ...