diff options
author | AMIT KUMAR YADAV | 2016-06-21 11:43:19 +0530 |
---|---|---|
committer | AMIT KUMAR YADAV | 2016-06-21 11:43:19 +0530 |
commit | 0a3788d46553caffc5240d6010e5a8e1703c5aaf (patch) | |
tree | 5dd13856ea95554c13f701a528f7b871d1060fd6 /data_structures/MBLOCK.js | |
parent | fa438a1d06e474d9fb03a8749457707529551a80 (diff) | |
download | xcos-on-web-0a3788d46553caffc5240d6010e5a8e1703c5aaf.tar.gz xcos-on-web-0a3788d46553caffc5240d6010e5a8e1703c5aaf.tar.bz2 xcos-on-web-0a3788d46553caffc5240d6010e5a8e1703c5aaf.zip |
Fixed some edge cases
Diffstat (limited to 'data_structures/MBLOCK.js')
-rw-r--r-- | data_structures/MBLOCK.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/data_structures/MBLOCK.js b/data_structures/MBLOCK.js index 30a963b..ce63569 100644 --- a/data_structures/MBLOCK.js +++ b/data_structures/MBLOCK.js @@ -1,7 +1,7 @@ function MBLOCK () { - var in = ["u1"]; + var in1 = ["u1"]; var intype = ["I"]; @@ -17,7 +17,7 @@ function MBLOCK () { var nameF = "generic"; - var exprs = [...colon_operator(tlist,["MBLOCK","in","intype","out","outtype","param","paramv","pprop","nameF","funtxt"],sci2exp(...in),sci2exp(...intype),sci2exp(...out),sci2exp(...outtype),sci2exp(...param),list(0.1.toString(),.0001.toString()),sci2exp(pprop(,)),nameF,[])]; + var exprs = ...colon_operator(tlist,["MBLOCK","in","intype","out","outtype","param","paramv","pprop","nameF","funtxt"],sci2exp(...in1),sci2exp(...intype),sci2exp(...out),sci2exp(...outtype),sci2exp(...param),list(string(0.1),string(.0001)),sci2exp(pprop(,)),nameF,[]); var model = scicos_model(); model.blocktype = new ScilabString(["c"]); @@ -26,4 +26,5 @@ function MBLOCK () { var for i = 1:lstsize(paramv); model.rpar = new ScilabDouble([model.rpar],[paramv(i)(:)]); + return new BasicBlock(this.x) } |