- Index
- » Users
- » BjT
- » Profile
Posts
Posts
BIG THX. Very helpful. it work
Hi,
we have a question. In the attachement you can find 3 files (http://141.24.208.101:88/task/modelica_forum.rar).
we wanna execute runScript("reaction2b.mos"); on the OMShell.
All is working fine in the following order in the file:
loadFile("reaction2.mo");
simulate(reaction2);
system("reaction2.exe -f reaction2_init.xml -overrideFile=reaction2_param.txt");
plot({xA,xB});
BUT
we have to do the simulate everytime before with the wrong parameters to get the system and the plot command work.
we try this
loadFile("reaction2.mo");
buildModel(reaction2);
system("reaction2.exe -f reaction2_init.xml -overrideFile=reaction2_param.txt");
plot({xA,xB});
with buildModel also all files are builded. But with buildModel the system command and the plot command than gives 0 or false.
1. question:
Why we have to use simulate first? buildModel will do the same we think? what is the difference between these two commands?
2. question:
We dont wanna simulate everytime at first with wrong parameters. Because in the system command we use overrideFile to give the new parameters.
Is there a way to use the system command and after that the plot without simulate?
- Index
- » Users
- » BjT
- » Profile