Scheduled task
Posted: Mon May 26, 2014 5:30 am
Hi,
is it possible to run a scheduled task every second in iX?
is it possible to run a scheduled task every second in iX?
Code: Select all
//Tie the start of the timer to an event like screen open or tag value change
void Screen1_Opened(System.Object sender, System.EventArgs e)
{
m_Timer = new Timer();
m_Timer.Interval = 500;
m_Timer.Tick += doSomething;
m_Timer.Enabled = true;
}
void doSomething (object sender, EventArgs e)
{
//code to execute on each timer tick
}