WOLFRAM SYSTEM MODELER

FileInput

A model created from input data

Wolfram Language

In[1]:=
SystemModel["DocumentationExamples.Simulation.FileInput"]
Out[1]:=

Information

Wolfram Language Documentation Examples

This library contains models used in the documentation of system modeling functionality in Wolfram Language. These examples and this library can be explored in the Wolfram Language documentation.

Parameters (19)

nout

Value: max([size(columns, 1); size(offset, 1)])

Type: Integer

Description: Number of outputs

tableOnFile

Value: true

Type: Boolean

Description: = true, if table is defined on file or in function usertab

table

Value: fill(0.0, 0, 2)

Type: Real[:,:]

Description: Table matrix (time = first column; e.g., table=[0, 0; 1, 1; 2, 4])

tableName

Value: "var1"

Type: String

Description: Table name on file or in function usertab (see docu)

fileName

Value: Modelica.Utilities.Files.loadResource("modelica://DocumentationExamples.Simulation.FileInput/DataInput.txt")

Type: String

Description: File where matrix is stored

verboseRead

Value: true

Type: Boolean

Description: = true, if info message that file is loading is to be printed

columns

Value: 2:size(table, 2)

Type: Integer[:]

Description: Columns of table to be interpolated

smoothness

Value: Modelica.Blocks.Types.Smoothness.LinearSegments

Type: Smoothness

Description: Smoothness of table interpolation

extrapolation

Value: Modelica.Blocks.Types.Extrapolation.LastTwoPoints

Type: Extrapolation

Description: Extrapolation of data outside the definition range

timeScale

Value: 1

Type: Time (s)

Description: Time scale of first table column

offset

Value: {0}

Type: Real[:]

Description: Offsets of output signals

startTime

Value: 0

Type: Time (s)

Description: Output = offset for time < startTime

shiftTime

Value: startTime

Type: Time (s)

Description: Shift time of first table column

timeEvents

Value: Modelica.Blocks.Types.TimeEvents.Always

Type: TimeEvents

Description: Time event handling of table interpolation

verboseExtrapolation

Value: false

Type: Boolean

Description: = true, if warning messages are to be printed if time is outside the table definition range

t_min

Value: t_minScaled * timeScale

Type: Time (s)

Description: Minimum abscissa value defined in table

t_max

Value: t_maxScaled * timeScale

Type: Time (s)

Description: Maximum abscissa value defined in table

t_minScaled

Value: Internal.getTimeTableTmin(tableID)

Type: Real

Description: Minimum (scaled) abscissa value defined in table

t_maxScaled

Value: Internal.getTimeTableTmax(tableID)

Type: Real

Description: Maximum (scaled) abscissa value defined in table

Connectors (1)

y

Type: RealOutput[nout]

Description: Connector of Real output signals

Components (1)

tableID

Type: ExternalCombiTimeTable

Description: External table object