LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

keithley 2401 Error -420 and -410

Hi I'm fairly new to labview and Keithley instruments. I've been working and writing a VI to control a Keithley 2401 and have run into a few problems.  I am able to send commands to the instrument using my labview VI which will allow me to set up the sweep, the data store, and a few other simple functions, but for some reason in between every set of commands that I send (I send 1 string per command group. ex: for a sweep setup I send ":SOUR:VOLT 0E+0;:SOUR:DEL 0E+0;:SOUR:SWE:RANG BEST;:SOUR:VOLT:MODE SWE;:SOUR:SWE:SPAC LIN;:SOUR:VOLT:STAR 0E+0;:SOUR:VOLT:STOP 1E+0;:SOUR:VOLT:STEP 100E-3;:TRIG:COUN 11E+0;:OUTP ON;:READ?;") I am getting errors -420 and -410. Even though these errors show up the function is still read and the device performs the commands. I was just wondering why that error would come through.  Also when I try to read my stored data by sending :TRAC:DATA? my VI shuts down and it doesn't read the information as I was expecting.  Any pointers or ideas would be greatly appreciated.

 

Thanks,

Chad

0 Kudos
Message 1 of 3
(3,638 Views)

From the manual, -420 is Query UNTERMINATED and -410 is Query INTERRUPTED.

 

Can you post your VI?  It would help to see exactly how you are setting up your SCPI command.  But based on those errors, there are two things I would try.  1) Wait for the meter to actually perform the sweep before requesting that data with the "READ?" and 2) get rid of the ";" after the "READ?" querry.


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
Message 2 of 3
(3,612 Views)

Here is the VI. I've fixed the unintended shutdown problem that I mentioned before, but I'm still running into the -420 and -410.

0 Kudos
Message 3 of 3
(3,527 Views)