08-12-2015 04:00 PM
Hello.
I have a problem and i don't know if its Visa or Hardware error: Whenever i perform a remote sweep on the SourceMeter keithley 2410, adquire more than 292 measurements stored in the trace buffer using the command :TRAC:DATA?, and send another command to the instrument after it, i receive the error -410 Querry interrupted. The funny part is that i actually obtain the data, i can see the huge string, but, again, after i got the data in my hands and send another command, i receive the -410 error, the error dissapears if i turn the instrument off or i set it locally.
It doesn't happen the same when i adquire less than 292 measurements, i send commands normally and i can even query the measurements again and again and the communication doesn't break.
To clarify things even further, i performed a manual sweep with more than 292 measurements, then queried the data using MAX, and then sent another command using MAX, i still receive the error, but, as before, with less than 292 measurements, it performs ok.
I think its very weird, its as if with more than 292 measurements the instruments keeps sending data inifinitely, or Visa asking for data endlessly. And its weirder that it only happens on GPIB communication, using Serial communication it behaves ok.
PD: I ask here and not on the keithley forums because, well, its kind of dead.
08-12-2015 04:20 PM
Forgot, i'm using the cable NI GPIB-USB-HS+
08-13-2015 02:55 AM
08-13-2015 09:47 AM
Yes, i ask for all the data, volt, curr, res, time, so that i then need to separate them into vectors.
and my simple program (i send those commands using a GPIB messagebased session.
mysession.Write(":FORM:ELEM VOLT, CURR,RES,TIMe\n");
mysession.Write(":TRAC:FEED:CONT NEV\n");
mysession.Write(":SENS:FUNC:CONC OFF\n");
mysession.Write(":SOUR:FUNC VOLT\n");
mysession.Write(":SENS:FUNC 'CURR'\n");
mysession.Write(":SENS:CURR:PROT 1\n);
mysession.Write(":SOUR:VOLT:START 0\n);
mysession.Write(":SOUR:VOLT:STop 292\n");
mysession.Write(":SOUR:VOLT:STEP 1\n");
mysession.Write(":SOUR:CURR:MODE SWE\n");
mysession.Write("::SOUR:SWE:RANG AUTO\n");
mysession.Write(":SOUR:SWE:SPAC LIN\n");
mysession.Write(":TRIG:COUN 293\n);
mysession.Write(":TRAC:POIN 293\n");
mysession.Write(":TRAC:FEED SENS\n");
mysession.Write(":TRAC:TST:FORM DELT\n");
mysession.Write(":TRAC:FEED:CONT NEXT\n");
mysession.Write(":OUTP ON\n");
mysession.Write(":INIT\n");
//When srq
mysession.Query(":TRAC:DATA?"); //Here it adquires the data, but when i send another write or query command and because in this example, it has 293 measurements, it will send the query interrupted error.
08-13-2015 09:53 AM
Sould i post the version of the GPIB driver or visa i got?
08-16-2015 05:08 PM
08-17-2015 08:46 AM
Can you also post the revision of the digitial board in the 2400:
MENU >> GENERAL >> SERIAL# then scroll to the right will give you the digital-board version (D:version).
08-17-2015 09:33 AM
08-18-2015 11:30 AM
hi, sorry for taking long to post, but i was on a trip.
i just receive a long string, and im using a little program in c# to adquire it, as fas as i know, you cannot specify the size of a string, and the max string lenght is around a million chars.
But it also fails when i adquire the data using MAX, as i posted earlier, so i think its a visa or instrument error.
08-18-2015 11:38 AM
sure, the serial number is #4003658
Rev C32 oct 4 2010, 14:20:11 SCPI: 1996 o V:A02 A:J D:K