10-08-2012 01:33 PM
Hello, I have a HP 34401A Meter that I would like to get data from to use in my cRIO application. I downloaded a LabVIEW driver for this meter from the NI website and it works great over RS-232 as long as the VI is on my computer.
If I make the VI in to a subvi and try to get data from it on an application running on the cRIO it fails. On the cRIO the com port for my computer is not found so I can't use it in the RT application. However, if I try to use the serial port on the cRIO (9072) I don't get any data back even though the meter gets the initial remote command from the LabVIEW driver, but after that when taking a reading the meter simply hangs without giving any error.
My main goal is to have the meter hooked up to my PC's serial port and turn the driver NI provided for this meter in to a subvi. Then us that subvi to send/receive data in my real time application.
Can someone please offer some advice on how to go about this? Thanks.
10-08-2012 02:57 PM
One thing I just tried to do was enable VISA server on my computer so that I can remotely access the COM port, and in my cRIO target I used the following port name:
visa://10.1.1.25/ASRL1::INSTR
But it tells me access is denied eventhough VISA appears to be running and I added "*" under remote access permissions.
10-09-2012 03:56 PM - edited 10-09-2012 03:59 PM
Your best option would probably be to use the serial port on the RIO itself. You can see how to reference it by going into MAX » Remote Systems » Your 9072 » Devices and Interfaces » Serial & Parallel and using that device name in your deployed code.
One note is to make sure you have NI-VISA and NI-Serial installed to the RIO as well as "Console Out" (found in Controller Settings) disabled.