MODBUS Library for LabVIEW

Publish Date: Nov 02, 2015 | 140 Ratings | 4.32 out of 5 | Print | 54 Customer Reviews | Submit your review


The MODBUS library is a free, downloadable set of Virtual Instruments (VIs) that provide Modbus communication from any standard Ethernet or serial port. The LabVIEW library implements the Modbus protocol in software and offers both master and slave functionality. Using the Modbus library, Programmable Automation Controllers (PACs) can communicate with gateway devices that provide connectivity to a wide variety of industrial networks, such as PROFIBUS, EthernetIP, and DeviceNet.

A newer library, intended as a replacement for this one, was added to This is not an official NI Product. 

Version 1.2 ( of the MODBUS LabVIEW Library is backward compatible with previous versions of the library.  It adds a set of polymorphic VIs that make it easier to use MODBUS commands.  These new VIs are also fully documented with a help file.  Comments have also been added to the examples.  Please follow the steps in the readme file for manual installation of the library.  There is no installer available at this time.

This library is not designed for use on LabVIEW Real-Time run-time's and will not execute deterministically. Use the Modbus API available through the LabVIEW Real-Time Module or the LabVIEW Datalogging and Supervisory Control (DSC) Module instead.

If you are new to MODBUS, this series of whitepapers serve as an introduction to the protocol. 

Note: This is an example program and not an official NI Product.  It is also not designed to execute on LabVIEW Real-time run-times. For a more complete, fully supported MODBUS solution, NI recommends the Modbus I/O Servers and Modbus API (2014 and newer) included in the  LabVIEW Datalogging and Supervisory Control Module and LabVIEW Real-Time Module. 

Back to Top

Customer Reviews
54 Reviews | Submit your review

Modbus data collect to be used within labview script - Nov 10, 2016

I need to connect some equipments which send MODBUS datas. I need to collect these datas provided by these equipments on a computer where there is my labview script. Which equipment or module i need to install to collect the datas and use them within my labview script.

LabVIEW Root Directory - Aug 27, 2016

For the ones being confused about the LabVIEW Root directory, I think it is explained wrong in Help file. The Labview root is the path where you have installed your Labview version. As an example, if your are using 32-bit Labview on a 64-bit computer, it is C:\Program Files (x86)\National Instruments\LabVIEW 2015. You just need to copy the files mentioned in the Help file, to the folders under this directory. Then you will see the modbus VIs in User Libraries Palette.

MODBUS for LabVIEW 2015 - Jul 14, 2016

First, will this library work with LabVIEW 2015. If so are there better instructions on how to install this on my system. It says the NI Modbus supports versions up to LabVIEW 8.6, I'm using LabVIEW 15. The instructions keep talking about the LABVIEW_ROOT directory. Where is this directory located in LabVIEW 2015? Any help with this is appreciated.

View more reviews

Bookmark & Share



NI MODBUS Library 1.2.1



Rate this document

Answered Your Question?
Yes No