Chapter 7
G Mode Functions
© National Instruments Corp.
7-25
GPIB-SCSI-A User Manual
dtout
(continued)
if (state == DCR)
{
ibwrt (scsidev,"Data to be stored.",18);
/* Because the Data Channel is ready, send out
* the data.
*/
ibwrt (gpibscsia, "cmp\n",4);
/* After transferring the data and ensuring
* that the Target is in the Status phase, a
* call to cmp allows the GPIB-SCSI-A to process
* the Status and Message In phases.
*/
}
else
/* state == RDY */
{
ibwrt (gpibscsia, "cmp\n",4);
/* Because you have a box ready indication
* from the GPIB-SCSI-A, the Target went into
* the Status phase instead of a Data Out
* phase. The call to cmp allows the
* GPIB-SCSI-A to process the Status and Message
* In phases.
*/
unexpected_abort();
/* Because there was no data transferred,
* an error occurred. Perform the desired
* type of error recovery.
*/
}
Содержание 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 ...