LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When streaming data with modbus the reading rate returns to a slow rate after update of baudrate.

Solved!
Go to solution

Hi,

I am having problems with streaming data with the attached VI. It concerns the inner FOR loop in frame 7 of the flat sequence. The times between readings were more than the specified 100ms timer so I upped the buad rate from 9600 to 19200 this improved the timing down to about 125ms. But after a few runs the time increased again to about 800ms. I updated to 38400 and the performance was perfect but then after starting the VI a couple of times it went back to roughly 800ms again. I suspect this is something to do with Visa because I have found generally that if you stop a VI when it is running you get unusual com port addresses in the comport list which when cleared gets rid of communications problems. But clearing those in this case doesnt help.

I have the same issue on another similar set up and changing the modbus client pc, also with a new installation of Labview community, doesnt help either. 

I hope you can help.

0 Kudos
Message 1 of 4
(142 Views)

Please share your VI, it may also be with how you implemented the code inside the loop causing it to slow down over time, a common mistake is accumulating data over time in array and writing to file in the same loop as the reading part.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 4
(140 Views)

Sorry I attached my VIs before but didnt upload

Download All
0 Kudos
Message 3 of 4
(130 Views)
Solution
Accepted by topic author EdHarris

The  solution is here. Not eally a solution more like an outcome.

What-could-change-after-a-baud-rate-increase-to-slow-down-serial 

0 Kudos
Message 4 of 4
(11 Views)