octwrapper
==========

octwrapper is a experimental C-Library which allowed to use GNU Octave (version 5.1.0) in C-code.
It contains some wrapping functions :
  - send/put datas on Octave engine/interpreter,
  - receive/get datas from  Octave engine/interpreter,
  - 

Compilation
------------
  
1) Set the path/directory of Octave by using the OCTAVE_DIR variable in the file <Makefile.inc>.
Octave binary is then given by OCTAVE_DIR/bin/octave

2) On a Linux terminal, run the command 
      make message
   to see how to configure the LD_LIBRARY_PATH environment variable and execute the proposed command. 
      export LD_LIBRARY_PATH=...

3) Compile the code
      make
      
Tutorials
---------
Two tutorials are provided: tuto01.c and tuto02.c.
They are automaticaly compiled with previous make command.

1) tuto01 : send/receive datas from Octave, and execute some Octave command
  a) for <double> datas, run
      ./tuto01 
    or
      ./tuto01 1
  b) for <int> datas, run    
      ./tuto01 2
  c) for <unsigned int> datas, run        
      ./tuto01 3
2) tuto02 : transfert <double> datas from C code and use Octave for graphical representations. 
      ./tuto02 
  
  
  
??? SERCAL:
  /var/lib/flatpak/app/org.octave.Octave/x86_64/stable/daf88f42feca452a640bb5e7937536a25bd89d8cfc0005729f2cf3e570fe5b56/files/lib/octave/5.1.0/
