Reset
Control block for resettable subsystem
Description
A Reset block placed at the root level of a Subsystem block adds a control port to the block. When a reset trigger signal occurs on the signal connected to the port, the block states of the subsystem are reset to their initial condition. See Resettable Subsystem.
Examples
Discrete and Continuous Resettable Subsystems
Compares the behavior of discrete and continuous resettable subsystems. After you run the simulation, one scope shows the results for the discrete resettable subsystem, and the other scope shows the results for the continuous resettable subsystem.
Parameters
Select the type of trigger signal that resets the subsystem block states.
level
Reset the block states when the trigger signal is nonzero at the current time step or changes from nonzero at the previous time step to zero at the current time step.
rising
Reset the block states when the trigger signal rises from a zero to a positive value or from a negative to a positive value.
falling
Reset the block states when the trigger signal falls from a positive value to zero or from a positive to a negative value.
either
Reset the block states when the trigger signal changes from a zero to a nonzero value or changes sign.
level hold
Reset the block states when the trigger signal is nonzero at the current time step.
Programmatic Use
Block Parameter:
ResetTriggerType |
Type: character vector |
Value:
'level' | 'rising' |
'falling' | 'either' |
'level hold' |
Default:
'level' |
Select when to propagate a variable-size signal.
During execution
Propagate variable-size signals at each time step.
Only when resetting
Propagate variable-size signals when resetting a Subsystem block containing a Reset port block. When you select this option, sample time must be periodic.
Programmatic Use
Block Parameter:
PropagateVarSize |
Type: character vector |
Value:
'During execution' | 'Only when
resetting' |
Default:
'During execution' |
Control zero-crossing detection.
on
Detect zero crossings.
off
Do not detect zero crossings.
Programmatic Use
Block Parameter:
ZeroCross |
Type: character vector |
Value:
'on' | 'off' |
Default:
'on' |
Extended Capabilities
HDL Coder™ provides additional configuration options that affect HDL implementation and synthesized logic.
This block has one default HDL architecture.
Version History
Introduced in R2015aYou can define variant control variables in the mask and model workspaces to
control active variants in the Reset Function block, provided the
Generate preprocessor conditionals parameter is
off
.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)