blockTextFileSink

A block for printing to the terminal or to a text file interpreting the package content as string.

Extends from Modelica_DeviceDrivers.Utilities.Icons.BaseIcon (Base icon for blocks providing access to external devices), Modelica_DeviceDrivers.Blocks.Communication.Internal.PartialSampleTrigger (Common code for triggering calls to external I/O devices).

Information

A block for printing to the terminal or to a text file interpreting the package content as string.

Parameters

TypeNameDefaultDescription
BooleanprintToTerminaltruetrue, print to terminal, otherwise print to file below.
StringfileName"filesink.txt"File to which data shall be written
Activation
BooleanenableExternalTrigger (from PartialSampleTrigger)falsetrue, enable external trigger input signal, otherwise use sample time settings below
SI.PeriodsampleTime (from PartialSampleTrigger)0.1Sample period of component
SI.TimestartTime (from PartialSampleTrigger)0First sample time instant
Outgoing data
BooleanautoBufferSizetruetrue, buffer size is deduced automatically, otherwise set it manually.
IntegeruserBufferSize16*1024Buffer size of message data in bytes (if not deduced automatically).

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.BooleanInputtrigger (from PartialSampleTrigger)
Modelica_DeviceDrivers.Blocks.Interfaces.PackageInpkgIn