LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI Modbus Lib in LabVIEW 2014

Solved!
Go to solution

Does Anyone see a Problem with Using NI Modbus Lib in Labview 2014 is meant for labVIEW version 7.1-8.6.  NI Directed me this way instead of the DCS Module since I am only using Modbus communication and that is just a very small part of the Module.  It installed and shows up on the user pallets just fine and wires up the way you would except it to:

nimodbus.png

However when I run the program I time out in the read register vi.  the example in the library does as well so I am at a loss as to what might be causing this issue. 

0 Kudos
Message 1 of 6
(4,397 Views)

It will work just fine.

 

You may need to resave the VI's as they compile for the newer version.

0 Kudos
Message 2 of 6
(4,389 Views)

I Reilize I should know what you mean by that cause its sounds like somthing i have learnd before but can you explain what resave as they compile.  do you mean the VI in which i called the modbus API or the vi in the Library itsself

0 Kudos
Message 3 of 6
(4,387 Views)
Solution
Accepted by topic author markhrussell

Hi

 

Try this snippet, you must have 1 in qantity you cant read 0, and you must put in the MEAP header.

 

// Lars

WiFi Guru, proud holder of world record in WiFi, 421 Km @ 2 mbit/s
Message 4 of 6
(4,383 Views)

Perferct Thanks for the help Guys I wasnt sure want the header meant and since it let me run the VI I assumed it was optional. 

 

Thanks

 

Mark Russell

0 Kudos
Message 5 of 6
(4,373 Views)

There is a mass compile option that can help.

 

Basically you are placing some older LV VI's on your PC.  When you open it in LV2014, it will automatically upconvert.  When you go to close the VI, it will ask if you want to save it.  Later if you use other subVI's for the first time, they'll do the same thing.

 

The easy fix is to open everything up within the library then save.  Or use the Mass Compile option on the LV menu and have it mass compile the library.

0 Kudos
Message 6 of 6
(4,361 Views)