G Mode Functions
Chapter 7
GPIB-SCSI-A User Manual
7-94
© National Instruments Corp.
stat - Return GPIB-SCSI-A Status
Type:
General Use function
Syntax:
stat [[c] n]
<
CR>
or
stat [c] s<CR>
or
stat [c] b<CR>
or
stat [c] n s b<CR>
Purpose:
Use
stat
to obtain the status of the GPIB-SCSI-A to see if
certain conditions are currently present. You use
stat
most
often to see if the previous operation resulted in an error.
Remarks:
The GPIB-SCSI-A returns status information to you in a form
depending on the mode, or combination of modes, you
selected.
n
indicates that the status information is returned as
numeric strings.
s
indicates that the status information is
returned in symbolic format – that is, as mnemonic strings.
b
indicates that the status information is returned as four bytes
of binary data.
c
indicates that the status is returned after each
programming message, eliminating the need to call
stat
repetitively.
Normally, you use
s
(the symbolic format only) when you are
debugging your code and you want to print the mnemonic for
easy reference.
The status information returned by the GPIB-SCSI-A contains
four pieces of information:
•
The GPIB-SCSI-A status
•
A GPIB error code
•
A SCSI error code
The GPIB-SCSI-A returns a <CR><LF> following each piece
of the response, except for binary responses.
Содержание 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 ...