Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

ERR?

Description

With the ERR? command, one can query the global error state, that is, a variable that changes whenever a command is executed. If a command fails, the module sends a message "ERR x" to the I/O interface, where x is the actual error code, indicating that something went wrong.ERR? without an argument shows the textual representation of this error code. When an argument is given, ERR? interprets that argument as error code and shows its textual representation. After ERR? was called, the clobal error state is set to ERR_OK.

Arguments

None or an error number which should be displayed as text.

Return value

ERR_OK(0) Always. ERR? resets the global error variable.

Examples

ERR?

yields to (usually): I AM OK

ERR? 4

yields to: WRONG ARGUMENT

Remarks

None, because this command is much too simple.Wink