LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

repeat actions

Hi,

 

How do you make this function repeat every 5 seconds?

 

SetCtrlVal (panel, PANEL_MESSAGES,"\n\n Data Rate \n");

 

Thanks

0 Kudos
Message 1 of 4
(2,606 Views)

With a timer control, in the timer callback put your SetCtrlVal statement.  Look up timer control in the CVI help.

 

Don't use an async timer, as it will run on a separate thread and you won't be able to reliably update a GUI control from an async callback.

 

 

0 Kudos
Message 2 of 4
(2,598 Views)

Hi,

 

you can use a timer and a timer callback. Search for timer in the help provided by CVI or have a look at the sample programs (Help / Find Examples)

0 Kudos
Message 3 of 4
(2,597 Views)

Thanks,

 

I got it.

0 Kudos
Message 4 of 4
(2,589 Views)