Library with models that facilitates the reporting of values
This package contains components models to report values to files.
Extends from Modelica.Icons.VariantsPackage (Icon for package containing variants).
Name | Description |
---|---|
Printer | Model that prints values to a file |
printRealArray | Print string to terminal or file |
Examples | Collection of models that illustrate model use and test models |
Model that prints values to a file
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 |
Extends from Modelica.Blocks.Interfaces.DiscreteBlock (Base class of discrete control blocks).
Type | Name | Default | Description |
---|---|---|---|
Time | samplePeriod | Sample period of component [s] | |
Time | startTime | 0 | First sample time instant [s] |
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 |
Type | Name | Description |
---|---|---|
input RealInput | x[nin] | Value to be printed |
Print string to terminal or file
Function that prints a real array to an output file.
Extends from Modelica.Icons.Function (Icon for functions).
Type | Name | Default | Description |
---|---|---|---|
Real | x[:] | Input to be printed | |
String | fileName | "" | File where to print (empty string is the terminal) |
Integer | minimumLength | 1 | Minimum width of result |
Integer | significantDigits | 6 | Number of significant digits |
Type | Name | Description |
---|---|---|
String | outStr | String to be printed |