WOLFRAM SYSTEM MODELER
RealToIntegerConvert Real to Integer signal |
SystemModel["Modelica.Blocks.Math.RealToInteger"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This block computes the output y as nearest integer value of the input u:
y = integer( floor( u + 0.5 ) ) for u > 0; y = integer( ceil ( u - 0.5 ) ) for u < 0;
u |
Type: RealInput Description: Connector of Real input signal |
|
---|---|---|
y |
Type: IntegerOutput Description: Connector of Integer output signal |
Modelica.Blocks.Examples Demonstrates the usage of blocks from Modelica.Blocks.MathInteger |
Modelica.Blocks.Sources Generate an Integer output signal based on a table matrix with [time, yi] values |
|
Modelica.Clocked.ClockSignals.Clocks.Rotational Event clock generating a clock tick each time an observed input angle changed for a rotational-interval given as variable input |