G Mode Functions
Chapter 7
GPIB-SCSI-A User Manual
7-56
© National Instruments Corp.
rcnct
(continued)
ibrd (gpibscsia, miscbuf, 100);
/* Get the message byte(s) from the Command
* and Status Channel.
*/
ibwrt (gpibscsia, "rcnct\n", 6);
/* After analyzing the message byte received
* in the above statement and noticing that
* it is the SCSI DISCONNECT message (0x04),
* call rcnct for the GPIB-SCSI-A to prepare
* for reconnection.
*/
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. Before executing
* this command, verify that the Target is
* now in the Data Out phase by analyzing
* the status returned by the GPIB-SCSI-A.
*/
ibwrt (scsidev, "Data to be stored.", 18);
/* This line puts the data in quotes to the
* Data Channel. With the last byte sent,
* the NI function call asserts the GPIB EOI*
* signal, thus creating the END condition.
* Therefore, after the GPIB-SCSI-A put out
* the data in quotes, the GPIB-SCSI-A fills
* the remainder of the transfer with the pad
* byte.
*/
Содержание 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 ...