diff options
Diffstat (limited to 'data_structures/DEMUX.js')
-rw-r--r-- | data_structures/DEMUX.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/data_structures/DEMUX.js b/data_structures/DEMUX.js new file mode 100644 index 0000000..b84b2cf --- /dev/null +++ b/data_structures/DEMUX.js @@ -0,0 +1,19 @@ +function DEMUX () { + + + var out = 2; + + var model = scicos_model(); + model.sim=list("multiplex",4); + model.in = 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 = out.toString(); + + var gr_i = []; + this.x=new standard_define(new ScilabDouble([.5,2]),model,exprs,gr_i); +} |