LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to recive data every 200 us by SerialPort

Thanks for the help in my post, In this moment I am working sending data by packet of 20 mesure per pack and this is working.

Also I saw that the graph in chart was delaying the program so I decided to graph every second.

I also tried with SerialUSB.flush and doesn't work, do no anithing.

And with wireshark I was monitoring the usb comunication, but I am not sure if the time column is in second. If is in that, the packet is sending every 4.1~4.4 ms, If is like I think, the Arduino is not sending periodically, I should send every 4.0ms (200us*20 mesures). I think that it happend by the way I am timing the period in arduino.

 

In this moment I am doing the saving data loop and HMI to check if the improvement worked

 

 

0 Kudos
Message 21 of 21
(446 Views)