diff options
Diffstat (limited to 'js/Misc/LOGICAL_OP.js')
-rw-r--r-- | js/Misc/LOGICAL_OP.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/Misc/LOGICAL_OP.js b/js/Misc/LOGICAL_OP.js index b24cf6d0..b2a55c23 100644 --- a/js/Misc/LOGICAL_OP.js +++ b/js/Misc/LOGICAL_OP.js @@ -1,7 +1,7 @@ /* autogenerated from "macros/Misc/LOGICAL_OP.sci" */ function LOGICAL_OP() { LOGICAL_OP.prototype.define = function LOGICAL_OP() { -in1=[-1,-1]; +in1=[[-1],[-1]]; ipar=[0]; nin=2; model=scicos_model(); @@ -11,7 +11,7 @@ model.out=-1; model.ipar=ipar; model.blocktype="c"; model.dep_ut=[true,false]; -exprs=[string(nin),string(ipar)]; +exprs=[[string(nin)],[string(ipar)]]; gr_i=[]; x=standard_define([2,2],model,exprs,gr_i); } @@ -25,10 +25,10 @@ graphics=arg1.graphics; exprs=graphics.exprs; model=arg1.model; if (size(exprs,1)==2) { -exprs=[exprs,sci2exp(1),sci2exp(0)]; +exprs=[[exprs],[sci2exp(1)],[sci2exp(0)]]; } while (true) { -[ok,nin,rule,Datatype,tp,exprs]=scicos_getvalue("Set parameters",["number of inputs","Operator: AND (0), OR (1), NAND (2), NOR (3), XOR (4), NOT (5)","Datatype (1=double 3=int32 ...)","Bitwise Rule(0=No 1=yes)"],list("vec",1,"vec",1,"vec",1,"vec",1),exprs); +[ok,nin,rule,Datatype,tp,exprs]=scicos_getvalue("Set parameters",[["number of inputs"],["Operator: AND (0), OR (1), NAND (2), NOR (3), XOR (4), NOT (5)","Datatype (1=double 3=int32 ...)"],["Bitwise Rule(0=No 1=yes)"]],list("vec",1,"vec",1,"vec",1,"vec",1),exprs); if (!ok) { break; } @@ -72,7 +72,7 @@ model.sim=list("logicalop_ui8",4); message("Datatype is not supported"); ok=false; } -model.ipar=[rule,tp]; +model.ipar=[[rule],[tp]]; } if (ok) { it=Datatype*ones(nin,1); |