WOLFRAM SYSTEM MODELER
IntegerTableGenerate an Integer output signal based on a table matrix with [time, yi] values |
SystemModel["Modelica.Blocks.Sources.IntegerTable"]
This information is part of the Modelica Standard Library maintained by the Modelica Association.
This block generates an Integer output signal by using a table. The time points and y-values are stored in a matrix table[i,j], where the first column table[:,1] contains the Real time points and the second column contains the Integer value of the output y at this time point. The table interpolation has the following properties:
extrapolation = 1: Hold the first or last value of the table, if outside of the table scope. = 2: Extrapolate by using the derivative at the first/last table points if outside of the table scope. (This setting is not suitable and triggers an assert.) = 3: Periodically repeat the table data (periodical function). = 4: No extrapolation, i.e. extrapolation triggers an error
Example:
table = [ 0, 1; 1, 4; 1.5, 5; 2, 6];
results in the following output:
table |
Value: fill(0, 0, 2) Type: Real[:,2] Description: Table matrix (first column: time; second column: y) |
---|---|
extrapolation |
Value: Modelica.Blocks.Types.Extrapolation.HoldLastPoint Type: Extrapolation Description: Extrapolation of data outside the definition range |
startTime |
Value: -Modelica.Constants.inf Type: Time (s) Description: Output = 0 for time < startTime |
shiftTime |
Value: 0 Type: Time (s) Description: Shift time of first table column |
y |
Type: IntegerOutput Description: Connector of Integer output signal |
---|
combiTimeTable |
Type: CombiTimeTable Description: Table look-up with respect to time and linear/periodic extrapolation methods (data from matrix/file) |
|
---|---|---|
realToInteger |
Type: RealToInteger Description: Convert Real to Integer signal |
Modelica.Blocks.Examples Demonstrates the usage of blocks from Modelica.Blocks.Interaction.Show |
|
Modelica.Clocked.Examples.Elementary.IntegerSignals Example of a Hold block for Integer signals |
|
Modelica.Clocked.Examples.Elementary.IntegerSignals Example of a SubSample block for Integer signals |
|
Modelica.Clocked.Examples.Elementary.IntegerSignals Example of a SuperSample block for Integer signals |
|
Modelica.Clocked.Examples.Elementary.IntegerSignals Example of a ShiftSample block for Integer signals |
|
Modelica.Clocked.Examples.Elementary.IntegerSignals Example of a BackSample block for Integer signals |
|
Modelica.Clocked.Examples.Elementary.IntegerSignals Example of an UpSample block for Integer signals |