G Mode Functions
Chapter 7
GPIB-SCSI-A User Manual
7-24
© National Instruments Corp.
dtout
(continued)
ibwrt (gpibscsia, "selwo\n", 6);
/* Continue with the operation. After each
* step, check the status as you did after
* getscsi above. Because this does not show
* anything new, it is not done further in this
* example. selwo causes the GPIB-SCSI-A to
* attempt selecting a SCSI device at ID 5.
*/
ibwrt (gpibscsia, "cmd #ha, #h0, #h0, #h0, #h1,
#h0\n", 33);
/* Build the SCSI Command Descriptor Block to
* execute the Group 0 WRITE command. Verify
* that the Target you select is in the
* Command Phase before you issue this command
* by analyzing the status returned by the
* GPIB-SCSI-A or by analyzing the serial poll
* response byte of the GPIB-SCSI-A.
*/
ibwrt (gpibscsia, "dtout\n", 6);
/* This alerts the GPIB-SCSI-A that you want to
* send data from your GPIB port to the selected
* SCSI Target.
*/
state = wt_rdy();
/* Wait for the GPIB-SCSI-A to request service.
* State then contains a value of either DCR
* (which indicates that the Target is in the
* Data Out phase) or RDY (which indicates that
* the Target, due to some error, went into the
* Status phase).
*/
Содержание 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 ...