[kepler-users] Reuse code and functions of Matlab on kepler workflows

Quim De Dalmases qdedalmases at typsa.es
Tue Aug 4 23:32:11 PDT 2009


Hello everyone.

Take several days trying to use the functions in Matlab Kepler v1.0 on
windows platform.
We found all kinds of MatlabExpression,  MatlabExpression.xml
(ptolemy.matlab package;) or MatlabExpression.xml (org.dart.matlab
package;).
The first gives the following error "There was a problem invoking the Matlab
Ptolemy II interface."

"...
ptolemy.kernel.util.IllegalActionException: There was a problem invoking the
Ptolemy II Matlab interface.
The interface has been tested under Windows and Linux.
The interface requires that Matlab be installed on the local machine and
that the shared library ptmatlab available.
Refer to $ PTII / Ptolemy / matlab / makefile for more information.
   in. MatlabExpression.MatlabExpression
Because:
Could not initialize class ptolemy.matlab.Engine
at ptolemy.matlab.Expression.preinitialize (Expression.java: 205)
at ptolemy.actor.Director.preinitialize (Director.java: 865)
at ptolemy.domains.sdf.kernel.SDFDirector.preinitialize (SDFDirector.java:
527)
at ptolemy.actor.CompositeActor.preinitialize (CompositeActor.java: 1103)
at ptolemy.actor.Manager.preinitializeAndResolveTypes (Manager.java: 913)
at ptolemy.actor.Manager.initialize (Manager.java: 578)
at ptolemy.actor.Manager.execute (Manager.java: 321)
At ptolemy.actor.Manager.run (Manager.java: 1071)
ptolemy.actor.Manager at $ 3.run (Manager.java: 1112)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
ptolemy.matlab.Engine
at ptolemy.matlab.Expression.preinitialize (Expression.java: 202)
... 8 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
ptolemy.matlab.Engine
at ptolemy.matlab.Expression.preinitialize (Expression.java: 202)
at ptolemy.actor.Director.preinitialize (Director.java: 865)
at ptolemy.domains.sdf.kernel.SDFDirector.preinitialize (SDFDirector.java:
527)
at ptolemy.actor.CompositeActor.preinitialize (CompositeActor.java: 1103)
at ptolemy.actor.Manager.preinitializeAndResolveTypes (Manager.java: 913)
at ptolemy.actor.Manager.initialize (Manager.java: 578)
at ptolemy.actor.Manager.execute (Manager.java: 321)
At ptolemy.actor.Manager.run (Manager.java: 1071)
ptolemy.actor.Manager at $ 3.run (Manager.java: 1112)
... "

We set the PATH variable with:

a) the path to the program Matlab: bin and win32 directory
b) the path to the library where the Kepler have ptmatlab.dll

Without positive result.

The second file, the Matlab load but fails, the return parameters. ( "Error
parsing output: Matlab must not have fired").
If we can avoid changing the source code, better.

I would appreciate someone with more experience in Kepler, we would suggest,
how to use Matlab functions in Kepler workflow.

thanks in advance

Quim

-------------------------------------------------------------------------------
Quim De Dalmases
Enginyer Informàtic
Cap de la Unitat de SIG i Desenvolupament
TYPSA CATALUNYA
c/ Mallorca nº272
qdedalmases at typsa.es
Barcelona  08037
Tfn: +34-93-487-91-99
Fax: +34-93-487-81-38
www.typsa.net 




More information about the Kepler-users mailing list