itpp_sci  1.0.0
it++ based simulation framework for scicoslab, scilab and scipy
Functions
scilab_if.c File Reference

More...

Functions

void sci_if_err_set (int e)
 
void sci_if_err_msg_set (const char *p_msg)
 
void sci_if_info_set (int i)
 
int scilab_create (char *fname, unsigned long fname_len)
 C interface to sci_create. More...
 
int scilab_set (char *fname, unsigned long fname_len)
 C interface to sci_set. More...
 
int scilab_get (char *fname, unsigned long fname_len)
 C interface to sci_get. More...
 
int scilab_exec (char *fname, unsigned long fname_len)
 C interface to sci_exec. More...
 
int scilab_gen (char *fname, unsigned long fname_len)
 C interface to sci_gen. More...
 
int scilab_proc (char *fname, unsigned long fname_len)
 C interface to sci_proc. More...
 
int scilab_destroy (char *fname, unsigned long fname_len)
 C interface to scilab sci_destroy. More...
 

Detailed Description

Author
mk Data are on scilab local stack, functions are redirected by gateway
Code has to be pure C due to the problems with mex.h in C++

Function Documentation

void sci_if_err_msg_set ( const char *  p_msg)
void sci_if_err_set ( int  e)
void sci_if_info_set ( int  i)
int scilab_create ( char *  fname,
unsigned long  fname_len 
)

C interface to sci_create.

Example: p_fir1 = sci_create(SCI_FIR); input1 SCI_TYPE (standard enum type == double) output pointer to created SCI_TYPE object

int scilab_destroy ( char *  fname,
unsigned long  fname_len 
)

C interface to scilab sci_destroy.

Example: sci_destroy(p_fir1); input SCI_FIR = type of SCI_TYPE object output void

int scilab_exec ( char *  fname,
unsigned long  fname_len 
)

C interface to sci_exec.

Example: sci_exec(p_fir1,SCI_RESET); input1 p_fir1 = pointer to the instance of SCI_TYPE object input2 SCI_RESET = type of command output NONE

int scilab_gen ( char *  fname,
unsigned long  fname_len 
)

C interface to sci_gen.

Example: y = sci_gen(p_mod,ce); input1 p_mod = pointer to the instance of SCI_TYPE object input2 ce = boolean output y = variable of any type

int scilab_get ( char *  fname,
unsigned long  fname_len 
)

C interface to sci_get.

Example: c0 = sci_get(p_fir1,SCI_TAPS); input1 p_fir1 = pointer to the instance of SCI_TYPE object input2 SCI_TAPS = enum type - scilab default type - double output c0 = variable - might be matrix (scalar) of booleans, integers, doubles, complexes

int scilab_proc ( char *  fname,
unsigned long  fname_len 
)

C interface to sci_proc.

Example: y = sci_proc(p_fir1,ce,x); input1 p_fir1 = pointer to the instance of SCI_TYPE object input2 ce - boolean input2 x - any variable output y - any variable

int scilab_set ( char *  fname,
unsigned long  fname_len 
)

C interface to sci_set.

Example: sci_set(p_fir1,SCI_TAPS,c0); input1 p_fir1= pointer to the instance SCI_TYPE object input2 SCI_TAPS = enum type - scilab default type - double input3 c0 = variable - might be matrix (scalar) booleans, integers, doubles, complexes output NONE