API Command Reference Appendix A
A-22 NetScan Users Manual
E? - Error Status Query
TYPE
System
EXECUTION
Immediate
SYNTAX
E?
Returns present error condition of the unit with one of the following error
codes:
E000 - No error has occurred.
E001 - Invalid device dependent command (IDDC).
E002 - Invalid device dependent command option (IDDCO).
E004 - Channel configuration error.
E008 - Calibration error.
E016 - Trigger overrun.
E032 - Open T/C or Range Error.
E128 - Command conflict error.
DESCRIPTION
When an error has occurred, the ERROR indicator light on the front panel of the unit turns on. Error Status
Query (E?) is used to determine the present error condition. After execution of the Error Status Query command,
the unit responds with one of the following error codes:
E000: No error has occurred.
E001: Invalid device dependent command (IDDC) due to a command syntax error.
E002: Invalid device dependent command option (IDDCO). A command parameter was out of range or
missing.
E004: A Channel Configuration Error indicates that a channel has been inappropriately configured, either
because the channel is not present or because the specified channel type is not com pat ible with the card type
installed.
E008: A Calibration Error occurs when the card calibration has failed or has been inappropriately calibrated.
E016: A Trigger Overrun Error occurs when more than one trigger event occurs for a given trigger state or when
a non-expectant trigger event occurs.
E032: An Open T/C Error or Range Error, occurs when the hardware circuitry detects an open thermocouple, or
when the software detects the A/D input has reached or exceeded its linearization.
E128: A Command Conflict Error indicates the issuance of a com m and that is in conflict with other commands
that have been issued or the current configuration. This error usually occurs when a command is issued that
cannot be performed because of the current state of the unit. For instance, if t he Set Scan Interval (I) command
is issued during an acquisition (tstart 0).
After execution of the Error Status Query, most error conditions are cleared. Error c ondi t ions may also be
cleared by issuing a Clear Event Status (U0) command to the unit. The ERROR light will remain on until an E?
or U0 command is executed to clear the error condition.
EXAMPLES
PRINT#1,"E?X"
Request error status
INPUT#1,A$
PRINT A$
Display shows E000, no errors occurred
PRINT#1,"K3 X"
Send illegal command option to the unit
(Note: ERROR indicator light turns on)
PRINT#1,"E?X"
Request error status
(Note: ERROR indicator light turns off)
INPUT#1,A$
PRINT A$
Displays E002 (Invalid Device Dependent Command Option)