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

TypeNameDefaultDescription
StringfileName"time_energy.csv"
StringinputQuantity"energy(Ws)"Header to be written to CSV file
Stringdelimiter"\t"Delimiter
Modelica.Units.SI.TimestartTime0Start time
Modelica.Units.SI.TimesamplePeriod86400Sample time (86400s = 1d)

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInputu

Components

TypeNameDefaultDescription
BooleansampleTriggerTrue, if sample time instant
BooleanfirstTriggerRising edge signals first sample instant