05-26-2007 09:05 AM
05-26-2007 09:20 AM
Follow up
I am trying to use com 1 or 2. I have a usb to serial adapter mapped to com 3. If I use the library vi to initialize it (34970a) does not give an error however if I try to config any channels the 34970a give an error but returns readings. Errors vary from -138, or -113
Thanks
Everett
05-26-2007 11:29 AM
05-26-2007 01:56 PM
05-27-2007 12:37 PM
There are two different drivers sets for the 34970, but they're not from Agilent. They're available from the NI Instrument Driver Network. Since you said you had it working under 7.1 you're probably using the older "hp34970" drivers. The error codes you indicated are -138, which is "Suffix not allowed", and -113, which is "Undefined header". Both of these basically mean a syntax error, which is likely incorrect code with the drivers. There are numerous configuration VIs. Which one are you using, and how are you calling it? Can you use the updated project-style drivers available from the link I posted?
I'm not quite sure I understand what you're saying with the COM ports. You said you get nothing when using COM1 or COM2. How many devices do you have connected to your COM ports? What communication parameters (baud rate) are you setting?
It would probably be worthwhile to see what happens if you try to talk to instrument via MAX to see if this is a communication problem or a LabVIEW problem. With the LabVIEW drivers you can see what command is being sent out to the instrument by simply putting a probe on the string that's being fed to the VISA Write. Then, you can enter the same command in MAX (as well as confirming the command from the user manual) to see what happens.
05-28-2007 10:03 AM
05-28-2007 11:39 AM
Hello again,
Came into work to download project drivers and install on the computer with Labview 8.2.1. I put the downloaded folder in the inst.lib folder. It doesn't unzip well for some reason. It asks for close.vi etc which are in the public folder that downloaded with it. However it won't let me point to it. Should I have not put it in the inst.lib folder?
Thanks
Everett
05-28-2007 01:04 PM
Additional update. I extracted the files with winzip and the inst.lib folder looks normal. The NI-VISA version is 4.1, I still get a -138 error when communicating on com 3.
05-29-2007 09:58 AM
05-29-2007 10:40 AM