Home > Mobile >  How to use the timer high frequency (800 hz) process?
How to use the timer high frequency (800 hz) process?

Time:09-21

We are prepared to use QT + raspberry pie + ads1115 sampling frequency (864) of analog signal acquisition, the present stage is to use two kinds of implementation patterns: Windows: : timerevent every read 2 ms, or define qtimer, a timeout to send signals to slot readsignal (), but there are data showed that two kinds of model based on QT timer for 2 ms such time interval is not accurate, only two modes in the interval 66 ms (more than 15 hz) more reliable, should be how to achieve such a high frequency of execution process?

CodePudding user response:

Open a thread, and then use the Sleep + qApp - & gt; ProcessEvents (); Feasible?

CodePudding user response:

Don't quite understand, is there any sample code, making the can also

CodePudding user response:

Read while + Sleep implementation timing, while in call qApp - & gt; ProcessEvents (); Refresh the interface,
  •  Tags:  
  • Qt
  • Related