diff options
Diffstat (limited to 'history/data_structures/HYSTHERESIS.js')
-rw-r--r-- | history/data_structures/HYSTHERESIS.js | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/history/data_structures/HYSTHERESIS.js b/history/data_structures/HYSTHERESIS.js new file mode 100644 index 0000000..22f72d0 --- /dev/null +++ b/history/data_structures/HYSTHERESIS.js @@ -0,0 +1,27 @@ +function HYSTHERESIS () { + + + var in1 = 1; + + var ipar = [0]; + + var nzz = 2; + + var rpar = [[1],[0],[1],[0]]; + + var model = scicos_model(); + model.sim=list(new ScilabString(["hystheresis"]),new ScilabDouble([4])); + model.in1.push(new ScilabDouble([in1])); + model.out = new ScilabDouble([1]); + model.rpar=new ScilabDouble([rpar]); + model.nzcross=new ScilabDouble([nzz]); + model.nmode = new ScilabDouble([1]); + model.blocktype = new ScilabString(["c"]); + model.dep_ut = new ScilabBoolean([true,false]); + + var exprs = [[string(rpar)],[string(sign(nzz))]]; + + var gr_i = []; + this.x=new standard_define(new ScilabDouble([2,2]),model,exprs,gr_i); + return new BasicBlock(this.x) +} |