Help - Search - Members - Calendar
Full Version: set in sleep mode a simulation under OpenModelica or Dymola?
Modelica Forum > Modelica > Modelica
Jawhar
Hello,

I have done a model which interacts with an external program. During the simulation and when the external program is doing something, i want to set in sleep mode the simulation under OpenModelica or Dymola for an interval of time.


Is this possible? Is there a function to set in sleep mode a simulation under OpenModelica or Dymola?

Thank you..

Regards,

Jawhar
wagner
Hello Jawhar,

I built my own real time option and I needed a sleep function as well. Attached to this file you'll find a package which uses the sleep function of c. You also need the sleep.h and Sleep.lib files which you need to copy to the Folder of your Modelica model.

I tested the sleep function using Dymola 6.0d and Visual Studio 2005.

Regards

Florian
Jawhar
QUOTE(wagner @ Mar 20 2007, 11:00 AM) *

Hello Jawhar,

I built my own real time option and I needed a sleep function as well. Attached to this file you'll find a package which uses the sleep function of c. You also need the sleep.h and Sleep.lib files which you need to copy to the Folder of your Modelica model.

I tested the sleep function using Dymola 6.0d and Visual Studio 2005.

Regards

Florian


Thank you wagner.. your are always present when i need assistance.

I will test this and i will be back.

Best regards,

Jawhar
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.