diff options
author | Adhitya Kamakshidasan | 2016-07-09 17:23:12 +0530 |
---|---|---|
committer | GitHub | 2016-07-09 17:23:12 +0530 |
commit | e16612ff3bc311f330f291593cf9a207e0d24264 (patch) | |
tree | 558a81e6018ba61cb53df33c2d04e3c134ab38b4 /details.js | |
parent | ee636d7791a80bf2e5d7032714e661499e7c6e33 (diff) | |
parent | 8be6e0ba4ef4803550047cacc035792897aacdd4 (diff) | |
download | xcos-on-web-e16612ff3bc311f330f291593cf9a207e0d24264.tar.gz xcos-on-web-e16612ff3bc311f330f291593cf9a207e0d24264.tar.bz2 xcos-on-web-e16612ff3bc311f330f291593cf9a207e0d24264.zip |
Merge pull request #157 from ASP1234/master
Implement Blocks and dependency fn
Diffstat (limited to 'details.js')
-rw-r--r-- | details.js | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -461,7 +461,30 @@ function CLKSPLIT_f() { } } +function STEP() { + STEP.prototype.internal = function STEP() { + this.rpar=[[0],[1]]; + var model = scicos_model(); + model.sim = list(new ScilabString(["step_func"]),new ScilabDouble([4])); + model.evtin = new ScilabDouble([1]); + model.evtout = new ScilabDouble([1]); + model.out = new ScilabDouble([1]); + model.out2 = new ScilabDouble([1]); + model.outtyp = new ScilabDouble([1]); + model.firing = new ScilabDouble([1]); + model.rpar = new ScilabDouble(...this.rpar); + model.blocktype = new ScilabString(["c"]); + model.dep_ut = new ScilabBoolean([false, false]); + + var exprs = new ScilabString([1],...this.rpar); + var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"STEP\",sz(1),sz(2));"]); + + var block = new standard_define(new ScilabDouble([80, 80]), model,exprs, gr_i); // 1 -> 80 + block.graphics.style = new ScilabString(["STEP"]); + return block; + } +} function BasicBlock() { |