.KeyWordIO.writeRealCSV

Information

This functions writes an array to a CSV file including header. If the header is not specified explicitly, the header is not written to the CSV file. Each row of the header string is written to the CSV file. However, the number of columns of matrix and header have to match.


File format

Interface

function writeRealCSV
  extends Modelica.Icons.Function;
  input String fileName = "Name of file" annotation(
    Dialog(saveSelector(filter = "Comma separated values (*.csv)", caption = "CSV data file")));
  input String delimiter = "\t" "Delimiter";
  input Real matrix[:, :] "Actual matrix to be written to CSV file";
  input String[:, :] header = fill("", 0, size(matrix, 2)) "Header lines to be written to CSV file";
  input Integer significantDigits = 6 "Number of significant digits";
end writeRealCSV;

Generated at 2024-04-19T18:16:02Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos