matlab可清零的定时器,[转载]MATLAB 定时器
发布日期:2021-06-24 17:42:20 浏览次数:2 分类:技术文章

本文共 3694 字,大约阅读时间需要 12 分钟。

AveragePeriod

Average time between TimerFcn executions since the

timer started.

Note: Value is NaN until timer executes two timer callbacks.

Data type

double

Default

NaN

Read only

Always

BusyMode

Action taken when a timer has to

execute TimerFcn before the completion of previous

execution of TimerFcn.

'drop'

— Do not execute the function.

'error'

— Generate an error. Requires ErrorFcn to be set.

'queue'

— Execute function at next opportunity.

Data type

Enumerated string

Values

'drop'

'error'

'queue'

Default

'drop'

Read only

While Running = 'on'

ErrorFcn

Function that the timer executes

when an error occurs. This function executes before the

StopFcn. See Creating Callback Functions for more information.

Data type

Text string, function handle, or cell

array

Default

None

Read only

Never

ExecutionMode

Determines how the timer object

schedules timer events. See

Timer Object Execution Modes

for more information.

Data type

Enumerated string

Values

'singleShot'

'fixedDelay'

'fixedRate'

'fixedSpacing'

Default

'singleShot'

Read only

While Running = 'on'

InstantPeriod

The time between the last two executions of

TimerFcn.

Data type

double

Default

NaN

Read only

Always

Name

User-supplied name.

Data type

Text string

Default

'timer-i', where

i is a number indicating the ith

timer object created this session.

To reset i to 1, execute the clear classes

command.

Read only

Never

ObjectVisibility

Provides a way for application developers to prevent end-user

access to the timer objects created

by their application. The timerfind function does not return an object whose

ObjectVisibility property is set to 'off'.

Objects that are not visible are still valid. If you have access to

the object (for example, from within the M-file that created it),

you can set its properties.

Data type

Enumerated string

Values

'off'

'on'

Default

'on'

Read only

Never

Period

Specifies the delay, in seconds, between executions of

TimerFcn.

Data type

double

Value

Any number >= 0.001

Default

1.0

Read only

While Running = 'on'

Running

Indicates whether the timer is

currently executing.

Data type

Enumerated string

Values

'off'

'on'

Default

'off'

Read only

Always

StartDelay

Specifies the delay, in seconds, between the start of the

timer and the first execution of

the function specified in TimerFcn.

Data type

double

Values

Any number >= 0

Default

0

Read only

While Running ='on'

StartFcn

Function the timer calls when it

starts. See Creating Callback Functions for more information.

Data type

Text string, function handle, or cell

array

Default

None

Read only

Never

StopFcn

Function the timer calls when it

stops. The timer stops when

You call the timer stop

function

The timer finishes executing

TimerFcn, i.e., the value of TasksExecuted

reaches the limit set by TasksToExecute.

An error occurs

(The ErrorFcn is called first, followed by the

StopFcn.)

Date type

Text string, function handle, or cell

array

Default

None

Read only

Never

Tag

User supplied label.

Data type

Text string

Default

Empty string ('')

Read only

Never

TasksToExecute

Specifies the number of times the timer should execute the function specified in

the TimerFcn property.

Data type

double

Values

Any number > 0

Default

1

Read only

Never

TasksExecuted

The number of times the timer

has called TimerFcn since the timer was started.

Data type

double

Values

Any number >= 0

Default

0

Read only

Always

TimerFcn

Timer callback function. See

Creating Callback Functions for more information.

Data type

Text string, function handle, or cell

array

Default

None

Read only

Never

Type

Identifies the object type.

Data type

Text string

Values

'timer'

Read only

Always

UserData

User-supplied data.

Data type

User-defined

Default

[]

Read only

Never

转载地址:https://blog.csdn.net/weixin_34190683/article/details/115832608 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:mutable Java,MutableLong.java
下一篇:matlab画图应用,Matlab绘图函数的应用

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2024年04月28日 00时13分40秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章