[kepler-users] matlab expression problem
Matthew Jones
jones at nceas.ucsb.edu
Thu Jan 4 09:47:00 PST 2007
I suspect the MatlabExpression actor that you are using is the one
developed at SDSC as part of Kepler, not the JNI version that ships with
Ptolemy. So I'm not sure Christopher's suggestion will help there.
With other similar actors (e.g., RExpression), we've had difficulties
with GUI output and had to include specific support for the graphics
subsystem -- I'm not sure if that kind of support was built into the
Kepler MatlabExpression. Maybe Ilkay and others at SDSC can provide
more information, and Dan Higgins could provide the information about
how it was done in the RExpression actor.
In addition, on the MacOS platform we've seen display problems in R due
to the need for X11 to be installed and having trouble with the display
environment. Dan Higgins might be able to help with this aspect of
things if indeed that is the problem.
Good luck, and we'd love to hear if you find a solution,
Matt
Christopher Brooks wrote:
> Try running the Matlab interface from within Ptolemy by invoking
> $PTII/bin/vergil -jni.
> You may need to build Ptolemy from sources to get $PTII/bin/vergil -jni
> to work.
> The reason is that the Java Native Interface (JNI) is buggy.
> "$PTII/bin/vergil -jni" starts up .exe file created from C code
> (sources are in $PTII/jni/launcher) which then invokes Java.
> This seems to work a little better for JNI code.
>
> I'm not sure how to invoke the launcher from Kepler.
>
> _Christopher
>
> Christopher Brooks (cxh at eecs berkeley edu) University of California
> Programmer/Analyst Chess/Ptolemy/Trust US Mail: 558 Cory Hall #1774
> ph: 510.643.9841 fax:510.642.2718 Berkeley, CA 94720-1774
> home: (F-Tu) 707.665.0131 (W-F) 510.655.5480 (office: 400A Cory)
>
>
> --------
>
>
> Hi,
> I am making workflows for my lab in KEPLER. Now I have a task in which I ha
> ve to run a matlab script which actually shows a GUI. I tried with MatlabExp
> ression by
>
> giving expressions as : path to .m file
> executable path : path to matlab executable
>
> but each time I run this workflow I got message like "something gone wrong
> with matlab" etc.
> even I tried very simeple expressions which does'nt create some GUI e.g.
> answer=ones(4)
> still I used to get the same error
>
> can someone plzz tell me what I am missing or if you can suggest alternativ
> es it would be gr8
>
> Best Regards,
> Yasir.
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
> --------
> _______________________________________________
> Kepler-users mailing list
> Kepler-users at ecoinformatics.org
> http://mercury.nceas.ucsb.edu/ecoinformatics/mailman/listinfo/kepler-users
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Matthew B. Jones
jones at nceas.ucsb.edu Ph: 541-888-2581 ext. 287
National Center for Ecological Analysis and Synthesis (NCEAS)
UC Santa Barbara
http://www.nceas.ucsb.edu/ecoinformatics
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Kepler-users
mailing list