CreateDataSystemModel
✖
CreateDataSystemModel
creates a model with samples from the function fun between tmin and tmax.
Details and Options


- CreateDataSystemModel will create an interpolated curve that is typically used as flexible input to other models.
- CreateDataSystemModel returns a SystemModel[…] object that can be connected to other models.
- CreateDataSystemModel["NewModel",…] gives the created model the name "NewModel".
- CreateDataSystemModel["PackageA.NewModel",…] inserts "NewModel" into "PackageA".
- The following options can be given:
-
InterpolationOrder Automatic interpolation order SamplingPeriod Automatic time between samples GeneratedAssetLocation None location of data file - Default values of InterpolationOrder according to input:
-
{v1,v2,…},{{t1,v1},…} 1 TimeSeries, InterpolatingFunction preserved fun 3 - For a list of values vi, SamplingPeriod defaults to 1.
- Sample points in TimeSeries and InterpolatingFunction are preserved.
- Possible "dspec" values include:
-
"Time" time column and value columns "1D" argument column and value columns "2D" arguments row and column and value matrix - The corresponding data arrays have the layouts given here:
- The default "dspec" is "Time".

Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Create a model from a list of time-value pairs:

https://wolfram.com/xid/0rke2minlwcx4l5-veulo0

https://wolfram.com/xid/0rke2minlwcx4l5-jq04ty

Simulate and plot the output of the data model:

https://wolfram.com/xid/0rke2minlwcx4l5-hsvuhe


https://wolfram.com/xid/0rke2minlwcx4l5-rzso19

Create a model from a TimeSeries:

https://wolfram.com/xid/0rke2minlwcx4l5-y4bcm8


https://wolfram.com/xid/0rke2minlwcx4l5-dd1wd9

https://wolfram.com/xid/0rke2minlwcx4l5-migmsb

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

https://wolfram.com/xid/0rke2minlwcx4l5-15hmr2

https://wolfram.com/xid/0rke2minlwcx4l5-i2ude2

Scope (18)Survey of the scope of standard use cases
Value Lists (4)
Create a data model from a list of values:

https://wolfram.com/xid/0rke2minlwcx4l5-gybh44

https://wolfram.com/xid/0rke2minlwcx4l5-esqze4
The sample interval is assumed to be 1 second:

https://wolfram.com/xid/0rke2minlwcx4l5-ivhj0v

Specify a custom sampling period:

https://wolfram.com/xid/0rke2minlwcx4l5-1u7qle

https://wolfram.com/xid/0rke2minlwcx4l5-wxj4sq
Simulate for 1 second and plot:

https://wolfram.com/xid/0rke2minlwcx4l5-j0kjkc

Use a custom InterpolationOrder:

https://wolfram.com/xid/0rke2minlwcx4l5-4y24hg

https://wolfram.com/xid/0rke2minlwcx4l5-okn6am

https://wolfram.com/xid/0rke2minlwcx4l5-02vcbc

SparseArray is interpreted as the corresponding Normal array:

https://wolfram.com/xid/0rke2minlwcx4l5-q79uhf

https://wolfram.com/xid/0rke2minlwcx4l5-y6xa30
The sample interval is assumed to be 1 second:

https://wolfram.com/xid/0rke2minlwcx4l5-3gl768

Time-Value Pairs (3)
Create a model from a list of time-value pairs:

https://wolfram.com/xid/0rke2minlwcx4l5-k10gql

https://wolfram.com/xid/0rke2minlwcx4l5-gny0lz

https://wolfram.com/xid/0rke2minlwcx4l5-plfibf

Use a custom InterpolationOrder:

https://wolfram.com/xid/0rke2minlwcx4l5-16s1g8

https://wolfram.com/xid/0rke2minlwcx4l5-vwgibh

https://wolfram.com/xid/0rke2minlwcx4l5-yr6pvr

Create data with multiple values for each time point:

https://wolfram.com/xid/0rke2minlwcx4l5-l1jcwa

https://wolfram.com/xid/0rke2minlwcx4l5-ud22im
Simulate and plot the two output curves:

https://wolfram.com/xid/0rke2minlwcx4l5-p7e5la

TimeSeries (3)
Create a data model from a TimeSeries:

https://wolfram.com/xid/0rke2minlwcx4l5-2c5fgi


https://wolfram.com/xid/0rke2minlwcx4l5-ecxgi9

https://wolfram.com/xid/0rke2minlwcx4l5-t6uonr

The InterpolationOrder from the TimeSeries is preserved:

https://wolfram.com/xid/0rke2minlwcx4l5-x96jzo

https://wolfram.com/xid/0rke2minlwcx4l5-0bit1l


https://wolfram.com/xid/0rke2minlwcx4l5-hhz5hj

https://wolfram.com/xid/0rke2minlwcx4l5-qtv1of

Override the InterpolationOrder when creating a data model:

https://wolfram.com/xid/0rke2minlwcx4l5-cl6881

https://wolfram.com/xid/0rke2minlwcx4l5-pt9ip9


https://wolfram.com/xid/0rke2minlwcx4l5-i1onbl

https://wolfram.com/xid/0rke2minlwcx4l5-zldclr

InterpolatingFunction (2)
Create a model from an InterpolatingFunction:

https://wolfram.com/xid/0rke2minlwcx4l5-s4cz4p

https://wolfram.com/xid/0rke2minlwcx4l5-3x2nyu

https://wolfram.com/xid/0rke2minlwcx4l5-d2lujj

https://wolfram.com/xid/0rke2minlwcx4l5-18l4u3

Resample an InterpolatingFunction before creating the model:

https://wolfram.com/xid/0rke2minlwcx4l5-kbs0u

https://wolfram.com/xid/0rke2minlwcx4l5-idaaea

https://wolfram.com/xid/0rke2minlwcx4l5-wnqoz4

https://wolfram.com/xid/0rke2minlwcx4l5-pxhkyw

Functions (3)
Create a data model of a function sampled for 10 seconds:

https://wolfram.com/xid/0rke2minlwcx4l5-8zeue6
The sample points are automatically determined:

https://wolfram.com/xid/0rke2minlwcx4l5-k5535n

https://wolfram.com/xid/0rke2minlwcx4l5-xbhbtk

Choose the InterpolationOrder:

https://wolfram.com/xid/0rke2minlwcx4l5-7oo55z
Simulate and plot 2 seconds of the data output to show the interpolation order:

https://wolfram.com/xid/0rke2minlwcx4l5-57zhqj

Set the sampling period when creating the model:

https://wolfram.com/xid/0rke2minlwcx4l5-2rf6s5

https://wolfram.com/xid/0rke2minlwcx4l5-vdcaeq

Data Specification (3)
Create a data model that takes time and interpolates it over two value columns:

https://wolfram.com/xid/0rke2minlwcx4l5-bnn47f
Show the first rows of the data:

https://wolfram.com/xid/0rke2minlwcx4l5-qxkcya

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

https://wolfram.com/xid/0rke2minlwcx4l5-enyr7h

https://wolfram.com/xid/0rke2minlwcx4l5-n9bxbp
Plot the interpolated variables:

https://wolfram.com/xid/0rke2minlwcx4l5-345i8f

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

https://wolfram.com/xid/0rke2minlwcx4l5-j9953o
Show the first rows of the data:

https://wolfram.com/xid/0rke2minlwcx4l5-bghbnp


https://wolfram.com/xid/0rke2minlwcx4l5-e9d1k7
Simulate with an input that samples the data at twice the speed of time:

https://wolfram.com/xid/0rke2minlwcx4l5-nm5zpv
Plot the interpolated variables:

https://wolfram.com/xid/0rke2minlwcx4l5-cmzcap

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

https://wolfram.com/xid/0rke2minlwcx4l5-2xfv4v
Split coordinates and values to show the data in a 3D plot:

https://wolfram.com/xid/0rke2minlwcx4l5-zykpxd

https://wolfram.com/xid/0rke2minlwcx4l5-sdppwa


https://wolfram.com/xid/0rke2minlwcx4l5-xz9gm3

https://wolfram.com/xid/0rke2minlwcx4l5-mw9kx3
Plot the interpolation results together with the original data:

https://wolfram.com/xid/0rke2minlwcx4l5-o7iio1

Options (7)Common values & functionality for each option
InterpolationOrder (3)
An InterpolationOrder of 0 gives constant segments between samples:

https://wolfram.com/xid/0rke2minlwcx4l5-mxqfpi

https://wolfram.com/xid/0rke2minlwcx4l5-bw52ad

https://wolfram.com/xid/0rke2minlwcx4l5-g3zd18

An InterpolationOrder of 1 gives straight lines between samples:

https://wolfram.com/xid/0rke2minlwcx4l5-ol0lrp

https://wolfram.com/xid/0rke2minlwcx4l5-3xpnx4

https://wolfram.com/xid/0rke2minlwcx4l5-8j78hc

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

https://wolfram.com/xid/0rke2minlwcx4l5-7dvq3p

https://wolfram.com/xid/0rke2minlwcx4l5-zzha5n

https://wolfram.com/xid/0rke2minlwcx4l5-zehl2z

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

https://wolfram.com/xid/0rke2minlwcx4l5-cdp2ac

https://wolfram.com/xid/0rke2minlwcx4l5-e2y4ju
The output has 2-second-long linear sections between samples:

https://wolfram.com/xid/0rke2minlwcx4l5-40a21p

https://wolfram.com/xid/0rke2minlwcx4l5-kkkur8

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

https://wolfram.com/xid/0rke2minlwcx4l5-pxf8e8

https://wolfram.com/xid/0rke2minlwcx4l5-egw078
Simulate with sampling periods of 0.5 and 2 seconds:

https://wolfram.com/xid/0rke2minlwcx4l5-rltqja
Compare the output for each simulation:

https://wolfram.com/xid/0rke2minlwcx4l5-lqwr2v

For a TimeSeries, SamplingPeriod resamples uniformly:

https://wolfram.com/xid/0rke2minlwcx4l5-vnm86r

https://wolfram.com/xid/0rke2minlwcx4l5-3yp4h7


https://wolfram.com/xid/0rke2minlwcx4l5-5wnjoc

Downsample the time series when creating the data model:

https://wolfram.com/xid/0rke2minlwcx4l5-z204yj

https://wolfram.com/xid/0rke2minlwcx4l5-4q9v4z

GeneratedAssetLocation (1)
Data is stored in the model by default:

https://wolfram.com/xid/0rke2minlwcx4l5-cs3o69
Use GeneratedAssetLocation to export a data file to a specified location referenced by the model:

https://wolfram.com/xid/0rke2minlwcx4l5-2yakkw
Applications (1)Sample problems that can be solved with this function
Create a data model with noisy output for 5 seconds:

https://wolfram.com/xid/0rke2minlwcx4l5-n0lgmz
Connect it to a lowpass filter:

https://wolfram.com/xid/0rke2minlwcx4l5-wydkkh


https://wolfram.com/xid/0rke2minlwcx4l5-6z7yow

Show the signal before and after filtering:

https://wolfram.com/xid/0rke2minlwcx4l5-7j9gr2

Properties & Relations (2)Properties of the function, and connections to other functions
Insert created model in a package:

https://wolfram.com/xid/0rke2minlwcx4l5-whd7n3

https://wolfram.com/xid/0rke2minlwcx4l5-ygbk9j

https://wolfram.com/xid/0rke2minlwcx4l5-hmu6r5
The package contains both created models:

https://wolfram.com/xid/0rke2minlwcx4l5-svmro4

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

https://wolfram.com/xid/0rke2minlwcx4l5-9di0tq

https://wolfram.com/xid/0rke2minlwcx4l5-x8ody0

Possible Issues (1)Common pitfalls and unexpected behavior
Larger datasets in the model may lead to slower simulations:

https://wolfram.com/xid/0rke2minlwcx4l5-5dlag7

https://wolfram.com/xid/0rke2minlwcx4l5-fwzjfm

https://wolfram.com/xid/0rke2minlwcx4l5-0cxp6

Simulating with data exported using MCTT Export is faster:

https://wolfram.com/xid/0rke2minlwcx4l5-2it50l

https://wolfram.com/xid/0rke2minlwcx4l5-0txbhl

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

https://wolfram.com/xid/0rke2minlwcx4l5-qyupui

https://wolfram.com/xid/0rke2minlwcx4l5-nf85z7

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
]}
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
]}