Main Content

Create App with Timer Object that Queries Website Data

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 queries the wind speed from a web site every five seconds and plots the returned value.

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 theStartbutton

  • 停止ping the timer when the user clicks the停止button

  • Deleting the timer when the app closes

See Also

Classes

Functions

Properties