LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modus library differences ?

Solved!
Go to solution
I've been using the NI Modbus library contained in "ni_modbus_1_2.zip, downloaded from NI. I've noticed recently another zip on this site "nimodbus121.zip. Are there any differences that anyone is aware of? I haven't done a serious comparison, they are the same size, just wondered why there are two different pages devoted to the same library, under different zip names?
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 1 of 9
(4,955 Views)
Solution
Accepted by LV_Pro

Hi LV_Pro,

 

That is strange...as long as your version contains LabVIEW 8.6 and the Readme says 1.2 from January 2008, as far as I know you have the 1.2 version.

Jeff | LabVIEW Software Engineer
0 Kudos
Message 2 of 9
(4,923 Views)

Hi,

 

Could you post the two links to the different files, because I was just able to find the one containing the "nimodbus121.zip".

 

 

Christian

0 Kudos
Message 3 of 9
(4,919 Views)

Well it appears that some how I saw an old page (which I now can't find) and a newly updated one. I may have left a tab open in my browser to the old one, then opened a new search, I've have done that before. I do find reference in the new page that make reference in the text to the old zip, "Version 1.2 (ni_modbus_1_2.zip) of the MODBUS LabVIEW Library is backward compatible" even though the clickable link is for the nimodbus121.zip. Both zip files are on the ftp site so I guess that my using the "Wayback machine" may have caused my confusion.

 

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 4 of 9
(4,902 Views)

Is there any listing of what has been changed between the 1.2 version of the library and version 1.1?  I didn't see anything in its readme file.

 

One thing that jumps out at me is that it appears to be using polymorphic VI's.

 

Are there any other differences?  Any bug fixes to be aware of ?

0 Kudos
Message 5 of 9
(4,891 Views)

Hi Putnam,

 

I just want to pass a long a possible "heads up". One of my co-workers used a modbus library he found on the NI site a while ago. It functioned but was implemented without any waits in the loops so it ended up starving the CPU when run on a cFP unit.

 

So check for waits in loops if the CPU is being pounded.

 

Take care,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 9
(4,887 Views)

In a recent thread, a user noticed a problem with the way MB Serial Init was programmed.  It has to to with the way it configures the data bits, stop bits, and parity depending on the Modbus mode you are using, and those settings do not match the modbus guide and may not match the device you are working with.

0 Kudos
Message 7 of 9
(4,884 Views)
Thanks, all. Guess I will spending this week going through the modbus "stuff". Saw a thread, which I didn't tag, which talked about a problem with a timing problem that might be the cause of an issue of getting random timeouts from an instrument (Lighthouse mini-manifold, a 6 port air sampling manifold), where I ended up putting in code to clear the timeout error 6101 and retry, up to a preset retry limit. Unfortunately the customer decided to send the unit back today, so I'm dead in the water for trying out changes. I noticed, in digging down into it, that the modbus stuff is stacked sequences, etc. Would probably fail the CLD exam!
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 8 of 9
(4,876 Views)

LV_Pro wrote:
Thanks, all. Guess I will spending this week going through the modbus "stuff". Saw a thread, which I didn't tag, which talked about a problem with a timing problem that might be the cause of an issue of getting random timeouts from an instrument (Lighthouse mini-manifold, a 6 port air sampling manifold), where I ended up putting in code to clear the timeout error 6101 and retry, up to a preset retry limit. Unfortunately the customer decided to send the unit back today, so I'm dead in the water for trying out changes. I noticed, in digging down into it, that the modbus stuff is stacked sequences, etc. Would probably fail the CLD exam!

Yes that sounds familiar. Find all For and While loops and make sure there is at least a "0 ms Wait" in all.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 9 of 9
(4,872 Views)