Page 1 of 1

Command for reading 2182a buffer?

Posted: May 18th, 2015, 6:50 am
by mohammad.rasti
Hi,
I decide to create simple vi program by labview2014 to read 2182a buffer? What commands are needed for enter in the visa write block in the labview? My cuurent source is 6221 and is connected to 2182a with rs232 and trigger-link cables and connected to PC by KUSB-488b.

Re: Command for reading 2182a buffer?

Posted: May 18th, 2015, 7:00 am
by Dale C
The commands to get data from the TRACE Buffer in the Model 2182A are the
:TRACE Command.
These set up the buffer
:TRACE:FEED:CONT NEXT
:TRACE:POINTS 100
:TRACE:FEED SENSE1

This retrieves data from the buffer.
:TRACE:DATA?

Re: Command for reading 2182a buffer?

Posted: May 18th, 2015, 7:14 am
by mohammad.rasti
thanks Dale C,
I had try to use these command in vi attached file to read 2182 buffer but no data is shown in read buffer, and the front panel of 6221 show error -410. is vi program is correct?

Re: Command for reading 2182a buffer?

Posted: May 18th, 2015, 7:59 am
by Dale C
Are you using delta mode?
If so, then data will come from the 6221, not the 2182A.
Try the attached VI if you are using delta.

Re: Command for reading 2182a buffer?

Posted: May 18th, 2015, 8:15 am
by mohammad.rasti
No,I don't use delta, I want to perform dc measurement: current is constant but voltage is changing as DUT become colder. I want to only record voltage from 2182a.

Re: Command for reading 2182a buffer?

Posted: May 18th, 2015, 8:29 am
by Dale C
I was not able to open the VI you posted, as I have Labview 2012. Can you resave as 2012 and repost?

Re: Command for reading 2182a buffer?

Posted: May 18th, 2015, 10:01 am
by mohammad.rasti
Dale C wrote:I was not able to open the VI you posted, as I have Labview 2012. Can you resave as 2012 and repost?

Re: Command for reading 2182a buffer?

Posted: May 18th, 2015, 10:19 am
by Dale C
Try this.

Re: Command for reading 2182a buffer?

Posted: May 19th, 2015, 1:10 am
by mohammad.rasti
Dale C wrote:Try this.
no this vi also not work. when running the vi 6221 show error:ID code:-113

Re: Command for reading 2182a buffer?

Posted: May 20th, 2015, 6:28 am
by mohammad.rasti
Hi Dale,
with this attached vi for reading 2182a buffer, there are some data and it is seem the program is working but one error is shown: error id code:-410 "query interrupted"
which means that an attempt was made to read data from an empty output queue. but I'm not able to resolve this problem. this vi simultaneously is both work and make show error by 6221 with successive alarm sound. the number of reading is 16.

Re: Command for reading 2182a buffer?

Posted: May 20th, 2015, 6:51 am
by Dale C
Are you using GPIB or RS-232?
The previous VI I sent to you was for GPIB.
If you are using RS-232 then the terminator needs to be concatenated onto each command string.
What terminator are you using if it is RS-232? Is it CR or LF?
it sounds like the 6221 is responding, not the 2182A.

Re: Command for reading 2182a buffer?

Posted: May 20th, 2015, 7:02 am
by mohammad.rasti
Dale C wrote:Are you using GPIB or RS-232?
The previous VI I sent to you was for GPIB.
If you are using RS-232 then the terminator needs to be concatenated onto each command string.
What terminator are you using if it is RS-232? Is it CR or LF?
it sounds like the 6221 is responding, not the 2182A.
6221 current source connected to pc via gpib and connected to 2182 via rs232 and trigger link cables. on the front panel of 2182a gpib is off and rs232 is on and the terminator is CR. on the front panel of 6221>comm setup>gpib is selected. Are these settings correct?

Re: Command for reading 2182a buffer?

Posted: May 20th, 2015, 7:22 am
by Dale C
Ok, that makes sense.
This configuration is for Delta mode.
Disconnect the RS-232 cable from between the 6221 and 2182A.
Connect the GPIB cable to the 2182A.
Make sure the 2182A is set to GPIB mode.
Then the VI will work.