Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

GPIB command does not set the voltage consistently

2302, 2303, 2303-PJ, 2304, 2306, 2306-PJ, 2306-VS, 2308
Post Reply
linc71
Posts: 1
Joined: February 5th, 2013, 3:33 pm
Country: United States

GPIB command does not set the voltage consistently

Post by linc71 » February 5th, 2013, 4:20 pm

Hi,

We have a 2306 and I was writing C code (using NI visa) to control the power supply. I found that if I send the following sequence it doesn't set the voltage consistently (the actual SCPI commands were inside the quotes):

2013-02-05 16:10:51 Opening GPIB device: "GPIB0::16::INSTR"
2013-02-05 16:10:51 Sending: "*RST; *CLS; BOTHOUTOFF"
2013-02-05 16:10:51 Opening GPIB device: "GPIB0::16::INSTR"
2013-02-05 16:10:51 Setting source 1 voltage to 5.000000
2013-02-05 16:10:51 Sending: "SOUR1:VOLT 5"
2013-02-05 16:10:51 Reading voltage from source 1
2013-02-05 16:10:51 Sending: "SOUR1:VOLT?"
2013-02-05 16:10:51 Read: 5.000000E+00
2013-02-05 16:10:51 Turn output on for source 1
2013-02-05 16:10:51 Sending: "OUTP1 ON"

The reason I did "GPIB0::16::INSTR" twice was because the executable was called twice (1st time for initialization only). What's strange was even if I read the voltage back with "VOLT?" command and it did return me 5.0 Volt but the reality was on the display it still showed 0.0 Vol (also confirmed by device power that it didn't turn on). This happened probably once every 5 or 6 tries with the above sequence. Is there a way I could make sure that "VOLT" command did set the voltage? I tried to put in some delay before the second "GPIB0::16:INSTR" command but that didn't solve the problem.

Appreciate your help!

Dale C
Keithley Applications
Keithley Applications
Posts: 2847
Joined: June 10th, 2010, 6:22 am
Country: United States
Contact:

Re: GPIB command does not set the voltage consistently

Post by Dale C » February 6th, 2013, 12:16 pm

I ran your code in Labview to a Model 2306 for a loop of 100 times.
The Model 2306 always output 5V.
I saw this on the front panel display and also read it with an external voltmeter.
Not sure what to try next...

Post Reply

Return to “Series 2300”

Who is online

Users browsing this forum: No registered users and 3 guests