|
|
| Vector | C | |
in the palette |
on the schematic |
Performs rounding (accuracy limitation) of the input real number with user-defined accuracy. The block is vectorized and it is a submodel (assembly). To view the structure of the algorithm, right-click Actions → Enter to the submodel. The block operation algorithm implements the following formula:
where
ui(
t) is an element of the input vector,
p is a parameter specifying the rounding accuracy,
yi(
t) is an element of the output vector.
Outputs
- Output - rounded output signal.
Properties:
- Accuracy step – parameter p.
Прим.:
- By default, the block generates a scalar output signal.
- Named properties can be set as local model variables (submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using an attachable signal database.