LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CANcaseXL

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

Download All
0 Kudos
Message 11 of 15
(718 Views)

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. 

0 Kudos
Message 12 of 15
(716 Views)

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"

0 Kudos
Message 13 of 15
(703 Views)

I attached an example.

0 Kudos
Message 14 of 15
(699 Views)

Double post!

Best regards,
GerdW


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