Writing real variable to file
function writeRealVariable extends Modelica.Icons.Function; input String fileName "Name of file" annotation( Dialog(saveSelector(filter = "Text file (*.txt;*.dat)", caption = "Text data file"))); input String name "Name of parameter"; input Real data "Actual value of parameter"; input Boolean append = false "Append data to file"; input Integer significantDigits = 6 "Number of significant digits"; end writeRealVariable;