<< ld_scilab2 scilab ld_scilab4 >>

ORTD Scilab Interface Toolbox >> scilab > ld_scilab3

ld_scilab3

Block for calling a computational function written in scilab

Calling Sequence

[sim, out] = ld_scilab3(sim, events, in, comp_fn, include_scilab_fns, InitStr, scilab_path)

Description

A nicer interface to scilab. (See modules/scilab/demo/scilab_demo.sce for an example)

in *+(invecsize) - input

out *+(outvecsize) - output

InitStr - execute str in the begining. e.g. to define global variables

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. Use &quot;BUILDIN_PATH" if you do not have special needs.

Nice feature: ld_scilab3 will look for variables that are not defined within comp_fn

and will try to transfer these variables from the Scilab instance running at

the development host to the on-line running Scilab instance.

This works only for single value variables only, though.

NOTE: For now the flag &quot;update states" is not called; Also a "reset states" flag is required.


Report an issue
<< ld_scilab2 scilab ld_scilab4 >>