12-26-2012 12:19 PM
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.
12-26-2012 01:43 PM
Trigger and then read?
12-26-2012 02:28 PM
I tried that. Doesn't work.
12-26-2012 03:48 PM - edited 12-26-2012 03:49 PM
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.
12-27-2012 02:49 PM
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.
12-27-2012 03:34 PM
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.
12-27-2012 04:51 PM
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.
12-27-2012 05:15 PM
12-28-2012 12:06 PM
@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
03-01-2013 10:32 AM
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