From 2fcbf2ee66efdc893223d4971ce507af5aa3ea23 Mon Sep 17 00:00:00 2001 From: Avi Dutta Date: Thu, 7 Jul 2016 09:24:10 +0000 Subject: Implement SOM_f Block --- data_structures_correct/SINBLK_f.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'data_structures_correct/SINBLK_f.js') 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 -- cgit