Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

read command for hp603x

I am writing my own driver for an HP/Agilent 6034L. I can send the "set voltage to xxx" command successfully, so I know I'm communicating with the unit. I would now like to read the voltage from the unit. The manual (6034a) is not very helpful. I send the "trigger" command like the manual says, but nothing happens.

 

I am using LV 6.0, so the posted drivers won't open for me. All I need are instructions on how to read voltage, or a screenshot of a working LV program. I will then do the LV programming in 6.0.

 

Thanks in advance.

0 Kudos
Message 1 of 10
(5,777 Views)

Trigger and then read?

0 Kudos
Message 2 of 10
(5,771 Views)

I tried that. Doesn't work.

0 Kudos
Message 3 of 10
(5,760 Views)

You have not posted your code so it is difficult to say what is wrong. You also have not requested a down conversion of the driver, which would seem to be better than trying to rewrite it. In any case, below is the diagram of the read function. The query is inside the first case statement and is just VOUT? for a single channel power supply.

 

 

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

Hi Dennis. It didn't occur to me that I could get a down version of the driver. I'll try that. Thanks!

 

Meanwhile, I tried a simplified version of your code, and it still doesn't work. In the VOUT? case near the beginning, what is the "%d," and how is it being used?

 

I used GPIB sub-vis instead of the VISA ones you used. For some reason M&A Explorer is not finding the power supply for VISA, yet I can set the output voltage if I use the GPIB sub-vis.

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

The %d is used with the Format Value function so that with 6xxx supplies with multiple outputs, the %d is the channel number.

 

You are going to have to explain what you mean by MAX does not find the supply. MAX does not use VISA at all when it searches for an instrument and if all that you get is a message that it does not respond to the *IDN? query, that of course, is expected since the supply does not support that command.

0 Kudos
Message 6 of 10
(5,725 Views)

Thanks. Ours has one output, so I won't need that character.

 

When I started MAX and looked at the Devices & Interfaces, it did show the five GPIB instruments that I have connected. For some reason it did not see this one (the sixth one), and after a couple of seconds they disappeared off of D&I. Weird. We still do communicate with them.

 

I'll post a picture of the program when the computer comes free. We're doing some testing with it now.

0 Kudos
Message 7 of 10
(5,719 Views)
In my experience, instruments that disappear is a symptom of a bad cable or a bad GPIB interface on one of the instruments. Just something to keep in mind.
0 Kudos
Message 8 of 10
(5,716 Views)

@Dennis_Knutson wrote:
In my experience, instruments that disappear is a symptom of a bad cable or a bad GPIB interface on one of the instruments. Just something to keep in mind.

Or a duplicated GPIB address assignment


"Should be" isn't "Is" -Jay
0 Kudos
Message 9 of 10
(5,696 Views)

Hello edgalaxie,

 

Did you ever get the whole set up with the 6034L working with LabVEIW? If you did I was wondering if you could give me a few pointers. I am a newbie and have recently started learning Labview. Now I am given the task to control the 6034L by using labview.

 

Thanks in Advanced,

 

Francisco

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