| Programming | ![]() |
Retrieving the Value of Timer Object Properties
To retrieve the value of a timer object property, you can use the get function or use subscripts (dot notation) to access the field.
The following example uses the set function to retrieve the value of the ExecutionMode property:
The following example uses dot notation to retrieve the value of the ExecutionMode property:
To view a list of all the properties of a timer object, use the get function, specifying the timer object as the only argument:
get(t) AveragePeriod: NaN BusyMode: 'drop' ErrorFcn: '' ExecutionMode: 'singleShot' InstantPeriod: NaN Name: 'timer-4' ObjectVisibility: 'on' Period: 1 Running: 'off' StartDelay: 0 StartFcn: '' StopFcn: '' Tag: '' TasksExecuted: 0 TasksToExecute: Inf TimerFcn: '' Type: 'timer' UserData: []
| Working with Timer Object Properties | Setting the Value of Timer Object Properties | ![]() |
© 1994-2005 The MathWorks, Inc.