This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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 queries the available system memory every second and plots the percentage of memory that the system is using.

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

| |