Programming Previous page   Next Page

Deleting Timer Objects from Memory

When you are finished with a timer object, delete it from memory using the delete function:

When you delete a timer object, workspace variables that referenced the object remain. Deleted timer objects are invalid and cannot be reused. Use the clear command to remove workspace variables that reference deleted timer objects.

Testing the Validity of a Timer Object

To test if a timer object has been deleted, use the isvalid function. The isvalid function returns logical 0 (false) for deleted timer objects:

Deleting All Existing Timer Objects

To remove all timer objects from memory, enter

For information about the timerfind function, see Finding All Timer Objects in Memory.


Previous page  Handling Callback Function Queuing Conflicts Finding All Timer Objects in Memory Next page

© 1994-2005 The MathWorks, Inc.