LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

haw get a timer value

haw get a timer value and haw display this
0 Kudos
Message 1 of 3
(3,089 Views)
Hi viorel,

you can get you timer value by using the command below, assuming it is a timer control on the .uir

GetCtrlVal (int Panel_Handle, int Control_ID, &Value);


To set the value into a control on the .uir:

SetCtrlVal (int Panel_Handle, int Control_ID, Value);


you can also find some useful information in the Menubar>>Help>>Contents

Hope this helps.

Regards
AL
0 Kudos
Message 2 of 3
(3,087 Views)
Another way is to use Timer () function, useful if there is no timer control loaded.

Different is the case if you want to know actual clock time: in that case you can use TimeStr () function.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(3,082 Views)