12-26-2013 03:50 PM - edited 12-26-2013 03:51 PM
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
12-26-2013 04:57 PM
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.
12-28-2013 09:22 AM
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.