Block for calling a computational function written in scilab
[sim, out] = ld_scilab2(sim, events, in, comp_fn, include_scilab_fns, scilab_path)
A nicer interface to scilab. (See modules/scilab/demo/scilab_demo.sce for an example)
in *+(invecsize) - input
out *+(outvecsize) - output
out = calc_cmd
comp_fn - scilab function that is executed online. Prototype:
function [block]=sample_comp_fn( block, flag )
flags are: 1 calc outputs, 4 initialise, 5 terminate, 10 configure I/O
For further details have a look at the example.
include_scilab_fns - unused for now. Set to list()
scilab_path - Path to scilab5 executable
NOTE: For now the flag "update states" is not called; Also a "reset states" flag is required.
NOTE: The 64-Bit verion of scilab is not working for some reason,
but also on 64-Bit systems you can use the 32-Bit version
if you add "linux32" in front of the command that starts
the controller process, as shown in demo/run.sh