06-02-2023 12:55 AM
hello ,
now i want use modbus protocol in my project.
i find there are modbus lib can be used in labview. but is there any modbus lib can be used in labwindows for
free?
I find there are many free open modbus code use in c# winform.
can any body give me modbus lib or code that can be used in labwindows?
tks!
06-02-2023 03:10 AM
Hello,
I have a vague recollection that NI-CAN can do CANBUS and MODBUS but I may be wrong. You should also check the XNET library and the Automotive Diagnostic Command Set. They are addons.
06-04-2023 08:07 AM - edited 06-04-2023 08:08 AM
NI-CAN and NI-XNET do not have any modbus functionality AFAIK.
But what have you searched for really??
https://github.com/stephane/libmodbus
https://github.com/Jacajack/liblightmodbus
https://github.com/debevv/nanoMODBUS
https://github.com/nimaltd/master-modbus
https://github.com/rtlabs-com/m-bus
Use your poison to satisfy your requirements, from minimalistic single file implementations to multiplatform support with underlaying abstraction layers.
And this is just a quick and dirty search with the first few relevant hits. If you want to go really into it there are many many more to choose from.
06-05-2023 03:22 AM
You may also want to take a look to this sample I published a few years ago. It is specifically aimed to Modbus RTU over RD232, but the basics of modbus are there and you can adapt it easily to TCP
Modbus RTU programming over RS232 in CVI