Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

SCPI Error Queue

I understand that each entry in the SCPI Error Queue is of the form
(Error Code, Error Description)

Is there a mapping between the error code and the CMD, EXEC, QUERY and DEVICE DEPENDENT error bits in the ESR? In other words, if a know an error code from the SCPI error queue, can I know if it corresponds to a CMD or EXEC or QUERY or DEVICE DEPENDENT ERROR?

Thanks,
Raj
0 Kudos
Message 1 of 2
(4,085 Views)
Raj,
The answer (unfortunately) is Yes and No.
The bits are :
7 PON - Power On
6 URQ - Always 0
5 CME - Command Error
4 EXE - Exec Error
3 DDE - Device Dependant Error
2 QYE - Query Error
1 RQL - Request Control
0 OPC - Operation Complete
These are only defined by 488.2 and with all "standards" there is alot of variablility.
As for the Code, Desc in the queue:
Generally speaking
0 - No Error
-100 to -199 CME
-200 to -299 EXE
-300 to -399 DDE
-400 to -499 QYE
Positive values are free choice.
After all this I will direct you to the manual for the specific device, since one never knows
Kevin Kent
0 Kudos
Message 2 of 2
(4,085 Views)