Assertion
R2026bCheck whether signal is zero
Libraries:
Simulink /
Model Verification
HDL Coder /
Model Verification
Description
The Assertion block checks whether any of the elements of the input
signal are 0. If all of the elements are nonzero, the assertion is
true (1) and the block does nothing. If not, the block halts the
simulation and returns an error message by default.
Examples
Ports
Input
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/Model Verification/Assertion"
"hdlsllib/Model Verification/Assertion"
Example: add_block("simulink/Model Verification/Assertion","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
Extended Capabilities
Version History
Introduced before R2006a
