Printable Version of Topic

Click here to view this topic in its original format

Modelica Forum _ SimulationX Forum _ C# talking with Dymola

Posted by: Renata Aug 19 2008, 09:36 PM

Hello,

I have a model in modelica and I want to run it and get its result and use in a C# program.

How can I make my program in C# talk with Dymola, so I can run it in Dymola and get the results?

Thanks,

Renata

Posted by: dragos Nov 5 2008, 09:41 AM

Hello Renata,

One Modelica simulation created with Dymola can be executed as a DDE server. If you create your C# application as a DDE client you will be able to communicate with the Modelica simulation. I already done that using the NDde library (http://www.codeplex.com/ndde). It is actually very simple to use.

Regards,
Dragos

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)