Adrian Pop
Sat, 10 Oct 2009 12:32:47 -0700
Hi Dieter, The problem is that plot2 generates a file called tmpPlot.plt and then invokes the script: $OPENMODELICAHOME/bin/doPlot tmpPlot.plt via the C system command. Because the generation of the tmpPlot.plt file is very fast the 2 java process that you start via your plot2 commands will end up reading the same file. I fixed this in Subversion by generating a different file name for each plot, i.e. tmpPlot_1.plt, tmpPlot_2.plt. Please take and compile the latest code from Subversion: https://openmodelica.ida.liu.se/svn/OpenModelica/trunk to get this fixed. Alternatively, just take file: https://openmodelica.ida.liu.se/svn/OpenModelica/trunk/Compiler/Ceval.mo and place it into your Compile/ directory. Cheers, Adrian Pop/ Dieter Wilhelm wrote:
Hi,
I'm running OM 1.4.5 from svn and I'd like to draw two subsequent graphs
(because of the very different scaling of the variables) and have in my
.mos file the following commands:
simulate(DriveTrain, stopTime=8.);
plot2({stop.flange_i.angle});
plot2({stop.flange_i.torque, inertia.flange_o.torque});
And in fact I do receive two plotting frames, but unfortunately the
first plot becomes somehow "overwritten" with the second one, i. e. the
two plotting windows show the same content (from the second plot
command).
Thanks for your assistance
Dieter
-- _____________________________________________________________________ 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