Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

representation of graphical formation into digital formation.

representation of graphical formation into digital formation.

After simulation of any model, we get the plotting prspective within it we can see the output parameters as "GRAPHICAL FORM[/b]".I want to see that graphical representation into digital representation , i mean i  want to be able to see the value of output parameters at different time instances like time t=0,0.2,0.3,0.4,1,2,3,4,5.Is it possible to get numerical value at all the different time instances?
Look forward for your response.
Best regards,
jitesh kadivar

Re: representation of graphical formation into digital formation.

You can generate .csv files instead of .mat files and open them in Excel.
In OMEdit: Simulation->Simulation Setup->Output tab->Output Format.

Alternatively you can use a script, say script.mos file containing:

Code:


// start script.mos
loadModel(Modelica); getErrorString();
// loadFile("YourModel.mo");  getErrorString();
// loadModel(YourModel); getErrorString();
simulate(YourModel, stopTime=5);  getErrorString();
val(variable_name, 0);
val(variable_name, 0.2);
val(variable_name, 0.3);
// end script.mos

Then run omc from command line and give script.mos as a parameter:

Code:


c:\OpenModelicaX.Y.Z\bin\omc script.mos

There are 0 guests and 0 other users also viewing this topic
You are here: