![Keithley SourceMeter 2600B Series Reference Manual Download Page 755](http://html2.mh-extra.com/html/keithley/sourcemeter-2600b-series/sourcemeter-2600b-series_reference-manual_4085220755.webp)
Section 8: Troubleshooting guide
Series 2600B System SourceMeter® Instrument Reference Manual
8-2
2600BS-901-01 Rev. C / August 2016
Effects of errors on scripts
Most errors will not abort a running script. The only time a script is aborted is when a Lua run-time
error (errorerrorerror code -286, "TSP runtime error") is detected. Run-time errors are caused by
actions such as trying to index into a variable that is not a table.
Syntax errors (errorerrorerror code -285, "Program syntax") in a script or command will prevent
execution of the script or command.
Retrieving errors
When errors occur, the error messages are placed in the error queue. Use error queue commands to
request error message information. For example, the following commands request the next complete
error information from the error queue and return the code, message, severity, and node for that
error:
errorCode, message, severity, errorNode = errorqueue.next()
print(errorCode, message, severity, errorNode)
The following table lists the commands associated with the error queue.
Remote commands associated with the error queue
Command
Description
(on page 7-90)
Clear error queue of all errors
(on page 7-91)
Number of messages in the error queue
Request next error message from
queue