diff options
author | Adhitya Kamakshidasan | 2016-06-28 14:53:11 +0530 |
---|---|---|
committer | GitHub | 2016-06-28 14:53:11 +0530 |
commit | 947d558b4673f92e76cf5acf44d757f65cafd298 (patch) | |
tree | fa8e90419ed50fcd807de505506d2582017609ed | |
parent | 90ff47680de66e150802fe8ee7b8b5e6d11386f5 (diff) | |
parent | f148ad20c98b325dac0f0fea35de039d48742c69 (diff) | |
download | xcos-on-web-947d558b4673f92e76cf5acf44d757f65cafd298.tar.gz xcos-on-web-947d558b4673f92e76cf5acf44d757f65cafd298.tar.bz2 xcos-on-web-947d558b4673f92e76cf5acf44d757f65cafd298.zip |
Merge pull request #72 from ASP1234/master
Implement CLKFROM Block
-rw-r--r-- | data_structures_correct/CLKFROM.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/data_structures_correct/CLKFROM.js b/data_structures_correct/CLKFROM.js new file mode 100644 index 0000000..9209cb5 --- /dev/null +++ b/data_structures_correct/CLKFROM.js @@ -0,0 +1,20 @@ +function CLKFROM () { + + CLKFROM.prototype.define = function CLKFROM() { + var model = scicos_model(); + model.sim = new ScilabString(["clkfrom"]); + model.evtout = new ScilabDouble([1]); + model.opar=list(new ScilabString(["A"])); + model.blocktype = new ScilabString(["d"]); + model.firing = new ScilabDouble([-1]); + model.dep_ut = new ScilabBoolean([false,false]); + + var exprs = new ScilabString(["A"]); + this.x=new standard_define(new ScilabDouble([2,1]),model,exprs,new ScilabString([" "])); + this.x.graphics.id = new ScilabString(["From"]); + return new BasicBlock(this.x); + } + CLKFROM.prototype.details = function CLKFROM() { + return this.x; + } +} |