Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Programming two E3631 power sources, GPIB

Hi,
 
I´m new to labview and GPIB-devices so little help would be nice. I need to get +3V, -5V, +5V, -12V and +12V out of two E3631 power sources.
 
First thing to do is install drivers but after that I don´t know what is the best way to get contact to devices with labview.
Power sources are connected together so that I can connect them with one USB-GPIB cable.
 
Do I need to give different addresses to devices and how?
After that witch is the simplest way to program voltages?
 
Piece of example code would be a big bonus 🙂
 
 
0 Kudos
Message 1 of 3
(3,438 Views)

First off, you have 1 USB-GPIB cable that goes to one power supply and a regular GPIB cable that goes from ps 1 to ps2. I don't know what you mean by "connected together".

Each instrument on a GPIB bus needs to have a unique address. I believe this is done from the front panel but the one I have is in my lab and I'm not quite up to walking back there right now. Your user manual explains exactly what you have to do.

With both supplies cabled to the GPIB bus, open MAX (Measurement & Automation Explorer). I'm assuming that you've already installed NI-GPIB and NI-VISA. Verify this by expanding the Software listing and seeing that both are listed. You should also have verified the GPIB board installation. Click on the Devices and Interfaces listing, right click on the listing for the GPIB interface, and select Scan for Instruments. Both instruments should be found.

Unless you need IVI, I would recomend you download and install the native LabVIEW instrument driver from here. In the instrument driver, there are a couple of top level examples. One is called HPE3631A Application Example 1. Open this. In the upper left, there is a control labeled VISA Session. Click on the arrow on the right side and you will get a list of all VISA resources. This will list the com and parallel ports and also your instruments. The instruments will be listed something like GPIB0::n::INSTR where n is the address that you assigned to them. Pick one of the instruments. Change the voltage and current to something and then run the VI. Your power supply output should change. Look at how the example is constructed and look at all of the subVIs in the driver. With contect help turned on, you'll get a description of what each subVI does when you move the mouse of the subVI's icon and what the controls/indicators are when you move the mouse over them. Good luck.

Message Edited by Dennis Knutson on 08-03-2005 07:34 AM

0 Kudos
Message 2 of 3
(3,434 Views)

Thanks Dennis. 

 I think this was all the help I needed. Nice to see that this forum actually works.

Peter

0 Kudos
Message 3 of 3
(3,421 Views)