modelPrinter
Model that prints values to a file
Extends from Modelica.Blocks.Interfaces.DiscreteBlock.
Information
This model prints to a file or the terminal at a fixed sample interval.
The parameter configuration controls the printing as follows:
configuration | configuration |
1 | print at sample times only |
2 | print at sample times and at end of simulation |
3 | print at end of simulation only |
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | header | "" | Header to be printed |
| String | fileName | "" | File name (empty string is the terminal) |
| Integer | nin | 1 | Number of inputs |
| Integer | configuration | 1 | Index for treating final report (see documentation) |
| Integer | minimumLength | 1 | Minimum length of result string |
| Integer | significantDigits | 16 | Number of significant digits |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.RealInput[nin] | x | Value to be printed |
Revisions
-
September 24, 2015 by Michael Wetter:
Set start value forfirstTrigger. This is for issue 426. -
May 27, 2011 by Michael Wetter:
Changed parameterprecisiontosignificantDigitsandminimumWidthtominimumLengthto use the same terminology as the Modelica Standard Library. -
October 1, 2008 by Michael Wetter:
Revised implementation and moved to new package. -
July 20, 2007 by Michael Wetter:
First implementation.