Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error when adquiring more than 292 measurements after sweep on keithley 2410 using GPIB communication

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.

 

0 Kudos
Message 1 of 10
(6,123 Views)

Forgot, i'm using the cable NI GPIB-USB-HS+

0 Kudos
Message 2 of 10
(6,118 Views)

Do you ask all the data? (current, voltage,time, number etc)

Just ask to calculate how many characters are involved.

 

And if you can share a simple program that shows this feature I would like to investigat what happens there.

greetings from the Netherlands
0 Kudos
Message 3 of 10
(6,026 Views)

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.

 

0 Kudos
Message 4 of 10
(5,998 Views)

Sould i post the version of the GPIB driver or visa i got?

0 Kudos
Message 5 of 10
(5,996 Views)
no don't send version numbers. Try tocalculate the nuber of characters you expect and try to read more bytes.
greetings from the Netherlands
0 Kudos
Message 6 of 10
(5,936 Views)

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).

 

0 Kudos
Message 7 of 10
(5,898 Views)
Where in your code do you specify the number of bytes to be read? You get a query interrupted error when there is still data in the instrument buffer.
0 Kudos
Message 8 of 10
(5,890 Views)

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.

0 Kudos
Message 9 of 10
(5,857 Views)

sure, the serial number is #4003658

 

Rev C32 oct 4 2010, 14:20:11 SCPI: 1996 o V:A02 A:J D:K

0 Kudos
Message 10 of 10
(5,852 Views)