Appendix A API Commands
ChartScan User’s Manual A-29
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 comm and,
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 compatible 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 command that is in c onflict 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 the Set Scan I nterval (I) command
is issued during an acquisition (tstart 0).
After execution of the Error Status Query, most error conditions are cleared. Error conditions may al so 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,"CLEAR07"
‘ Reset the unit
PRINT#1,"OUTPUT07;E?X"
‘ Request error status
PRINT#1,"ENTER07"
INPUT#2,A$
PRINT A$
‘ Display shows E000, no errors occurred
PRINT#1,"OUTPUT07;K3 X"
‘ Send illegal command option to the unit
‘ (Note: ERROR indicator light turns on)
PRINT#1,"OUTPUT07;E?X"
‘ Request error status
‘ (Note: ERROR indicator light turns off)
PRINT#1,"ENTER07"
INPUT#2,A$
PRINT A$
‘ Displays E002 (Invalid Device Dependent Command Option)