Read column of case CSV file by header name


function readCaseColCSV
  extends Modelica.Icons.Function;
  input String fileName "CSV file name" annotation(
    Dialog(saveSelector(filter = "Comma separated values (*.csv)", caption = "CSV data file")));
  input Integer header = 2 "Number of header rows";
  input Integer margin = 2 "Number of left margin columns";
  input String delimiter = "\t" "Delimiter of CSV file";
  input Boolean useQuotedStrings = false "Use quoted strings, if true";
  input Boolean cache = false "Read file before compiling, if true";
  input String name "Name of header string be searched";
  input Integer headerRow = 1 "Header row index for searching name";
  output Real val[readRowsCSV(fileName = fileName, delimiter = delimiter, cache = cache) - header] "Real vector extracted from data matrix";
end readCaseColCSV;

Generated at 2021-03-04T02:00:13Z by OpenModelicaOpenModelica 1.18.0~dev-106-gaf583a5 using GenerateDoc.mos