modelCSVTest

CSV file read test
Diagram of CSVTest

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example model reads the table parameter from the CSV file test.csv. The table parameter is read as Real array of dimension 3x2 by function ExternData.CSVFile.getRealArray2D. The read parameter is assigned by a parameter binding to the appropriate model parameter.

Parameters

TypeNameDefaultDescription
ExternData.CSVFiledataSourceCSV file
IntegermdataSource.getArrayRows2D()Number of rows in 2D array

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.TimeTabletimeTable