LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling timed callbacks

Solved!
Go to solution

Hi! I created a timed callback using createTimedCallback which I would like to disable for some time. Is this possible somehow or do I need to go the roundabout way of creating a timer that I tie the callback to instead? I have several timed callbacks but I would like to disable only this one, and not the others.

 

Thanks!

0 Kudos
Message 1 of 6
(1,584 Views)

Hi,

you can call SetCtrlAttribute for the timer with the attribute ATTR_ENABLED set to false. This will disable the timer

0 Kudos
Message 2 of 6
(1,568 Views)

Hi! Can you please elaborate? I didn't see the need to create a timer control, I simply called "createTimedCallback(myCallback, seconds_between_ticks);" and that seems to create a timer somewhere in the background, but I don't understand how to access it after its creation.

0 Kudos
Message 3 of 6
(1,563 Views)
Solution
Accepted by topic author guybrush_threepwood

I have to admit that I don't know the function createTimedCallback...

Message 4 of 6
(1,560 Views)

Oooops.

 

So sorry. I apparently have fewer braincells than usual today. Of course you don't. Apparently it's a user defined function in the program... 😅 Sorry for wasting your time and thank you for the explanation of how to disable timers!

 

Have a nice day!

0 Kudos
Message 5 of 6
(1,558 Views)

No problem, good luck with your project!

0 Kudos
Message 6 of 6
(1,554 Views)