[scilab-Users] Scicos Block with Different Output Port Types?

Dirk Reusch lists at kybdr.de
Mon Mar 10 14:14:37 CET 2008


Hello Simone,

thanks for your answer! But I don't understand it.
I am not concerned about port dimensions, i.e.
model.in, model.in2, model.out and model.out2.

However, I have tried your proposed changes but it did
not work! Furthermore even the editor now gives a
warning/error about incompatible types.

Have you tried to "Simulate>Compile" test.cosf? I know
that test.c is missing ... and that the diagram won't
work ... but that is not the point.

My question is simply:

Is it possible to have a scicos block with different
output port types. e.g. model.outtyp=[1;3]?

If yes, how can this be achieved? I would be a very
thankful for any comprehensible example.

Thanks you very much for your help

Best regards,

Dirk Reusch

On Mon, 10 Mar 2008 11:43:56 +0100
Simone Mannori <Simone.Mannori at inria.fr> wrote:

> Hello,
> 
> please try to use this "define" section in the interfacing function
> TEST.sce
> 
>   case 'define' then
>     // computational function
>     model=scicos_model()
>     model.sim=list('test',4)
>   
>     // inputs
>     model.in = -1 ; 
>     model.in2= -2 ;
> 
>     // outputs
>     model.out  = [-1;-1]
>     model.out2 = [-2;-2]
>   
>     model.blocktype='c'
>     model.firing=[]
>     model.dep_ut=[%t,%f]
>     model.label=''
>     model.nzcross=0
>     model.nmode=0
>     model.equations=list()
> 
>     exprs=[]
>     
>     // icon
>     gr_i = list(["x=orig(1)+sz(1)*0.1;y=orig(2)+sz(2)*0.3;";
>                  "w=sz(1)*0.8;h=sz(2)*0.4;";
>                  "xstringb(x,y,""TEST"",w,h,''fill'');"],..
>                  8 )
>     x=standard_define([2,2],model,exprs,gr_i)
> 
> Also the section "set" needs some attention.
> 
> Can you be so kind to send me "test.c" ?
> 
> I will be happy to debug fully your Scicos block, create a "reference"
> template and put it on line.
> 
> Thanks in advance for your help.
> 
> Simone Mannori
> 




More information about the users mailing list