diff options
author | Avi Dutta | 2016-07-07 09:24:10 +0000 |
---|---|---|
committer | Avi Dutta | 2016-07-07 09:24:10 +0000 |
commit | 2fcbf2ee66efdc893223d4971ce507af5aa3ea23 (patch) | |
tree | 2ab0bf23f9b229c5e80682ed70b0dc0dc6b3aecb /data_structures_correct/SINBLK_f.js | |
parent | eb2e51f872ec94dc63b6e4f75e4f552dffc86c45 (diff) | |
download | xcos-on-web-2fcbf2ee66efdc893223d4971ce507af5aa3ea23.tar.gz xcos-on-web-2fcbf2ee66efdc893223d4971ce507af5aa3ea23.tar.bz2 xcos-on-web-2fcbf2ee66efdc893223d4971ce507af5aa3ea23.zip |
Implement SOM_f Block
Diffstat (limited to 'data_structures_correct/SINBLK_f.js')
-rw-r--r-- | data_structures_correct/SINBLK_f.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/data_structures_correct/SINBLK_f.js b/data_structures_correct/SINBLK_f.js index b568ec8..b3c33c7 100644 --- a/data_structures_correct/SINBLK_f.js +++ b/data_structures_correct/SINBLK_f.js @@ -1,6 +1,7 @@ function SINBLK_f() { SINBLK_f.prototype.define = function SINBLK_f() { + var model = scicos_model(); model.sim = new ScilabString(["sinblk"]); model.in = new ScilabDouble([-1]); @@ -8,15 +9,13 @@ function SINBLK_f() { model.blocktype = new ScilabString(["c"]); model.dep_ut = new ScilabBoolean([true, false]); - var exprs = " "; + var exprs = new ScilabString([" "]); var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SINBLK_f\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([2,2]), model, exprs, gr_i); + this.x = new standard_define(new ScilabDouble([2, 2]), model, exprs, gr_i); return new BasicBlock(this.x); } - SINBLK_f.prototype.details = function SINBLK_f() { return this.x; - } -} +}
\ No newline at end of file |