DataFromFile.emx

Navigation:  Library > Signal > Sources >

DataFromFile.emx

Previous pageReturn to chapter overviewNext page

Library

Signals\Sources

Use

Domains: Continuous. Size: 1-D. Kind: Block Diagrams.

Description

This is a masked model which opens the Data Input Wizard when edited. You can use this wizard to open a data file.

DataFromFile

Items

Filename: Enter the filename of the datafile or use the Browse button.
Name: The columns of data.
20-sim Name: The 20-sim name that corresponds with the column data. You can enter any desired name.
Variable / Output: The data may be a variable (useful for plotting in the simulator) or an output of the model (use as an input for other models).

Interface

Outputs

Description

outputs

user defined outputs

File format

20-sim supports data files in Comma Separated Values format (.csv). The first line is used as a header describing the column name. Without a proper header line, you have to define the 20-sim variable names for each column yourself. The first column should always contain the time values. The other columns should contain the corresponding data values (see also data).

 

Example CSV file format with header:

 

"time","x","y"

0.0, 1, 2

0.1, 5, 10

0.2, 6, 11