Chapter 7
G Mode Functions
© National Instruments Corp.
7-115
GPIB-SCSI-A User Manual
write
(continued)
ibwrt (gpibscsia, "stat c n\n", 9);
/* Request the GPIB-SCSI-A to report
* numerical status continuously.
*/
ibwrt (gpibscsia, "tid 4\n", 6);
/* Request the GPIB-SCSI-A to communicate with
* the SCSI Target with an ID of 4.
*/
ibwrt (gpibscsia, "pad 10\n", 7);
/* Indicate that you want the pad byte to be a
* linefeed character.
*/
ibwrt (gpibscsia, "blksz 512\n", 10);
/* Tell the GPIB-SCSI-A that the drive has
* a blocksize of 512 bytes. This information
* can be found either in the documentation of
* the SCSI disk drive or by executing the SCSI
* MODE SENSE command either through a low-
* level command sequence or with the high-
* level mdsns command provided by the
* GPIB-SCSI-A.
*/
ibwrt (gpibscsia, "write 100, 10\n", 14);
/* Tell the GPIB-SCSI-A that you want to write
* data to the SCSI Target at ID 4. This
* command also tells the GPIB-SCSI-A that
* there will be a total of 5,120 bytes (blksz
* transfer length, 10 * 512) desired by the
* SCSI Target. The GPIB may not have this