Saarland University
Lehrstuhl für Automatisierungstechnik

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> use simulateExtendedModel how to add or change the time intervall?, simulateExtendedModel change/add time intervall in a script-file
saiph74
post Sep 10 2012, 11:17 AM
Post #1


Newbie
*

Group: Members
Posts: 6
Joined: 9-August 12
Member No.: 625,862



QUOTE(saiph74 @ Sep 10 2012, 08:40 AM) *

Hello,
i programmed a little script file to simulate a model multiple times with different parameter values. What i want to do now is to "rescale/change" the time interval for the "startTime" and "stopTime" of the simulation. As i realized that the "standard" time intervall 0.0 - 1.0 doesn't show any relevant changes.
My Question is now is: How and (maybe) where can i add this in the script file?
can you help me? smile.gif



I got it smile.gif . So just in case somebody else has the same problem here my code:
CODE

openModel("LLKReg.mo")
for i in 0:22 loop
simulateExtendedModel("LLKReg", 0.0, 100000.0, initialNames={"u"}, initialValues={i}, finalNames={"T_l2"}, resultFile="Lllktest"+String(i+1));
// with startTime:= 0.0 and stopTime := 10000.0"
end for;
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
saiph74
post Sep 10 2012, 08:40 AM
Post #2


Newbie
*

Group: Members
Posts: 6
Joined: 9-August 12
Member No.: 625,862



Hello,
i programmed a little script file to simulate a model multiple times with different parameter values. What i want to do now is to "rescale/change" the time interval for the "startTime" and "stopTime" of the simulation. As i realized that the "standard" time intervall 0.0 - 1.0 doesn't show any relevant changes.
My Question is now is: How and (maybe) where can i add this in the script file?

CODE
openModel("LLKReg.mo")
for i in 0:22 loop
simulateExtendedModel("LLKReg", initialNames={"u"}, initialValues={i}, finalNames={"x"}, resultFile="Lllktest"+String(i+1));
end for;
// end simulateExtendedModel;


can you help me? smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 16th September 2019 - 08:13 PM