Main Content

Create App with Timer Object Configured Programmatically

This app shows how to create a timer object in App Designer that executes a function at regular time intervals. In this case, the app generates random data every second and plots the result.

This example also demonstrates the following app building tasks:

  • Writing a callback for an object created programmatically (in this case, the timer object)

  • Configuring a timer object to execute its callback at regular intervals

  • Starting the timer when the user clicks the Start button

  • Stopping the timer when the user clicks the Stop button

  • Deleting the timer when the app closes

See Also