11-01-2023 10:24 AM
Currently trying to control a Keithley 2182A NI input/output interface.
The usual python script that controls the system failed. After checking rom the NI input/output panel I found that the instruments spits out "almost right" answers.
when asked for voltage would respond with special characters and even the IDN command seems to fail, see below:
query : "*IDN?"
out : "KEIDHLEI\sINCDBEMENDC\sINC.,MODEL\s"!("A,$$)\s"'&,C\s(/B\s!\s\s\n"
Changing the view type does not fix the issue.
Looks like this could be an encoding issue, however I could not find other posts with a similar issue.
Thanks in advance for the help.
Best,
Ulderico Filippozzi
11-01-2023 10:44 AM
What bus are you using to communicate with this instrument? It looks like this device could be RS-232 or GPIB (IEEE-488.2).
Your error seems related to have a bad GPIB connection, usually caused by too long of cables.