blob: 083b3ecec240c8099803e825a24baa8f87ad038f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
function DEMUX () {
var out = 2;
var model = scicos_model();
model.sim=list(new ScilabString(["multiplex"]),new ScilabDouble([4]));
model.in1 = new ScilabDouble([0]);
model.out=-...transpose([1:out]);
model.ipar=new ScilabDouble([out]);
model.blocktype = new ScilabString(["c"]);
model.firing = new ScilabDouble();
model.dep_ut = new ScilabBoolean([true,false]);
var exprs = string(out);
var gr_i = [];
this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i);
return new BasicBlock(this.x)
}
|