Diferencia entre revisiones de «Developing SCILab Libraries»

De Grupo de Inteligencia Computacional (GIC)
Sin resumen de edición
 
(No se muestran 9 ediciones intermedias del mismo usuario)
Línea 9: Línea 9:


== Linking C code from Scilab ==
== Linking C code from Scilab ==


Exist various methods for invoque C code from scilab. We recomended a easy method.
Exist various methods for invoque C code from scilab. We recomended a easy method.
In the examples/interface-tutorial directory, exits a Makefile very important. We must change some parameters in this file according with our C files.
In the '''examples/interface-tutorial''' directory, exits a '''Makefile''' very important. We must change some parameters in this file according with our C files.
We recomended read the examples before write your C functions.
[http://viewvc.scilab.org/bin/cgi/viewvc.cgi/trunk/scilab/examples/interface-tutorial/?sortdir=down&pathrev=7160 fuentes]
 
In few words, in a directory we can write our C functions, better a function for file. In this directory, copy the makefile and configure the makefile according with C files.
In few words, in a directory we can write our C functions, better a function for file. In this directory, copy the makefile and configure the makefile according with C files.
After that you only need execute make. A library must be generated. 'mylib'
After that you only need '''execute make'''. A library must be generated. 'mylib'
 
For use the new functions you only need execute ''''load ../mylib'''' since scilab. Then, the news functions are ready for use.
 
[http://viewvc.scilab.org/bin/cgi/viewvc.cgi/trunk/scilab_doc/ help]
 
[http://www.scilab.org/developers/doxygen_scilab/main.html Oxigen help for developers]
 
[http://pauillac.inria.fr/cdrom/www/scilab/doc/intro/intro-html006.html Chapter 6  Interfacing C or Fortran programs with Scilab]
 
[http://cermics.enpc.fr/scilab_new/site/Liens/intro/node1.html Introduction To Scilab User's ]
 
[http://www.scilab.org/developers/doxygen_scilab/index.html Scilab code documentation]
 
[http://wiki.scilab.org/ Scilab wiki]
 
== Using intersci-n ==
 
 


For use the new functions you only need execute 'load ../mylib' since scilab. The news functions are ready for use.
== Developing Macros ==

Revisión actual - 12:08 27 jun 2008

Tenemos tres métodos para desarrolar librerias.

1) Invocando C o Fortram desde Scilab

2) Creando funciones C con intersci-n

3) Creando macros binarias


Linking C code from Scilab

Exist various methods for invoque C code from scilab. We recomended a easy method. In the examples/interface-tutorial directory, exits a Makefile very important. We must change some parameters in this file according with our C files. We recomended read the examples before write your C functions. fuentes

In few words, in a directory we can write our C functions, better a function for file. In this directory, copy the makefile and configure the makefile according with C files. After that you only need execute make. A library must be generated. 'mylib'

For use the new functions you only need execute 'load ../mylib' since scilab. Then, the news functions are ready for use.

help

Oxigen help for developers

Chapter 6 Interfacing C or Fortran programs with Scilab

Introduction To Scilab User's

Scilab code documentation

Scilab wiki

Using intersci-n

Developing Macros