Timer
Timer
This component functions like an invisible stopwatch. It triggers an event at regular intervals that you define. It is typically used for database queries, clock updates, or tag checks.
How to Use
- Add a Timer object to the page.
- In the Advanced panel, configure the Interval and Enabled properties.
- With the Timer selected, go to the Events panel.
- Double-click the Tick event to open the script editor.
- Any code you write inside the generated Timer1_Tick function will run automatically at each interval (in milliseconds) you specified.
Advanced Panel Properties
- Enabled:
When set to True, the timer runs and triggers the Tick event. When set to False, it stops. This acts as the main on/off switch of the timer. - Interval: 100
Defines how frequently the Tick event is triggered, in milliseconds (ms).- 100 = 10 times per second
- 1000 = once per second
