disp (timer) - Information about timer object

Syntax

disp(obj)
obj

Description

disp(obj) displays summary information for the timer object, obj.

If obj is an array of timer objects, disp outputs a table of summary information about the timer objects in the array.

obj, that is, typing the object name alone, does the same as disp(obj)

In addition to the syntax shown above, you can display summary information for obj by excluding the semicolon when

Examples

The following commands display summary information for timer object t.

t = timer

Timer Object: timer-1

   Timer Settings
      ExecutionMode: singleShot
             Period: 1
           BusyMode: drop
            Running: off

   Callbacks
           TimerFcn: []
           ErrorFcn: []
           StartFcn: []
            StopFcn: []

This example shows the format of summary information displayed for an array of timer objects.

t2 = timer;
disp(timerfind)

Timer Object Array
Timer Object Array

   Index:  ExecutionMode:  Period:  TimerFcn:     Name:
   1       singleShot      1        ''            timer-1
   2       singleShot      1        ''            timer-2

See Also

timer, get(timer)

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS