Call a Java object from Scilab

Lerato Jeffrey Mohapi leratojeffrey.mohapi at gmail.com
Mon Mar 7 15:16:14 CET 2011


Hi Everyone,

Please help me. I have been trying to find help with this problem for
so long now and I am beginning to give up on Scilab 5.3 now. I really
liked its functionality but now i dont think I am getting enough
support as a beginner to Scilab/Xcos. I need to provide a modelling
environment with support for HDL code generation and so far the most
famous are both Scilab and Ptolemy II but unfortunately no HDL Code
generation. I can add my own HDL Code generation so i thought of many
way to do it in Ptolemy II but really have no idea how i can do it in
Scilab-5.3. I have enough experience with Ptolemy II and know how to
add new Actors to it but With Scilab I am very new. Please Guys, help
out. I gotta make a good decision before I continue. I have a VHDL
Code generator written in Java and would love to add to Scilab/Xcos.

Anyway, I thought of many ways to add code generation to Scilab, and
the best way I could think of it was to add my new java Objects to
Scilab, I cant find enough documentation for this except for this URL:
http://wiki.scilab.org/Call_a_Java_object_from_Scilab. I dont
understand where it says "Create the gateway and update all files to
add the new Scilab function (modules/xxx/sci_gateway/gw_xxx.xml
modules/xxx/sci_gateway/c/gw_xxx.c modules/xxx/includes/gw_xxx.h) "
and next it states that "Write your gateway code. Check the number of
input argument, their type and size.".

What should be in the gateway code? Where can I find an example of
this procedure to Call a java object from Scilab? Is there a better
way to add HDL code generation to Scilab except for Scicos-HDL which
seems not to have support in Xcos/Scilab-5.3? And please if you no one
can help me, suggest ways to help me find help.

Thanx Guys.
Regards.
Lerato



More information about the dev mailing list