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
  • Index
  • » Users
  • » smaug
  • » Profile

Posts

Posts

Can you please tell me how to give top level input??
(I'm really new at Modelica and I don't know much)

Hey,
Thanks for all your help.
You mentioned that if I want to obtain the code for only the PID, I should run the simulation on the PID.

For my model, i simply put a DC motor, a PID block, a Voltage Source etc. for the inbuilt Modelica Library. I cannot simulate a standalone PID block because it requires input. Thus I have to simulate the whole model together. Can you help me how to get the C code for this part.

Jun-22-15 14:30:23
Category: Developer

'Error occurred building AST
Syntax Error
[<interactive>:1:0-1:0:writable] Error: Lexer failed to recognize '#... Execut''

This is what I am getting as the message when i write this command

Also,
Let me know if there is any other method to get the C code from a modelica model? (maybe another software etc.)

Thanks

When I try to open OMShell, i get the following message
"The application has requested the Runtime to terminate it in an unusual way"

Can you help me regarding this?

Thanks

Hey

Somehow i cannot run OM SHell on my PC . Can this thing be done using OM EDit??

Thanks for the answer.

I just wanna know how can i access this file? Will it be saved in some directory?

Hey

I'm trying to figure out how to generate C code from modelica model? Could you help?

Hey everybody,

Could anybody tell me how to generate c code for a model in modelica?

Thanks

Jun-21-15 16:05:41
Category: Developer

Hey,

I am trying to figure out how to generate C code while making a model in Modelica. Could you let me know how you did it?

Thanks

Hey Fynn,

I am also stuck at the same problem and I want to generate C code from Modelica. Could you figure out how to do it?

Hey

I have simulated a basic DC motor in Modelica with a PID controller. I want to generate a C code for it. How to do that?
Also, I only need the code for a specific part of the model( i.e. the PID controller). How should I proceed?


Thanks

I am sorry, but this didn't work either.

the equation I found was der(dcpm.InertiaRotor.w)=Inertia1.a
However, Inertia1.a variable cannot be accessed.

I mean when I try to find Inertia1.a on the list on the left side, the variable is not accesible

Well, Thanks

But the only equation I can see is dcpm.RotorInertia.w= $_start(dcpm.RotorInertia.w)
How do I get its dependency on Voltage(V), Inertia(J) etc.

Thanks for the answer.
But, I didn't really get the solution. I couldn't find the representative equation for the speed.
I would really appreciate if you could help.

Thanks

Hey,

I'm trying to simualte a basic DC motor in OpenModelica. I'm concerned with the Output angular speed of the motor on application of a certain load.
I have been able to simulate the model and get the curve for the output angular speed. Is there a possible way by which I can get the equation for the the speed?
( What I'm trying to find is the dependecies of angular speed in terms of voltage applied,resistance,moment of inertia etc. in form of an equation)


Thanks

  • Index
  • » Users
  • » smaug
  • » Profile
You are here: