LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus RTU for CVI

There seems to be many people using ModBus from LabView & Lookout, but I can't find anything for LW/CVI. I've found some non-CVI examples and stand-alone apps, but I need a Modbus RTU server package that can be dropped-in to a CVI project.

What does NI say about modbus on CVI?
0 Kudos
Message 1 of 2
(4,224 Views)
National Instruments has a product called "Industrial Automation OPC Servers" that provides an OPC Server for a very large number of PLC communication protocols, including Modbus RTU. Industrial Automation OPC Servers installs a program called "Lookout Protocol Drivers", or LPD for short. In LPD, you would configure communication settings to your PLC, in this case the Modbus RTU. LPD then runs as the OPC Server communicating with the PLC, and exposes all of the registers of the PLC as OPC items. You would then write your CVI application as an OPC client, using either OPC functions or datasocket to read/write to the PLC. This is actually the very same method that is used with LabVIEW.

If you have CVI installed, then you should already have some examples on your machine
that demonstrate the OPC Server / Client architecture. I believe they are under the "datasocket" example directory (I'm not at a machine with CVI installed right now, so I'm going on memory). By default, these examples will connect you to the OPCDemo server, which is a software OPC Server that also installs with CVI.

There is much more info about Industrial Automation OPC Servers at the link below:

http://sine.ni.com/apps/we/nioc.vp?lang=US&pc=mn&cid=4584

Regards,
Greg
Message 2 of 2
(4,224 Views)