| Simulink Reference | ![]() |
Check that the input signal has a specified resolution
Library
Description
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 10e-3 tolerance. 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.
Data Type Support
The Check Input Resolution block accepts input signals of any dimensions and of any data type supported by Simulink. If the input signal is nonscalar, the block checks the resolution of each element of the input test signal.
For a discussion on the data types supported by Simulink, refer to Data Types Supported by Simulink in the Using Simulink documentation.
Parameters and Dialog Box
1) at each time step if the assertion succeeds and false (0) if the assertion fails. The data type of the output signal is Boolean if you have selected the Implement logic signals as boolean data option on the Simulation and code generation optimization pane of the Configuration Parameters dialog box. Otherwise the data type of the output signal is double.
Characteristics
| Direct Feedthrough |
No |
| Sample Time |
Inherited from driving block |
| Scalar Expansion |
No |
| Dimensionalized |
Yes |
| Zero Crossing |
No |
| Check Dynamic Upper Bound | Check Static Gap | ![]() |
© 1994-2005 The MathWorks, Inc.