Christopher Hylands wrote the notes below, so any mistakes are his.
To use the Matlab interface,
you must have ptmatlab.dll in your path, which is initially created in
this directory, and eventually moved to $PTII/bin
. It is best if
your path includes $PTII/bin
.
The Matlab interface also requires that libeng.dll
be in your path.
libeng.dll
is located in the bin/win32
subdirectory of Matlab.
You can either set your path permanently using the Control panel,
or set it temporarily in your current Bash shell.
Under Windows 2000, you set the path via
the Environment tab of the System control panel
(Start Menu
-> Settings
->
Control Panels
-> System
->
Advanced
-> Environment Variables
Under Cygwin Bash, if your Ptolemy II installation was
at c:/ptII
, then you might do
PATH=/cygdrive/c/ptII/bin:$PATH export PATH
Instructions about compiling
the Matlab interface can be found at
$PTII/doc/install.htm
Below are instructions for building the interface at UC Berkeley:
http://sources.redhat.com/cygwin/
and install the Cygwin Setup tool
Basic Devel: Needed for gcc
bash-2.05$ PATH=/cygdrive/e/public/matlab/matlab-6.0/bin/win32:$PATH
bash-2.05$ type matlab matlab is /cygdrive/e/public/matlab/matlab-6.0/bin/win32/matlab
cd $PTII rm config.* ./configure
cd $PTII/ptolemy/matlab make
vergil "$PTII/ptolemy/matlab/demo/MatlabExpression/MatlabExpression.xml"Note that during the preinitialize phase there may be a delay while the Matlab engine starts up over the network.
Start
-> Programs
-> Matlab N.N
-> Matlab N.N
.
type ptmatlab.dllYou should get something like:
ptmatlab.dll is /cygdrive/c/ptII/bin/ptmatlab.dllIf
ptmatlab.dll
is not found, then set your path
and be sure to export PATH
PATH=/cygdrive/c/ptII/bin:$PATH export PATH
vergil
and then
use File
-> Open
of a Matlab model
than it is to pass the Matlab model as a command line argument.