LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with com port when streaming data.

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

0 Kudos
Message 11 of 14
(146 Views)

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).

Download All
0 Kudos
Message 12 of 14
(59 Views)

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.

Xonmyth_0-1762284461345.png

 

Message 13 of 14
(37 Views)

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.

0 Kudos
Message 14 of 14
(16 Views)