1
check_io Scilab Group Scicos function check_io
3
check_io - Checks and sets Scicos block port numbers.
6
[model,graphics,ok]=check_io(model,graphics,in,out,clkin,clkout)
8
model : Scicos model data structure (see scicos_model)
10
graphics : Scicos graphics data structure (see scicos_graphics)
12
in : vector of regular input port sizes. Set in=[] in no regular
15
out : vector of regular output port sizes. Set out=[] in no
18
clkin : vector of event input port sizes. Set clkin=[] in no event
21
clkout : vector of event output port sizes. Set clkout=[] in no event
24
ok : boolean, %t if specified input/output have been correctly
25
set. %f if specified input/output cannot be taken into account.
29
This function is to be called when number of regular or event input or
30
output ports is modified. It check if it is possible (connected ports
31
cannot suppressed) and updates model and graphics block substructures.
32
in, out, clkin, clkout are the vectors of port sizes for respectively the
33
regular inputs, regular outputs, event inputs and event outputs.
35
Negative values in in or out vector means that corresponding ports
36
dimension are to be determined by the context. Two equal negative values
37
means that corresponding ports have same size.
40
scicos_block, scicos_model, scicos_graphics