LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

EVENT_TIMER_TICK occurs sometimes while timer is getting enabled

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);
}

 

 

0 Kudos
Message 1 of 3
(4,431 Views)

Hi Christophe,

 

I have tried, but I haven't found much about your issue. The only think I could think of would be a bug in your CVI version. can you tell me which version you are using? Can you be sure to have all the updates and patches installed?

 

Have a nice day,

M-Junior

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

Hi M-Junior,

 

Thanks for your reply. I modify my source code to be sure that ModemTimeoutDnx is different from 0. I'm waiting somes tests from my customer.

 

Regards.

Christophe P.

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