/
Refresh Program Data (Timer)

Refresh Program Data (Timer)

Description

One of the most common ways to refresh your program is by utilizing the Timer component. The timer will control how often the program is refreshed. 

Instructions

1. Bring out a Timer component from the Components panel


2. Set your Timer's Delay to determine how often you want your program to refresh


3. Create a Timer variable in your program that invokes the function on "Custom Event". Use the image below as a direct reference on how it should be set up. 


4. If you are refreshing a query of some sort then you must add a refreshPoints() function into your program.

Your point variable should be within the function so it knows what data it needs to refresh when the timer goes off.




Related content

GB API
Read with this
Custom Events
Custom Events
More like this
GB Ractive
GB Ractive
Read with this
Global Control
Global Control
More like this
Virtual Points
Virtual Points
Read with this
Update Connectors
Update Connectors
More like this