blockWriteCSV
Simple block to write CSV files with one time and data column
Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).
Information
The sampled input data of this blocks are written to a CSV file.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | fileName | "time_energy.csv" | |
| String | inputQuantity | "energy(Ws)" | Header to be written to CSV file |
| String | delimiter | "\t" | Delimiter |
| Modelica.Units.SI.Time | startTime | 0 | Start time |
| Modelica.Units.SI.Time | samplePeriod | 86400 | Sample time (86400s = 1d) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput | u |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | sampleTrigger | True, if sample time instant | |
| Boolean | firstTrigger | Rising edge signals first sample instant |