Check that input signal has specified resolution
The Check Input Resolution block checks whether the input signal
has a specified scalar or vector resolution (see Resolution). If the resolution is a scalar, the input
signal must be a multiple of the resolution within a
If the resolution is a vector, the input signal must equal an element
of the resolution vector. If the verification condition is true, the
block does nothing. If not, the block halts the simulation, by default,
and displays an error message.
The Check Input Resolution block and its companion blocks in the Model Verification library are intended to facilitate creation of self-validating models. For example, you can use model verification blocks to test that signals do not exceed specified limits during simulation. When you are satisfied that a model is correct, you can turn error checking off by disabling the verification blocks. You do not have to physically remove them from the model. If you need to modify a model, you can temporarily turn the verification blocks back on to ensure that your changes do not break the model.
Note: For information about how Simulink® Coder™ generated code handles Model Verification blocks, see Debug.
The Check Input Resolution block accepts input signals of data
double and of any dimension. If the input
signal is nonscalar, the block checks the resolution of each element
of the input test signal.
For more information, see Data Types Supported by Simulink in the Simulink documentation.
Specify the resolution that the input signal must have.
Clearing this check box disables the Check Input Resolution block, that is, causes the model to behave as if the block did not exist. The Model Verification block enabling setting on the All Parameters tab in the Configuration Parameters dialog box allows you to enable or disable all model verification blocks in a model, including Check Input Resolution blocks, regardless of the setting of this option.
Specify a MATLAB® expression to evaluate when the assertion fails. Because the expression is evaluated in the MATLAB workspace, define all variables used in the expression in that workspace.
Selecting this check box causes the Check Input Resolution block to halt the simulation when the block's output is zero and display an error in the Diagnostic Viewer. Otherwise, the block displays a warning message in the MATLAB Command Window and continues the simulation.
Selecting this check box causes the Check Input Resolution block
to output a Boolean signal that is true (
each time step if the assertion succeeds and false (
if the assertion fails. The data type of the output signal is
you have selected the Implement logic signals as Boolean
data check box on the All Parameters tab
of the Configuration Parameters dialog box. Otherwise the data type
of the output signal is
Inherited from driving block