LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Fucntion Generator through LabView 7.1

I wanted to control a function generator through LabView (HP33120A).  I wanted to add a function to control the output impedance and to control whether it is serial interface or GPIB.  How can I do that using one of the getting started examples?
0 Kudos
Message 1 of 4
(2,616 Views)
The driver will configure for either serial or GPIB based on the Instrument Resource Name that is passed to the Inititialize function. If the resource name is ASRL1::INSTR, ASRL2::INSTR, Com1, Com2, etc., the driver will configure the serial port. Anything else such as GPIB0::5::INSTR, it won't. If you want and the address or com port will be a constant, then put a VISA resource name constant inside a case statement.
 
The function for configuring the output impedance is called ag33xxx - Config Outp Term.
Message 2 of 4
(2,607 Views)
The 33120A is well supported in the driver network, having both a certified LV PnP and an IVI driver.  I have used the drivers last year and had little trouble with them, I would download them if you haven't already done so.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 3 of 4
(2,600 Views)
Visa drivers are great since you do not have to change code to select between the serial and gpib versions of an instrument.  As Dennis shows, this only requires the input of the resource is changed, which can be done at runtime. 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 4
(2,599 Views)