LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

HP4194A driver for LabWindows/CVI

Howdy,
I want to write a program to communicate with HP 4194A impedance analyzer. I searched the driver library and found the related drivers for LabView 6.0/7.0/8.0.  Are they  also usable for  LabWindows/CVI 7.0? I am new in this communication work, could you give me some suggestion on how to build communication between software and devices (such as tutorial or examples)? Any input is appreciated!
Regards,
wmf
0 Kudos
Message 1 of 10
(5,310 Views)
wmf,
 
On the driver download page for the HP 4194A there is one written for LabWindows/CVI 6.0.  You can find that driver here:
 
 
This should work fine in CVI 7.0.  Cheers.
 
Al M.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 10
(5,287 Views)
Got it,
Thanks a lot!
0 Kudos
Message 3 of 10
(5,280 Views)

Just for future reference, sometimes it is easier to just do the instrument I/O directly than it is to use a driver. Sometimes a driver is serious over kill if all you need to use is a couple of functions. In cases like that, I simply use VISA I/O and write my own short functions to get what I need.

I've also found over the years that drivers should be taken with a huge grain of salt. They don't always work as advertised and can be quite frustrating when they are broken.

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 4 of 10
(5,274 Views)
I was able to use NI-488.2 communicator to control the analyzer and complete the operation. How can I read the Gain-Phase data set shown on the screen? According to the program code, "A=" is register for display data A(Gain), "B=" is register for display data B(Phase). I tried to read but always had I/O timeout error. I took a screenshot and put it in the attachment. Could you give some suggestion? Thanks!


0 Kudos
Message 5 of 10
(5,265 Views)
Unfortunately, I can't really tell you how to do that. You will need to consult the programming manual for the instrument.
Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 6 of 10
(5,259 Views)

wmf,

 

I don't have the instrument available so it will be hard to trouble shoot.  What about trying to send A=?  or maybe a lower case a.  Cheers.

 

Al M.

Applications Engineer

National Instruments

0 Kudos
Message 7 of 10
(5,250 Views)
I know this is probably an obvious question but it can't hurt to ask...
 
When you were trying this using the communicator panel, did you try to query or did you try to read?
 
You need to enter the command string in the field and then press the query button, not do a read. Or you can write the command and then read. but the query button does that in one operation for you.
Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 8 of 10
(5,241 Views)
MJF, AI M

Thanks a lot for your quick response!

The command is "A?". I used NI Spy to monitor the measurement procedure. After I sent trigger command "SWTRG", I saw a loop invoked automatically. It's composed by ibwrt(ud,"rqs2",4) and ibrsp(ud,3). In the end, different response value triggered ibwrt(ud,"rqs0",4). The snapshot is attached.

According to the manual,  "RQS(0): Mask the status byte(RQS0 means all masked)". Could you tell me what the purpose of this loop is? (I guess it tells the communicator when the analyzer is ready to do I/O but not sure) How can I incorporate it into the C source code in LabWindow/CVI?

wmf
0 Kudos
Message 9 of 10
(5,238 Views)

wmf,

 

You may find the following links helpful, they help explain the RQS command:

 

http://digital.ni.com/public.nsf/websearch/577D62CFCEE1EC7886256F1F00813215?OpenDocument

 

http://digital.ni.com/public.nsf/websearch/D6ADFE8D993E53F186256848005D7A6B?OpenDocument

 

Also, you may find the GPIB 488.2 reference manual of some use.  Here it is:

 

http://www.ni.com/pdf/manuals/321819e.pdf

 

Al M.

Applications Engineering

National Instruments

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