- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to read in parameters ?
How to read in parameters ?
How to read in parameters ?
I want the simulation (named "Paramread") to read a parameter (a number) from my test.txt
and I used readreelParameter, and it worked.
But when I started the Paramread.exe and changed the number in the test.txt, the old number stayed in the new parameter_res.csv .
model paramread
Modelica.SIunits.Mass m = Modelica.Utilities.Examples.readRealParameter("test.txt", "Masse") annotation(uses(Modelica(version = "3.2.1")));
Modelica.SIunits.Area A = Modelica.Utilities.Examples.readRealParameter("test.txt", "Flaeche");
annotation(uses(Modelica(version = "3.2.1")));
end paramread;
How can I read in the parameters so that the Paramread.exe reads in the new numbers with every start and doesn't keep the old ones?
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to read in parameters ?