SYST:ERR
Reads the oldest error information or event information from the error queue. The error queue can store up to 255 errors.-> Tutorial
The error queue is cleared using the *CLS command.
Command
SYSTem:ERRor[:NEXT]?
Response
Returns the oldest error or event information in the error/event queue in response to SYST:ERR? as follows:
(Example) When there is no error or event
0"No error"
(Example) When a command that cannot be executed in the current operating condition is received
-221,"Settings conflict"