03-30-2017 02:08 PM
Thank you Troy,
I added a while loop and run it every 10ms, but if I click the mouse somewhere in the graph or do something then it takes even 50ms. If it's corrrect then there is no way to have jitter less than +/- 40ms.
Best regards
Hamid
03-30-2017 02:21 PM
Not having your UI updating in the same loop as your data processing helps with this. If you have a dedicated loop that does nothing but sends a message 40ms you will probably get jitter but still can't be guaranteed.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
04-18-2017 12:01 PM
I could make my GUI to be almost real-time. It's sending the messages every 20ms and very rarly every 21 ms. This webpage could help me:
https://www.winemantech.com/blog/the-ui-thread-root-loop-and-labview-what-you-need-to-know/
Also, I used a "Timed Loop" instead of while loop for sending the periodic message to the interface( with setting of high priority and 1kHz absolutetime and dt=0.0002 or 0 )
Also, calling the dlls should be set on "Run in any thread"
04-18-2017 12:35 PM
I attached an example.
04-18-2017 02:16 PM