This shows you the differences between two versions of the page.
| logicpython:cubloc_api:setontimer [2026/04/10 02:06] – created - external edit 127.0.0.1 | logicpython:cubloc_api:setontimer [2026/04/10 06:12] (current) – removed mfranklin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== SetOnTimer ====== | ||
| - | |||
| - | Enable or disable execution of callbacks registered with '' | ||
| - | |||
| - | ===== Syntax ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import SetOnTimer | ||
| - | |||
| - | SetOnTimer(enabled: | ||
| - | </ | ||
| - | |||
| - | ===== Parameters ===== | ||
| - | |||
| - | * **enabled**: | ||
| - | |||
| - | ===== Exceptions ===== | ||
| - | |||
| - | * [[https:// | ||
| - | |||
| - | ===== Example ===== | ||
| - | |||
| - | <code python> | ||
| - | from cubloc import OnTimer, SetOnTimer, Debug, CR | ||
| - | |||
| - | def timer_handler(): | ||
| - | Debug(" | ||
| - | |||
| - | OnTimer(100, | ||
| - | SetOnTimer(False) | ||
| - | SetOnTimer(True) | ||
| - | </ | ||
| - | |||
| - | ===== Related APIs ===== | ||
| - | |||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||
| - | * [[logicpython: | ||