Example Code

Floating Point Number over Modbus TCP

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Description

How to send single precision floating point numbers through modbusTCP (U16)

How to Use

You should always run the Slave VI first and then the Master VI. To finish, press the "Stop" button on the Master VI and then do the same on the Slave VI.

Additional Information

Must have NI Modbus installed.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.