LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Microseconds While Loop (Arduino and Labview)

Hi Alexis,

 

so you read the manual/documentation and now use the correct settings!? 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 13
(392 Views)

@Alexis_Koul wrote:

Dear GerdW,

Good news. I fixed the problem. What I changed was the Serial.begin and baud rate to 115200 instead of 9600 and apparently is working.

Thanks again,
Alex


Still, transmitting at maximum speed with no control over the rate is not a good idea, it could fill the transmit buffer and the actual data being transmitted over the wire would begin to lag behind the input to your VI. You really need to control the transmit rate to avoid saturating the link. At 115,200 bps, since your message is only a single byte, you could theoretically send it at most 11,520 times per second without buffering. Do you need it to update at a certain rate? How about once per millisecond, would 1000 Hz be frequent enough?

0 Kudos
Message 12 of 13
(379 Views)

Hello,

Thank you very much for your feedback. When I had it 9600, it was not working properly. So the 1000 Hz might not be enough. I changed to 80000 bps and is still working fine. Am I allow to do that?


I got your point, and I agree. Please if you can explain me more would be great.

Regards,
Alex

0 Kudos
Message 13 of 13
(359 Views)