LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Modbus Serial connection

Does anyone have a labview example code on how to read a slave device holding register using Labview Serial port connection. Labview will be my master and it will read slave device holding register through its serial port. I could not see any example on the labview Help section and I am in need of an example to use as my starting point. Any help is well appreciated.

0 Kudos
Message 1 of 4
(10,318 Views)

Download the Modbus library.  They have examples in there.

 

0 Kudos
Message 2 of 4
(10,307 Views)

If you need to use Modbus RTU master then use the function in the image attached.

Tips:

Connect Create master(New serial master)->Read holding register(or)write holding register->shutdown vi.

Before run VI set baurd rate, parity, unit ID & com port in create master vi

Set the holding register address in Read holding register vi

0 Kudos
Message 3 of 4
(10,298 Views)

@RavensFan wrote:

Download the Modbus library.  They have examples in there.

 


There are two other Modbus APIs available:

Modbus Master by Plasmionique Inc.

LabVIEW Modbus API 

All come with examples.

 

If you happen to own the RT- or DSC-module you'll will find yet another Modbus-API integrated in your palette.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 4 of 4
(10,276 Views)