1
\$\begingroup\$

I'm writing code that sends SCPI commands to various instruments (power supplies, o'scopes, data acquisition, etc.)

The TDK Lambda power supply is returning the code "C01" which means "Illegal command or query".

Are there standard error codes or are the error codes manufacturing / instrument specific?

\$\endgroup\$
3
  • 1
    \$\begingroup\$ SCPI instruments are a snake pit of partially standard bugginess that usually breaks your system with every instrument firmware update. (OK, maybe a little exaggerated, but there's some truth to it.) \$\endgroup\$
    – John D
    Sep 16, 2020 at 1:15
  • \$\begingroup\$ this comment may be useless ... without knowing anything about SCPI, logic dictates that some of the error codes would have to be instrument specific ... also that, if there is an actual standard, some manufacturers deviate from the standard ... the only thing that cannot be deduced without actual information is whether some of the error codes are standard across all devices \$\endgroup\$
    – jsotola
    Sep 16, 2020 at 1:23
  • \$\begingroup\$ You need to read the programmers manual. Most instruments like these have them and they're quite extensive. There should be a complete list there. \$\endgroup\$ Sep 16, 2020 at 1:54

1 Answer 1

2
\$\begingroup\$

Are there standard error codes or are the error codes manufacturing / instrument specific?

Having worked with SCPI for over 20 years, I have never seen such a thing. Maybe "0" for "No Error" is widespread enough to be considered a standard.

Even if there were, most likely only Keysight and National Instruments would follow the standard.

Certainly a simple code like "C01" does not follow the usual practice of recent Keysight instruments to use fairly verbose messages like "137, Unterminated Query".

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.