LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with ProcessSystemEvents function

I am using two different Timers, one is for reading the acquisition
data and other is for displaying the acquired data. The Timer for
reading the acquired data is reading at higher frequency that is the
Timer interval is very low like 0.1 Sec and for displaying the data
the timer interval is of 1 sec.
When my ProcessSystemEvent function is running i found out it somehow
is skipping the callback for Timer to read the acquired data it is
just going through the dispalying Timer callback and in between
randmoly checking for Timer callback for reading the acquired data.
Which is throughing my control part totally out of control.Is there
anyway i can make it right??
0 Kudos
Message 1 of 3
(2,607 Views)
I would use async timers or better multithreading for applications like
these. The CVI comes with examples of how to something similar using
threads. Look at the BufNoDataLoss.prj example.


vishi

aadesh wrote:
> I am using two different Timers, one is for reading the acquisition
> data and other is for displaying the acquired data. The Timer for
> reading the acquired data is reading at higher frequency that is the
> Timer interval is very low like 0.1 Sec and for displaying the data
> the timer interval is of 1 sec.
> When my ProcessSystemEvent function is running i found out it somehow
> is skipping the callback for Timer to read the acquired data it is
> just going through the dispalying Timer callback and in between
> randmoly checking for Timer callback for
reading the acquired data.
> Which is throughing my control part totally out of control.Is there
> anyway i can make it right??
0 Kudos
Message 2 of 3
(2,607 Views)
I can't find this sample. I'm using CVI7.0 and just made a search in my pC. No such file. Can you try again to specify the right sample?

Thanks
0 Kudos
Message 3 of 3
(2,607 Views)