WOLFRAM SYSTEMMODELER LINK PACKAGE

Modelica CombiTimeTable

BackgroundBackground

    Modelica CombiTimeTable ASCII format data files.
    File format used by Modelica.
    Exported files can be read by Modelica component .

Import and ExportImport and Export

  • Export["file.txt",{{"n1",{{t1,v1},},},"ModelicaCombiTimeTable"] writes the time-value pairs for variable names in an ASCII file readable by Modelica component .
  • Export["file.txt",{{"n1",{v1,},},"ModelicaCombiTimeTable"] exports the values for variable names .
  • For a list of values , SamplingPeriod controls the time step, with a default step of .
  • Export["file.txt",{{"n1",ts1},},"ModelicaCombiTimeTable"] exports the TimeSeries for variable names .
  • Export["file.txt",{{"n1",f1},},"ModelicaCombiTimeTable","StartTime"->tmin, exports sampled functions at automatically determined sample points from to .
  • The option SamplingPeriod can be used to explicitly set the distance between samples.

ExamplesExamplesopen allclose all

Basic Examples  (5)Basic Examples  (5)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Export already sampled data for two variables:

In[1]:=
Click for copyable input
Out[1]=

Export samples without explicit time points:

In[1]:=
Click for copyable input
Out[1]=

Do automatic sampling of a function:

In[1]:=
Click for copyable input
Out[1]=

Export a TimeSeries:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
Translate this page: