Raoulll
Raoulll

Reputation: 1

Better ways to read files in modelica

I want to read the parameters in a csv/mat/xlsx file in dymola and perform subsequent calculations, but the file content is tens of thousands of lines or more, I currently use the following code to read the parameters, is there any better way to read the parameters?

parameter Integer data_rows = 50000;
parameter Integer data_cols = 4;
data := Streams.readRealMatrix("C:/Users/Raoul/Desktop/SIM/data/f16.mat",nrow = data_rows,ncol = data_cols,matrixName = "data");

Upvotes: 0

Views: 35

Answers (0)

Related Questions