05-07-2014 12:17 PM
Hello,
I am about to commence a project which will require my LabVIEW application to communicate with an RS232 device. I am planning on using an Ethernet 4-slot Compact DAQ module, but can't see a way to connect through.
Is this possible? Is there a C-Series module I can buy for RS232 comms?
Dave
05-07-2014 12:36 PM - edited 05-07-2014 12:47 PM
Perhaps an NI Engineer would be more suited to answer this question, but I believe the NI 9870 should work for you. (It is technically for cRIO, but if I recall correctly, the cDAQ uses the same sized modules so they are interchangable. Please correct me if I am mistaken!)
EDIT:
Here seems to confirm its only compatible with the cRIO: http://www.ni.com/white-paper/8136/en/
So perhaps this module is only cRIO exclusive. Could someone with more experience or NI connections check this for me 😄
05-07-2014 12:43 PM - edited 05-07-2014 12:44 PM
I don't think that will work. I believe that module requires a controller (such as the cRIO) with VISA installed on it so it can communicate. A cDAQ doesn't have a controller. It is a package of "dumb" data acquisition modules. The code for communicating with a cDAQ runs on a PC, and I don't think the VISA drivers on a PC are able to communicate "through" the compact DAQ to a serial module.
If this module was able to work with a cDAQ, I'm sure it would mention it somewhere in the specifications or manuals.
05-07-2014 02:29 PM
So you mention you have a ethernet cDAQ. Would it then be possible to add an ethernet switch, and a Ethernet to Serial device? I have never used one but it appears that a quick google search finds lots of modules that can take ethernet from an RJ45 and convert it to RS232 in a DB9. Here are a few links.
http://www.perle.com/products/RS232-to-Ethernet.shtml
http://www.lantronix.com/device-networking/embedded-device-servers/xport.html
http://www.bb-elec.com/Products/Ethernet-Serial-Servers-Gateways/Ethernet-Serial-Device-Servers.aspx
http://www.digi.com/products/faceted?keywords=products/serialservers/
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-08-2014 02:01 AM
Thanks for all the responses...
It's a pity that you can't use the PC RS232 port and then pass the data through to the LabVIEW application, that would have been ideal. I looked into the serial to ethernet converters, that could be a reasonable cost solution..
Thanks
Dave
05-08-2014 02:07 AM
05-08-2014 02:22 AM
That would be a good solution GerdW, but I have no idea how to acheive it - I haven't really done a serial communication application before, would someone be able to point me towards a helpful white paper / tutorial / sample code for doing this?
--dave
05-08-2014 02:23 AM