LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How many timers can I use?

Hi,

How many timers running at .1 sec can I use concurently without slowing my
program and Windows down? I want to monitor several different Digital inputs
and taking according actions.

Thanks

LVilla
0 Kudos
Message 1 of 2
(2,919 Views)
Hello LVilla,
If you want to do 10 things every 0.1 seconds, generally 1 timer is used that ticks each 0.1 second, and its callback performs all 10 actions. Thus the 10 actions are performed every 0.1 seconds. You might say that the 10th item will be performed significantly later than the first in your timer callback, this could be true. However, using 10 timers is not going to solve this issue unless they are running in 10 different threads, and even then, you still have only one CPU in your computer, so the actions will be serialized anyhow. If you explain to us in more detail what you are trying to accomplish, we should be able to provide better recommendations.

Jeremiah Cox
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 2
(2,919 Views)