LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems using the serial connection mode of HP34401A Driver

Hi

I've got a problem I've been working on for a while now. I've got a HP34401A DMM and I'm using the serial port to communicate to it under LabWindows 5.01 (SCPI commands works fine). My problem is that the drivers doesn't let mit Init the instrument. Does anyone have experience with drivers for this instrument?

If I use the driver for the HP34420 (better resolution instr) it will initialize OK - but not all the subsequent command are the same.

It seems the setup of the baud-rate and so on are missing from the driver initialize function. Furthermore if I try to "Single Step" into the function it never goes into the c-file for the driver.

Any comments are higly appreciated 🙂

Thanks

Klaus
0 Kudos
Message 1 of 3
(3,009 Views)
If you have the source file for the instrument driver, you can insert it in the project using the Instrument menu. This menu should show the current instrument drivers loaded together with an 'Edit...' option: execute this one and in the panel that opens select the HP driver and then press 'Attach and Edit Source' button: the source file will be compiled in the project so that if you single-step into a driver function, you will be able to see the source and to execute individual instructions and check for errors or warnings reported.

Next time you open the project, it will use the normal compiled driver, so in case you want to look at the source code you will have to re-do this sequence again.

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,008 Views)
Do you get an error while trying to init the instrument? What is the VISA version that you have? Did you get a driver for this instrument at http://www.ni.com/devzone/idnet/default.htm?
0 Kudos
Message 3 of 3
(3,008 Views)