matlab debounce,Debounce Signals

matlab debounce,Debounce SignalsKeyBehaviorsofDebouncerChartThekeybehaviorsoftheDebouncerchartare:IntermediateDebounceStateIsolatesTransientsInadditiontothestatesOnandOff,theDebouncerchartcontainsaninterme…

大家好,又见面了,我是你们的朋友全栈君。

Key Behaviors of Debouncer Chart

The key behaviors of the Debouncer chart are:

Intermediate Debounce State Isolates Transients

In addition to the states On and Off, the Debouncer chart contains

an intermediate state called Debounce. The Debounce state isolates

transient inputs by checking whether the signals retain their positive

or negative values, or fluctuate between zero crossings over a prescribed

period of time. The logic works as follows.

If the input signal…Then this state…Transitions

to…And the…Retains positive value for 0.1 secondDebounce.OnOnSwitch turns on

Retains negative value for 0.1 secondDebounce.OffOffSwitch turns off

Fluctuates between zero crossings for 0.3 secondDebounceOff.FaultNote:

The Debounce to Off.Fault transition comes from a higher level

in the chart hierarchy and overrides the transitions from the Debounce.Off

and Debounce.On substates.Chart isolates the input as a transient signal and gives

it time to recover

Temporal Logic Determines True State

The

debouncer design pattern uses temporal logic to:Determine whether the input signal is normal or transient

Give transient signals time to recover and return

to normal state

Use Absolute-Time Temporal Logic.The debouncer design uses the after(n,

sec) operator to implement absolute-time temporal logic

(see Operators for Absolute-Time Temporal Logic). The keyword sec defines

simulation time that has elapsed since activation of a state.

Use Event-Based Temporal Logic.As an alternative to absolute-time temporal logic, you can apply

event-based temporal logic to determine true state in the Debouncer

chart by using the after(n, tick) operator

(see Operators for Event-Based Temporal Logic). The keyword tick specifies

and implicitly generates a local event when the chart awakens (see Control Chart Execution Using Implicit Events).

The Error Generator block in the sf_debouncer model

generates a pulse signal every 0.001 second. Therefore, to convert

the absolute-time temporal logic specified in the Debouncer chart

to event-based logic, multiply the n argument

by 1000, as follows.

Absolute Time-Based LogicEvent-Based Logicafter ( 0.1, sec )after ( 100, tick )

after ( 0.3, sec )after ( 300, tick )

after ( 1, sec )after ( 1000, tick )

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/151548.html原文链接:https://javaforall.cn

【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛

【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...

(0)


相关推荐

发表回复

您的电子邮箱地址不会被公开。

关注全栈程序员社区公众号