Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IDN? returns almost right answer

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 

0 Kudos
Message 1 of 2
(603 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(598 Views)