Hit Crossing
Detect crossing point
Libraries:
Simulink / Discontinuities
Simulink / Messages & Events
HDL Coder / Discontinuities
SimEvents
Description
TheHit Crossingblock detects when the input reaches theHit crossing offsetparameter value in the direction specified by theHit crossing directionproperty.
You can configure the block to output a1
or0
signal, a message, or a function-call event. SeeOutputfor more information.
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Tips
If theHit Crossingblock is configured to output a message and the output signal:
Crosses into or out of a referenced model
Is fed to the input of a Stateflow chart
then you need to create a bus object for the message signal. In the MATLAB Command Window, runSimulink.createHitCrossMessage
to check for and, if needed, create a hit crossing message bus object in the base workspace.
集的数据类型对应的端口Bus: HitCrossMessage
.
Extended Capabilities
版本历史
Introduced before R2006a