LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a 30s Loop

I want to perform a function that will repeat every 30s. In other word, I want to have a 30s loop. Anyone please advice.
 
Thanks
0 Kudos
Message 1 of 4
(3,296 Views)
you can use cvi timer to do it..
Right click on your panel(in the .uir) and sellect "Timer".
double click on the control and set interval to 30. write the name of your function in the callback textbox. press "ok".
right click on the Timer contorl and select "Generate code", right click again and select "view code".
you can add your code to be executed there..

paulos
0 Kudos
Message 2 of 4
(3,295 Views)
How do i control the starting and ending or this timer?
0 Kudos
Message 3 of 4
(3,280 Views)

One thing you should do is to right-click on the timer control in the .uir, select "Control Help", and then follow the "Programming Timer Controls" link. That help topic will give you all the information about enabling / disabling and resetting the timer interval.

Luis

0 Kudos
Message 4 of 4
(3,266 Views)