openmodelicainterest  

Re: AW: Problen in Plotting During Simulation

Adrian Pop
Wed, 21 Oct 2009 07:06:59 -0700


Hi all,

This is a known (well, known at least by me) bug.

I think that the bug was introduced while fixing
other bugs in OMNotebook in the QT plot package.

The bug is either in c_runtime or in OMNotebook/Pltpkg2.

A bit of debugging is needed to fix this.
I'll try to fix it in the coming weeks.

Cheers,
Adrian Pop/

alexander.roehn...@dlr.de wrote:
Dear Peter,

I filed it as bug #1115: Plotting during simulation broken.

Best regards,

Alexander Röhnsch

------------------------------------------------------------------------

*Von:* owner-openmodelicainter...@ida.liu.se [mailto:owner-openmodelicainter...@ida.liu.se] *Im Auftrag von *Peter Fritzson
*Gesendet:* Mittwoch, 21. Oktober 2009 13:48
*An:* openmodelicainterest@ida.liu.se
*Betreff:* RE: Problen in Plotting During Simulation

Dear Alexander,

This is clearly a bug. This once worked, but not in versoin 1.4.5.

Can you file a bug report (see the OpenModelica web page)

Best regards,

Peter F

------------------------------------------------------------------------

*From:* owner-openmodelicainter...@ida.liu.se [mailto:owner-openmodelicainter...@ida.liu.se] *On Behalf Of *alexander.roehn...@dlr.de
*Sent:* den 21 oktober 2009 10:44
*To:* openmodelicainterest@ida.liu.se
*Subject:* AW: Problen in Plotting During Simulation

I tried the UserGuide example from the chapter “3.2.4. Plotting During Simulation” and got the very same error as Roshna. The simple example reads as follows. I entered it in the OpenModelica Shell v. 1.1. (for OpenModelica 1.4.5).

*class *HelloWorld

Real x(start = 1);

parameter Real a = 1;

*equation*

der(x) = - a * x;

*end *HelloWorld;

enableSendData(true);

setVariableFilter({x});

simulate(HelloWorld, startTime=0, stopTime=25);

Regards,

Alexander Röhnsch

------------------------------------------------------------------------

*Von:* owner-openmodelicainter...@ida.liu.se [mailto:owner-openmodelicainter...@ida.liu.se] *Im Auftrag von *Roshna
*Gesendet:* Montag, 19. Oktober 2009 12:19
*An:* openmodelicainterest@ida.liu.se
*Cc:* nilanc...@cdactvm.in
*Betreff:* Problen in Plotting During Simulation

Hai all,

We want to plot the simulation data using enableSendData function with true as a parameter .But whatever be the model we are getting windows error(pease see the attachment).

Can we use this function(enableSendData) to plot a real-time simulation data? Is there any other way for plotting, if the simulation is too long?

Thanks in advance.

Roshna C P

Control & Instrumentation Group,

Center for Development of Advanced Computing,

Trivandrum, India.



--
_____________________________________________________________________
Adrian Pop                      | PhD
Open Source Modelica Consortium | Technical Coordinator
Department of Computer Science  | http://www.ida.liu.se/~adrpo
Linköping University            | phone:+46 76 2343499/+46 13 285781
S-581 83 Linköping, Sweden      | fax:  +46 13 142231
OSMC & LiU/IDA/PELAB            | office: 3B:478