08-03-2025 02:43 PM
Sorry, I don’t have LabVIEW accessible right now, but I also used the latest vipm package. The code on GitHub definitely shows it to be there: https://github.com/rfporter/Modbus-Master/tree/master/MB_Master
Look in the MB_Master class under Properties>Slave ID.
Since it’s in a property definition folder, you could also use a property node instead of the VI.
The VI from the NI Modbus Library won’t do you any good since it belongs to a different class.
The password for the NI library is bestbus. It is only applied in the vip build and is listed in the VI package build spec on GitHub: https://github.com/NISystemsEngineering/LabVIEW-Modbus-API/blob/master/.vipb
11-04-2025 07:15 AM - edited 11-04-2025 07:17 AM
Still having trouble getting labview modbus to run fast enough. I tried most of the suggestions above including opening and closing the modbus session outside the loop but that in fact ran slower. using the propery node to change unit ID was slow. I tried the NI modbus library and eventually found the change unit ID vi for Plasmionique (it is in the library but the slave library doesnt show on my pallet) and this is my best result but it is still variably 3 or 4 readings per second when I want 10. I have tried it on labview 2014, 2020 and the latest community edition. I have changed laptop with a clean install of windows 10 pro, but no good. I have a similar program running on a windows 7 machine with Labview 2014 -works perfectly. Any more sugestions please before I go off and program it in python (another 12 months probably).
11-04-2025 01:29 PM - edited 11-04-2025 01:32 PM
Hello EdHarris,
Since you mentioned COM Ports. About a month or two ago, Windows 10 and 11 changed some settings with their update. This affected my application with the COM ports. For me, that the solution was to look into the latency settings: (Changed it to 1ms from 16ms) (Update forced a 16ms value).
Maaybe your settings needs to be looked at as well. Worth a try before 12 month new project. Here is where is discussed my issue.
11-04-2025 04:53 PM - edited 11-04-2025 04:57 PM
Hello Xonmyth, thanks for that suggestion the atency was at 16 on my pc also. I am now up to 6 or 7 readings per second. I have tried reducing the number of slaves polled, taken out the arduino slave from the bus but it makes little difference. Still looks like its going to have to be pyhon though.