Chapter 7
G Mode Functions
© National Instruments Corp.
7-31
GPIB-SCSI-A User Manual
hcmd
(continued)
2.
This example causes the GPIB-SCSI-A to read 257 bytes of data
from another GPIB-SCSI-A that is executing in S mode. The S mode
GPIB-SCSI-A has a SCSI id of 5.
ibwrt (gpibscsia, "tid 5\n", 6);
/* Request the GPIB-SCSI-A that you want to
* communicate with the SCSI Target with an ID
* of 5.
*/
ibwrt (gpibscsia, "hcmd #hdd, 0, 0, 0, 1, 1 i
257\n", 33);
/* Tell the GPIB-SCSI-A that you want to read
* 257 bytes of data from the S mode
* GPIB-SCSI-A at ID 5. Issue an S mode
* brd command with a count of 257. Specify
* "i 257" so that the G mode GPIB-SCSI-A
* expects to transfer 257 bytes during the
* Data In phase.
*/
ibrd (scsidev, databuf, 257);
/* Read the data from the S mode GPIB-SCSI-A
* through the Data Channel.
*/
Содержание 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 ...