WOLFRAM

CreateDataSystemModel[{v1,v2,}]

creates a SystemModel generating a signal of values vi.

CreateDataSystemModel[{{t1,v1},}]

creates a model for the time-value pairs {ti,vi}.

creates a model for the TimeSeries or InterpolatingFunction obj.

CreateDataSystemModel[fun,tmin,tmax]

creates a model with samples from the function fun between tmin and tmax.

CreateDataSystemModel[data,"dspec"]

creates a model with data specification "dspec".

Details and Options

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

Create a model from a list of time-value pairs:

Out[2]=2

Simulate and plot the output of the data model:

Out[3]=3
Out[4]=4

Create a model from a TimeSeries:

Out[1]=1

Simulate and plot the output:

Out[3]=3

Create a data model of a sampled function between 0 and 10 seconds:

Simulate and plot the output:

Out[2]=2

Scope  (18)Survey of the scope of standard use cases

Value Lists  (4)

Create a data model from a list of values:

The sample interval is assumed to be 1 second:

Out[4]=4

Specify a custom sampling period:

Simulate for 1 second and plot:

Out[3]=3

Use a custom InterpolationOrder:

Simulate and plot the output:

Out[3]=3

SparseArray is interpreted as the corresponding Normal array:

The sample interval is assumed to be 1 second:

Out[3]=3

Time-Value Pairs  (3)

Create a model from a list of time-value pairs:

Simulate and plot the output:

Out[4]=4

Use a custom InterpolationOrder:

Simulate and plot the output:

Out[3]=3

Create data with multiple values for each time point:

Simulate and plot the two output curves:

Out[3]=3

TimeSeries  (3)

Create a data model from a TimeSeries:

Out[1]=1

Simulate and plot the output:

Out[4]=4

The InterpolationOrder from the TimeSeries is preserved:

Out[2]=2

Simulate and plot the output:

Out[4]=4

Override the InterpolationOrder when creating a data model:

Out[2]=2

Simulate and plot the output:

Out[4]=4

InterpolatingFunction  (2)

Create a model from an InterpolatingFunction:

Simulate and plot the output:

Out[5]=5

Resample an InterpolatingFunction before creating the model:

Simulate and plot the output:

Out[4]=4

Functions  (3)

Create a data model of a function sampled for 10 seconds:

The sample points are automatically determined:

Out[3]=3

Choose the InterpolationOrder:

Simulate and plot 2 seconds of the data output to show the interpolation order:

Out[2]=2

Set the sampling period when creating the model:

Simulate and plot the output:

Out[2]=2

Data Specification  (3)

Create a data model that takes time and interpolates it over two value columns:

Show the first rows of the data:

Create a model that uses time to interpolate over the data:

Simulate the model:

Plot the interpolated variables:

Out[5]=5

Create a data model that takes an input and interpolates it over two value columns:

Show the first rows of the data:

Create a model with the data:

Simulate with an input that samples the data at twice the speed of time:

Plot the interpolated variables:

Out[5]=5

Create a data model that takes two scalar inputs and runs them through a bivariate interpolation:

Split coordinates and values to show the data in a 3D plot:

Show the data points:

Out[3]=3

Create a model with the data:

Simulate with inputs:

Plot the interpolation results together with the original data:

Out[6]=6

Options  (7)Common values & functionality for each option

InterpolationOrder  (3)

An InterpolationOrder of 0 gives constant segments between samples:

Simulate and plot the output:

Out[4]=4

An InterpolationOrder of 1 gives straight lines between samples:

Simulate and plot the output:

Out[3]=3

An InterpolationOrder of 3 gives a smooth line with a continuous derivative:

Simulate and plot the output:

Out[3]=3

SamplingPeriod  (3)

For a list of data, SamplingPeriod determines the period between data points:

The output has 2-second-long linear sections between samples:

Out[4]=4

For a function, SamplingPeriod determines how often a function is sampled:

Simulate with sampling periods of 0.5 and 2 seconds:

Compare the output for each simulation:

Out[4]=4

For a TimeSeries, SamplingPeriod resamples uniformly:

Out[2]=2
Out[3]=3

Downsample the time series when creating the data model:

Simulate and plot the output:

Out[5]=5

GeneratedAssetLocation  (1)

Data is stored in the model by default:

Use GeneratedAssetLocation to export a data file to a specified location referenced by the model:

Applications  (1)Sample problems that can be solved with this function

Create a data model with noisy output for 5 seconds:

Connect it to a lowpass filter:

Out[2]=2

Simulate the filtering model:

Out[3]=3

Show the signal before and after filtering:

Out[4]=4

Properties & Relations  (2)Properties of the function, and connections to other functions

Insert created model in a package:

The package contains both created models:

Out[4]=4

Export as a file for use in a "CombiTimeTable" Modelica component:

Out[2]=2

Possible Issues  (1)Common pitfalls and unexpected behavior

Larger datasets in the model may lead to slower simulations:

Out[3]=3

Simulating with data exported using MCTT Export is faster:

Out[6]=6

Use GeneratedAssetLocation to export a data file to a specified location referenced by the model:

Out[17]=17
Wolfram Research (2018), CreateDataSystemModel, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateDataSystemModel.html (updated 2020).
Wolfram Research (2018), CreateDataSystemModel, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateDataSystemModel.html (updated 2020).

Text

Wolfram Research (2018), CreateDataSystemModel, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateDataSystemModel.html (updated 2020).

Wolfram Research (2018), CreateDataSystemModel, Wolfram Language function, https://reference.wolfram.com/language/ref/CreateDataSystemModel.html (updated 2020).

CMS

Wolfram Language. 2018. "CreateDataSystemModel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/CreateDataSystemModel.html.

Wolfram Language. 2018. "CreateDataSystemModel." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/CreateDataSystemModel.html.

APA

Wolfram Language. (2018). CreateDataSystemModel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CreateDataSystemModel.html

Wolfram Language. (2018). CreateDataSystemModel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CreateDataSystemModel.html

BibTeX

@misc{reference.wolfram_2025_createdatasystemmodel, author="Wolfram Research", title="{CreateDataSystemModel}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/CreateDataSystemModel.html}", note=[Accessed: 19-June-2025 ]}

@misc{reference.wolfram_2025_createdatasystemmodel, author="Wolfram Research", title="{CreateDataSystemModel}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/CreateDataSystemModel.html}", note=[Accessed: 19-June-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_createdatasystemmodel, organization={Wolfram Research}, title={CreateDataSystemModel}, year={2020}, url={https://reference.wolfram.com/language/ref/CreateDataSystemModel.html}, note=[Accessed: 19-June-2025 ]}

@online{reference.wolfram_2025_createdatasystemmodel, organization={Wolfram Research}, title={CreateDataSystemModel}, year={2020}, url={https://reference.wolfram.com/language/ref/CreateDataSystemModel.html}, note=[Accessed: 19-June-2025 ]}