modelCSVTest
CSV file read test
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
| Type | Name | Default | Description |
|---|---|---|---|
| ExternData.CSVFile | dataSource | CSV file | |
| Integer | m | dataSource.getArrayRows2D() | Number of rows in 2D array |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.TimeTable | timeTable |