Chapter 7
G Mode Functions
© National Instruments Corp.
7-55
GPIB-SCSI-A User Manual
rcnct
(continued)
* device at ID 5 with the SCSI ATN* line
* asserted.
*/
ibwrt (gpibscsia, "msgout #hc0\n", 12);
/* After checking that the Target has gone into
* the Message Out phase, give it an IDENTIFY
* message that says you can support
* disconnection/reconnection with this command
* sequence.
*/
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 have selected is
* in the Command phase before you issue this
* command by analyzing the status returned
* by the GPIB-SCSI-A.
*/
ibwrt (gpibscsia, "msgin\n", 6);
/* After noticing that the SCSI Target is in
* the Message In Phase, you need to get the
* message byte(s). The Target may be in this
* phase because it has just processed the
* command and decided that it needs to
* disconnect for a time consuming physical
* head seek.
*/