G Mode Functions
Chapter 7
GPIB-SCSI-A User Manual
7-10
© National Instruments Corp.
cmd
(continued)
If the Target is not in the Command phase,
cmd
aborts the
operation with an error indication of EPHS.
If you use more than 25
command
bytes
or you do not use
at least one
command
byte
,
cmd
aborts the operation with
an error indication of EARG.
See Also:
Appendix D, Operation of the SCSI.
Example:
ibwrt (gpibscsia, "getscsi\n", 8);
/* Arbitrate for the SCSI. */
ibwrt (gpibscsia, "tid 3\n" 6);
/* Indicate that you want to communicate with
* the SCSI device with SCSI id 3.
*/
ibwrt (gpibscsia, "selwo\n", 6);
/* Select the device at SCSI ID 3 without SCSI
* ATN* signal.
*/
ibwrt (gpibscsia, "cmd #h1b, #h0, #h0, #h0, #h0,
#h0\n", 34);
/* Create and send to the selected Target the
* Command Descriptor Block containing the
* Group 0 command Start/Stop Unit.
*/