LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

timer control weirdness

Hi! bruno,

 

There are three functions in your dll: DestroiTemporizador(), CriarTemporizador(), and Temporiza().

Could you explain how one should use them instead of NI's Timer() or AsyncTimer()?

Thanks!

0 Kudos
Message 11 of 14
(882 Views)

How it works is simple.

 

You must initialize the timer with CriarTemporizador(CreateTimer) in the start section with the time(in milliseconds) which you want wait.

 

In the code section who you want to be timed you will put Temporiza (Wait). This functon returns the time thats the system waits.

The precision of the timer depends of the precision of the processor counters and not of the real-time clock.

 

And finally you destroy the tmer with the function DestroiTemporizador (DestroyTimer).

 

 

0 Kudos
Message 12 of 14
(852 Views)

Thanks!  I will give it a try....

Would be nicer if the function names are in English.

0 Kudos
Message 13 of 14
(832 Views)

I dont speak english Smiley Tongue

0 Kudos
Message 14 of 14
(830 Views)