- Index
- » Developer
- » OpenModelica development
- » OpenModelica 1.8.1 sets %PTII% aka $PTII
OpenModelica 1.8.1 sets %PTII% aka $PTII
OpenModelica 1.8.1 sets %PTII% aka $PTII
I just installed OpenModelica 1.8.1 under Windows Server 2008 R2 (very similar to Windows 7). It looks like the OpenModelica 1.8.1 installer sets %PTII% to
C:\OpenModelica1.8.1\bin/ptplot.jar. The problem is that this will conflict with anyone who has Ptolemy II installed because Ptolemy II uses $PTII.
I'm one of the developers of Ptolemy II and Ptplot. I'm not sure why PTII would be set to the ptplot.jar file. In Ptolemy II, $PTII is set to the directory that contains the Ptolemy II release.
http://www.mail-archive.com/openmodelic … 00869.html
says
Admin privileges are needed *only* for
"Install for all users" option. If you
just install for yourself then it should
add the environment variables in the user
environment (and hopefully not complain).
If only PTII doesn't get set and the others:
- OPENMODELICAHOME
- OPENMODELICALIBRARY
- DRMODELICAHOME
are set correctly then only the Java based
plotting (via plot2, plotParametric2) will
not work. However, you can edit the script:
$OPENMODELICAHOME/bin/doPlot.bat
to give the full path to ptplot.jar
I don't seem to have $OPENMODELICAHOME/bin/doPlot.bat?
So perhaps PTII does not need to be set at all?
Also, if you Ptplot is being used, you could update from Ptplot 5.5 to 5.8. One of the changes is a performance improvement for plots with many points. The changes are:
The changes between ptplot5.7 and ptplot5.8
Tom Peachey, Christopher Brooks: Added support for line styles, captions and big dots.
Peter Reutemann: Additions to Query class including some new classes in ptolemy.gui.
Bert Rodiers: performance improvements for plotting plot with many points.
Bert Rodiers: use generic types in several places.
Bert Rodiers: added feature to automatically rescale plots while running the model.
Christopher Brooks: support for -printPDF, which will print a plot to a PDF file.
Bert Rodiers: If no marking style has been selected unconnected points are now always marked with a dot, unless the point is already marked. The first and last point of a line segment is also marked with a dot if the point is not already marked.
Bert Rodiers: Fixed bugs related to avoiding plotting or erasing the same point multiple times.
The changes between ptplot5.6 and ptplot5.7
Christopher Brooks: Clean up warnings reported by FindBugs.
Christopher Brooks, Haiyang Zheng: Fix problem surrounding plotting only one stem.
The changes between ptplot5.5 and ptplot5.6
Christopher Brooks: pxgraph now takes a "-" argument, which indicates that data should be read from standard input.
Thanks,
_Christopher
Re: OpenModelica 1.8.1 sets %PTII% aka $PTII
Hi,
Yeah, we moved things around and the doPlot script is now in: share/omc/scripts.
It does not really matter if you have PTII set or not as the default plot command will use OMPlot.
We could probably remove ptplot.jar completely in the future.
I think we cannot update because we did some modifications to the code (but I'm not 100% sure).
If the PTII variable interferes with existing installation of Ptolemy II we could probably change it to OMPTII or something like that.
Cheers,
Adrian Pop/
- adrpo
- 885 Posts
- Index
- » Developer
- » OpenModelica development
- » OpenModelica 1.8.1 sets %PTII% aka $PTII