Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5339

EVENT_TIMER_TICK occurs sometimes while timer is getting enabled

$
0
0

Hi,

I have a timer that is initially desactivated. When i activate this timer (timerstart), sometimes i have EVENT_TIMER_TICK that is fired (ModemTimeoutDnx == 10 for example). It works normally on some PC and sometimes it fails on other.

Any idea of this problem ?

Regards.

Christophe P.

 

 

 

void timerstart(int panel)
{
    SetCtrlAttribute(panel ,CONNECT_TIMERDNXAUTO, ATTR_INTERVAL , (double)(ModemTimeoutDnx*60));
    SetCtrlAttribute(panel, CONNECT_TIMERDNXAUTO, ATTR_ENABLED , 1);
}

void timerstop(void)
{
    SetCtrlAttribute( panel, CONNECT_TIMERDNXAUTO, ATTR_ENABLED , 0);
}

void timerreset(void)
{
    ResetTimer(panel,CONNECT_TIMERDNXAUTO);
}

 

 


Viewing all articles
Browse latest Browse all 5339

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>