summaryrefslogtreecommitdiff
path: root/js/Misc
diff options
context:
space:
mode:
authorSunil Shetye2018-07-02 22:51:03 +0530
committerSunil Shetye2018-07-02 22:51:03 +0530
commitca1a67f78f7de40a7956c69e41f4ddae2542f4f2 (patch)
tree6a07bd0428e542567726ff7325fcb71203ad6d15 /js/Misc
parent5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff)
downloadsci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip
add options block
Diffstat (limited to 'js/Misc')
-rw-r--r--js/Misc/AUTOMAT.js3
-rw-r--r--js/Misc/BACKLASH.js6
-rw-r--r--js/Misc/BOUNCE.js12
-rw-r--r--js/Misc/BOUNCEXY.js11
-rw-r--r--js/Misc/BPLATFORM.js10
-rw-r--r--js/Misc/CBLOCK.js17
-rw-r--r--js/Misc/CBLOCK4.js22
-rw-r--r--js/Misc/CONSTRAINT2_c.js6
-rw-r--r--js/Misc/CONSTRAINT_c.js3
-rw-r--r--js/Misc/DEADBAND.js6
-rw-r--r--js/Misc/DEBUG.js3
-rw-r--r--js/Misc/DEBUG_SCICOS.js3
-rw-r--r--js/Misc/DIFF_f.js5
-rw-r--r--js/Misc/DSUPER.js3
-rw-r--r--js/Misc/EDGETRIGGER.js4
-rw-r--r--js/Misc/EDGE_TRIGGER.js3
-rw-r--r--js/Misc/ENDBLK.js3
-rw-r--r--js/Misc/Extract_Activation.js3
-rw-r--r--js/Misc/HYSTHERESIS.js8
-rw-r--r--js/Misc/IMPSPLIT_f.js3
-rw-r--r--js/Misc/LOGICAL_OP.js7
-rw-r--r--js/Misc/MBLOCK.js10
-rw-r--r--js/Misc/MEMORY_f.js5
-rw-r--r--js/Misc/MPBLOCK.js3
-rw-r--r--js/Misc/PAL_f.js3
-rw-r--r--js/Misc/PENDULUM_ANIM.js10
-rw-r--r--js/Misc/RATELIMITER.js5
-rw-r--r--js/Misc/RELATIONALOP.js6
-rw-r--r--js/Misc/SPLIT_f.js3
-rw-r--r--js/Misc/SUPER_f.js3
-rw-r--r--js/Misc/TEXT_f.js6
-rw-r--r--js/Misc/c_block.js7
-rw-r--r--js/Misc/fortran_block.js7
-rw-r--r--js/Misc/func_block.js3
-rw-r--r--js/Misc/generic_block.js16
-rw-r--r--js/Misc/generic_block2.js18
-rw-r--r--js/Misc/generic_block3.js22
-rw-r--r--js/Misc/scifunc_block.js12
-rw-r--r--js/Misc/scifunc_block_m.js12
39 files changed, 292 insertions, 0 deletions
diff --git a/js/Misc/AUTOMAT.js b/js/Misc/AUTOMAT.js
index c2f59ffb..d4305671 100644
--- a/js/Misc/AUTOMAT.js
+++ b/js/Misc/AUTOMAT.js
@@ -31,6 +31,9 @@ function AUTOMAT() {
return this.x;
}
AUTOMAT.prototype.get = function AUTOMAT() {
+ var options = {
+ }
+ return options;
}
AUTOMAT.prototype.set = function AUTOMAT() {
this.x = arg1;
diff --git a/js/Misc/BACKLASH.js b/js/Misc/BACKLASH.js
index b02a3366..e7819b8e 100644
--- a/js/Misc/BACKLASH.js
+++ b/js/Misc/BACKLASH.js
@@ -18,6 +18,12 @@ function BACKLASH() {
return this.x;
}
BACKLASH.prototype.get = function BACKLASH() {
+ var options = {
+ ini:["initial output",this.ini],
+ gap:["gap",this.gap],
+ zcr:["use zero-crossing (0:no, 1:yes)",this.zcr],
+ }
+ return options;
}
BACKLASH.prototype.set = function BACKLASH() {
this.ini = parseFloat((arguments[0]["ini"]))
diff --git a/js/Misc/BOUNCE.js b/js/Misc/BOUNCE.js
index 05e4a011..0aa04885 100644
--- a/js/Misc/BOUNCE.js
+++ b/js/Misc/BOUNCE.js
@@ -42,6 +42,18 @@ function BOUNCE() {
return this.x;
}
BOUNCE.prototype.get = function BOUNCE() {
+ var options = {
+ rpar1:["Mass",this.rpar1],
+ rpar2:["Radius",this.rpar2],
+ walls:["[xmin,xmax,ymin,ymax]",this.walls],
+ xt:["xpos",this.xt],
+ xd:["xdpos",this.xd],
+ y:["ypos",this.y],
+ yd:["ydpos",this.yd],
+ g:["g (gravity)",this.g],
+ C:["C (aerodynamic coeff",this.C],
+ }
+ return options;
}
BOUNCE.prototype.set = function BOUNCE() {
this.rpar1 = parseFloat((arguments[0]["rpar1"]))
diff --git a/js/Misc/BOUNCEXY.js b/js/Misc/BOUNCEXY.js
index 459f5f13..009df1f2 100644
--- a/js/Misc/BOUNCEXY.js
+++ b/js/Misc/BOUNCEXY.js
@@ -39,6 +39,17 @@ function BOUNCEXY() {
return this.x;
}
BOUNCEXY.prototype.get = function BOUNCEXY() {
+ var options = {
+ clrs:["colors",this.clrs],
+ siz:["radii",this.siz],
+ win:["window number (-1 for automatic)",this.win],
+ imode:["animation mode (0,1)",this.imode],
+ xmin:["Xmin",this.xmin],
+ xmax:["Xmax",this.xmax],
+ ymin:["Ymin",this.ymin],
+ ymax:["Ymax",this.ymax],
+ }
+ return options;
}
BOUNCEXY.prototype.set = function BOUNCEXY() {
this.clrs = parseFloat((arguments[0]["clrs"]))
diff --git a/js/Misc/BPLATFORM.js b/js/Misc/BPLATFORM.js
index 943be74d..3f29cbfc 100644
--- a/js/Misc/BPLATFORM.js
+++ b/js/Misc/BPLATFORM.js
@@ -25,6 +25,16 @@ function BPLATFORM() {
return this.x;
}
BPLATFORM.prototype.get = function BPLATFORM() {
+ var options = {
+ plen:["pendulum length",this.plen],
+ csiz:["cart size (square side)",this.csiz],
+ phi:["slope",this.phi],
+ xmin:["Xmin",this.xmin],
+ xmax:["Xmax",this.xmax],
+ ymin:["Ymin",this.ymin],
+ ymax:["Ymax",this.ymax],
+ }
+ return options;
}
BPLATFORM.prototype.set = function BPLATFORM() {
this.plen = parseFloat((arguments[0]["plen"]))
diff --git a/js/Misc/CBLOCK.js b/js/Misc/CBLOCK.js
index abad4da3..3bb0b78d 100644
--- a/js/Misc/CBLOCK.js
+++ b/js/Misc/CBLOCK.js
@@ -36,6 +36,23 @@ function CBLOCK() {
return this.x;
}
CBLOCK.prototype.get = function CBLOCK() {
+ var options = {
+ function_name:["simulation function",this.function_name],
+ impli:["is block implicit? (y,n)",this.impli],
+ i:["input ports sizes",this.i],
+ o:["output ports sizes",this.o],
+ ci:["input event ports sizes",this.ci],
+ co:["output events ports sizes",this.co],
+ xx:["initial continuous state",this.xx],
+ ng:["number of zero crossing surfaces",this.ng],
+ z:["initial discrete state",this.z],
+ rpar:["Real parameters vector",this.rpar],
+ ipar:["Integer parameters vector",this.ipar],
+ auto0:["initial firing vector (<0 for no firing)",this.auto0],
+ depu:["direct feedthrough (y or n)",this.depu],
+ dept:["time dependence (y or n)",this.dept],
+ }
+ return options;
}
CBLOCK.prototype.set = function CBLOCK() {
this.function_name = parseFloat((arguments[0]["function_name"]))
diff --git a/js/Misc/CBLOCK4.js b/js/Misc/CBLOCK4.js
index 1370002b..d86f6499 100644
--- a/js/Misc/CBLOCK4.js
+++ b/js/Misc/CBLOCK4.js
@@ -20,6 +20,28 @@ function CBLOCK4() {
return this.x;
}
CBLOCK4.prototype.get = function CBLOCK4() {
+ var options = {
+ function_name:["Simulation function",this.function_name],
+ impli:["Is block implicit? (y,n)",this.impli],
+ in1:["Input ports sizes",this.in1],
+ it:["Input ports type",this.it],
+ out:["Output port sizes",this.out],
+ ot:["Output ports type",this.ot],
+ ci:["Input event ports sizes",this.ci],
+ co:["Output events ports sizes",this.co],
+ xx:["Initial continuous state",this.xx],
+ z:["Initial discrete state",this.z],
+ oz:["Initial object state",this.oz],
+ rpar:["Real parameters vector",this.rpar],
+ ipar:["Integer parameters vector",this.ipar],
+ opar:["Object parameters list",this.opar],
+ nmode:["Number of modes",this.nmode],
+ nzcr:["Number of zero crossings",this.nzcr],
+ auto0:["Initial firing vector (<0 for no firing)",this.auto0],
+ depu:["Direct feedthrough (y or n)",this.depu],
+ dept:["Time dependence (y or n)",this.dept],
+ }
+ return options;
}
CBLOCK4.prototype.set = function CBLOCK4() {
this.function_name = parseFloat((arguments[0]["function_name"]))
diff --git a/js/Misc/CONSTRAINT2_c.js b/js/Misc/CONSTRAINT2_c.js
index b30bdd95..62c3ae4e 100644
--- a/js/Misc/CONSTRAINT2_c.js
+++ b/js/Misc/CONSTRAINT2_c.js
@@ -21,6 +21,12 @@ function CONSTRAINT2_c() {
return this.x;
}
CONSTRAINT2_c.prototype.get = function CONSTRAINT2_c() {
+ var options = {
+ x0:["Initial guess values of states x",this.x0],
+ xd0:["Initial guess values of derivative x\'",this.xd0],
+ id:["Id(i)=1: if x\'(i) is present in the feedback, else Id(i)=0",this.id],
+ }
+ return options;
}
CONSTRAINT2_c.prototype.set = function CONSTRAINT2_c() {
this.x0 = parseFloat((arguments[0]["x0"]))
diff --git a/js/Misc/CONSTRAINT_c.js b/js/Misc/CONSTRAINT_c.js
index 57a6d9b2..cc86e346 100644
--- a/js/Misc/CONSTRAINT_c.js
+++ b/js/Misc/CONSTRAINT_c.js
@@ -19,6 +19,9 @@ function CONSTRAINT_c() {
return this.x;
}
CONSTRAINT_c.prototype.get = function CONSTRAINT_c() {
+ var options = {
+ }
+ return options;
}
CONSTRAINT_c.prototype.set = function CONSTRAINT_c() {
this.x0 = parseFloat((arguments[0]["x0"]))
diff --git a/js/Misc/DEADBAND.js b/js/Misc/DEADBAND.js
index d42e8858..7b67acd9 100644
--- a/js/Misc/DEADBAND.js
+++ b/js/Misc/DEADBAND.js
@@ -22,6 +22,12 @@ function DEADBAND() {
return this.x;
}
DEADBAND.prototype.get = function DEADBAND() {
+ var options = {
+ maxp:["End of dead band",this.maxp],
+ minp:["Start of dead band",this.minp],
+ zeroc:["zero crossing (0:no, 1:yes)",this.zeroc],
+ }
+ return options;
}
DEADBAND.prototype.set = function DEADBAND() {
this.maxp = parseFloat((arguments[0]["maxp"]))
diff --git a/js/Misc/DEBUG.js b/js/Misc/DEBUG.js
index 70f7ce11..eb8969d4 100644
--- a/js/Misc/DEBUG.js
+++ b/js/Misc/DEBUG.js
@@ -13,6 +13,9 @@ function DEBUG() {
return this.x;
}
DEBUG.prototype.get = function DEBUG() {
+ var options = {
+ }
+ return options;
}
DEBUG.prototype.set = function DEBUG() {
this.x = arg1;
diff --git a/js/Misc/DEBUG_SCICOS.js b/js/Misc/DEBUG_SCICOS.js
index 48e93ccc..28944332 100644
--- a/js/Misc/DEBUG_SCICOS.js
+++ b/js/Misc/DEBUG_SCICOS.js
@@ -8,6 +8,9 @@ function DEBUG_SCICOS() {
return this.x;
}
DEBUG_SCICOS.prototype.get = function DEBUG_SCICOS() {
+ var options = {
+ }
+ return options;
}
DEBUG_SCICOS.prototype.set = function DEBUG_SCICOS() {
arg1.gui = "DEBUG";
diff --git a/js/Misc/DIFF_f.js b/js/Misc/DIFF_f.js
index cbc9619d..793fc9a2 100644
--- a/js/Misc/DIFF_f.js
+++ b/js/Misc/DIFF_f.js
@@ -18,6 +18,11 @@ function DIFF_f() {
return this.x;
}
DIFF_f.prototype.get = function DIFF_f() {
+ var options = {
+ x0:["Initial state",this.x0],
+ xd0:["Initial Derivative",this.xd0],
+ }
+ return options;
}
DIFF_f.prototype.set = function DIFF_f() {
this.x0 = parseFloat((arguments[0]["x0"]))
diff --git a/js/Misc/DSUPER.js b/js/Misc/DSUPER.js
index 3f1bcc1b..4d36f641 100644
--- a/js/Misc/DSUPER.js
+++ b/js/Misc/DSUPER.js
@@ -7,6 +7,9 @@ function DSUPER() {
return this.x;
}
DSUPER.prototype.get = function DSUPER() {
+ var options = {
+ }
+ return options;
}
DSUPER.prototype.set = function DSUPER() {
y = this.needcompile;
diff --git a/js/Misc/EDGETRIGGER.js b/js/Misc/EDGETRIGGER.js
index c7ee1a2e..cf2fe414 100644
--- a/js/Misc/EDGETRIGGER.js
+++ b/js/Misc/EDGETRIGGER.js
@@ -20,6 +20,10 @@ function EDGETRIGGER() {
return this.x;
}
EDGETRIGGER.prototype.get = function EDGETRIGGER() {
+ var options = {
+ edge:["rising (1), falling (-1), both (0)",this.edge],
+ }
+ return options;
}
EDGETRIGGER.prototype.set = function EDGETRIGGER() {
this.edge = parseFloat((arguments[0]["edge"]))
diff --git a/js/Misc/EDGE_TRIGGER.js b/js/Misc/EDGE_TRIGGER.js
index ad159da5..452ad747 100644
--- a/js/Misc/EDGE_TRIGGER.js
+++ b/js/Misc/EDGE_TRIGGER.js
@@ -85,6 +85,9 @@ function EDGE_TRIGGER() {
return this.x;
}
EDGE_TRIGGER.prototype.get = function EDGE_TRIGGER() {
+ var options = {
+ }
+ return options;
}
EDGE_TRIGGER.prototype.set = function EDGE_TRIGGER() {
for (i=1;i<=length(arg1.model.rpar.objs);i+=1) {
diff --git a/js/Misc/ENDBLK.js b/js/Misc/ENDBLK.js
index 384c2020..c28cda3b 100644
--- a/js/Misc/ENDBLK.js
+++ b/js/Misc/ENDBLK.js
@@ -13,6 +13,9 @@ function ENDBLK() {
return this.x;
}
ENDBLK.prototype.get = function ENDBLK() {
+ var options = {
+ }
+ return options;
}
ENDBLK.prototype.set = function ENDBLK() {
for (i=1;i<=length(arg1.model.rpar.objs);i+=1) {
diff --git a/js/Misc/Extract_Activation.js b/js/Misc/Extract_Activation.js
index fcb729d6..f6e70284 100644
--- a/js/Misc/Extract_Activation.js
+++ b/js/Misc/Extract_Activation.js
@@ -90,6 +90,9 @@ function Extract_Activation() {
return this.x;
}
Extract_Activation.prototype.get = function Extract_Activation() {
+ var options = {
+ }
+ return options;
}
Extract_Activation.prototype.set = function Extract_Activation() {
this.x = arg1;
diff --git a/js/Misc/HYSTHERESIS.js b/js/Misc/HYSTHERESIS.js
index 246ce23c..3f94c918 100644
--- a/js/Misc/HYSTHERESIS.js
+++ b/js/Misc/HYSTHERESIS.js
@@ -23,6 +23,14 @@ function HYSTHERESIS() {
return this.x;
}
HYSTHERESIS.prototype.get = function HYSTHERESIS() {
+ var options = {
+ high_lim:["switch on at",this.high_lim],
+ low_lim:["switch off at",this.low_lim],
+ out_high:["output when on",this.out_high],
+ out_low:["output when off",this.out_low],
+ nzz:["use zero crossing: yes (1), no (0)",this.nzz],
+ }
+ return options;
}
HYSTHERESIS.prototype.set = function HYSTHERESIS() {
this.high_lim = parseFloat((arguments[0]["high_lim"]))
diff --git a/js/Misc/IMPSPLIT_f.js b/js/Misc/IMPSPLIT_f.js
index ddbc3450..11ad9e4c 100644
--- a/js/Misc/IMPSPLIT_f.js
+++ b/js/Misc/IMPSPLIT_f.js
@@ -19,6 +19,9 @@ function IMPSPLIT_f() {
return this.x;
}
IMPSPLIT_f.prototype.get = function IMPSPLIT_f() {
+ var options = {
+ }
+ return options;
}
IMPSPLIT_f.prototype.set = function IMPSPLIT_f() {
this.x = arg1;
diff --git a/js/Misc/LOGICAL_OP.js b/js/Misc/LOGICAL_OP.js
index ec4b80b9..34892534 100644
--- a/js/Misc/LOGICAL_OP.js
+++ b/js/Misc/LOGICAL_OP.js
@@ -20,6 +20,13 @@ function LOGICAL_OP() {
return this.x;
}
LOGICAL_OP.prototype.get = function LOGICAL_OP() {
+ var options = {
+ nin:["number of inputs",this.nin],
+ rule:["Operator: AND (0), OR (1), NAND (2), NOR (3), XOR (4), NOT (5)",this.rule],
+ Datatype:["Datatype (1=double 3=int32 ...)",this.Datatype],
+ tp:["Bitwise Rule(0=No 1=yes)",this.tp],
+ }
+ return options;
}
LOGICAL_OP.prototype.set = function LOGICAL_OP() {
this.nin = parseFloat((arguments[0]["nin"]))
diff --git a/js/Misc/MBLOCK.js b/js/Misc/MBLOCK.js
index ae8d0cb9..ba9db08e 100644
--- a/js/Misc/MBLOCK.js
+++ b/js/Misc/MBLOCK.js
@@ -36,6 +36,16 @@ function MBLOCK() {
return this.x;
}
MBLOCK.prototype.get = function MBLOCK() {
+ var options = {
+ Tin:["Input variables: ",this.Tin],
+ Tintype:["Input variables types: ",this.Tintype],
+ Tout:["Output variables: ",this.Tout],
+ Touttype:["Output variables types:",this.Touttype],
+ Tparam:["Parameters in Modelica:",this.Tparam],
+ pprop:["Parameters properties: ",this.pprop],
+ Tfunam:["Function name: ",this.Tfunam],
+ }
+ return options;
}
MBLOCK.prototype.set = function MBLOCK() {
this.Tin = parseFloat((arguments[0]["Tin"]))
diff --git a/js/Misc/MEMORY_f.js b/js/Misc/MEMORY_f.js
index e6b70b35..fbe66f83 100644
--- a/js/Misc/MEMORY_f.js
+++ b/js/Misc/MEMORY_f.js
@@ -21,6 +21,11 @@ function MEMORY_f() {
return this.x;
}
MEMORY_f.prototype.get = function MEMORY_f() {
+ var options = {
+ a:["initial condition",this.a],
+ inh:["Inherit (1: no, 0: yes)",this.inh],
+ }
+ return options;
}
MEMORY_f.prototype.set = function MEMORY_f() {
this.a = parseFloat((arguments[0]["a"]))
diff --git a/js/Misc/MPBLOCK.js b/js/Misc/MPBLOCK.js
index 911a19d7..9d7de2f0 100644
--- a/js/Misc/MPBLOCK.js
+++ b/js/Misc/MPBLOCK.js
@@ -36,6 +36,9 @@ function MPBLOCK() {
return this.x;
}
MPBLOCK.prototype.get = function MPBLOCK() {
+ var options = {
+ }
+ return options;
}
MPBLOCK.prototype.set = function MPBLOCK() {
this.x = arg1;
diff --git a/js/Misc/PAL_f.js b/js/Misc/PAL_f.js
index f325c8c6..acb871f7 100644
--- a/js/Misc/PAL_f.js
+++ b/js/Misc/PAL_f.js
@@ -19,6 +19,9 @@ function PAL_f() {
return this.x;
}
PAL_f.prototype.get = function PAL_f() {
+ var options = {
+ }
+ return options;
}
PAL_f.prototype.set = function PAL_f() {
[this.x,newparameters,needcompile,edited] = scicos(arg1.model.rpar);
diff --git a/js/Misc/PENDULUM_ANIM.js b/js/Misc/PENDULUM_ANIM.js
index 73b79503..b0a2d933 100644
--- a/js/Misc/PENDULUM_ANIM.js
+++ b/js/Misc/PENDULUM_ANIM.js
@@ -25,6 +25,16 @@ function PENDULUM_ANIM() {
return this.x;
}
PENDULUM_ANIM.prototype.get = function PENDULUM_ANIM() {
+ var options = {
+ plen:["pendulum length",this.plen],
+ csiz:["cart size (square side)",this.csiz],
+ phi:["slope",this.phi],
+ xmin:["Xmin",this.xmin],
+ xmax:["Xmax",this.xmax],
+ ymin:["Ymin",this.ymin],
+ ymax:["Ymax",this.ymax],
+ }
+ return options;
}
PENDULUM_ANIM.prototype.set = function PENDULUM_ANIM() {
this.plen = parseFloat((arguments[0]["plen"]))
diff --git a/js/Misc/RATELIMITER.js b/js/Misc/RATELIMITER.js
index 307ca34c..5a26ef56 100644
--- a/js/Misc/RATELIMITER.js
+++ b/js/Misc/RATELIMITER.js
@@ -20,6 +20,11 @@ function RATELIMITER() {
return this.x;
}
RATELIMITER.prototype.get = function RATELIMITER() {
+ var options = {
+ maxp:["max slope",this.maxp],
+ minp:["min slope",this.minp],
+ }
+ return options;
}
RATELIMITER.prototype.set = function RATELIMITER() {
this.maxp = parseFloat((arguments[0]["maxp"]))
diff --git a/js/Misc/RELATIONALOP.js b/js/Misc/RELATIONALOP.js
index 2d8fbe24..588397bb 100644
--- a/js/Misc/RELATIONALOP.js
+++ b/js/Misc/RELATIONALOP.js
@@ -20,6 +20,12 @@ function RELATIONALOP() {
return this.x;
}
RELATIONALOP.prototype.get = function RELATIONALOP() {
+ var options = {
+ rule:["Operator: == (0), ~= (1), < (2), <= (3), > (4), >= (5)",this.rule],
+ zcr:["Use zero crossing (no: 0), (yes: 1)",this.zcr],
+ Datatype:["Datatype (1=double 3=int32 ...)",this.Datatype],
+ }
+ return options;
}
RELATIONALOP.prototype.set = function RELATIONALOP() {
this.rule = parseFloat((arguments[0]["rule"]))
diff --git a/js/Misc/SPLIT_f.js b/js/Misc/SPLIT_f.js
index ba8449cc..cb64d887 100644
--- a/js/Misc/SPLIT_f.js
+++ b/js/Misc/SPLIT_f.js
@@ -14,6 +14,9 @@ function SPLIT_f() {
return this.x;
}
SPLIT_f.prototype.get = function SPLIT_f() {
+ var options = {
+ }
+ return options;
}
SPLIT_f.prototype.set = function SPLIT_f() {
this.x = arg1;
diff --git a/js/Misc/SUPER_f.js b/js/Misc/SUPER_f.js
index 96598262..5aab1088 100644
--- a/js/Misc/SUPER_f.js
+++ b/js/Misc/SUPER_f.js
@@ -26,6 +26,9 @@ function SUPER_f() {
return this.x;
}
SUPER_f.prototype.get = function SUPER_f() {
+ var options = {
+ }
+ return options;
}
SUPER_f.prototype.set = function SUPER_f() {
xcos(arg1.model.rpar);
diff --git a/js/Misc/TEXT_f.js b/js/Misc/TEXT_f.js
index ff33543c..8b4b2fbc 100644
--- a/js/Misc/TEXT_f.js
+++ b/js/Misc/TEXT_f.js
@@ -19,6 +19,12 @@ function TEXT_f() {
return this.x;
}
TEXT_f.prototype.get = function TEXT_f() {
+ var options = {
+ txt:["Text",this.txt],
+ font:["Font number",this.font],
+ siz:["Font size",this.siz],
+ }
+ return options;
}
TEXT_f.prototype.set = function TEXT_f() {
this.txt = parseFloat((arguments[0]["txt"]))
diff --git a/js/Misc/c_block.js b/js/Misc/c_block.js
index e47820c6..758e255f 100644
--- a/js/Misc/c_block.js
+++ b/js/Misc/c_block.js
@@ -33,6 +33,13 @@ function c_block() {
return this.x;
}
c_block.prototype.get = function c_block() {
+ var options = {
+ i:["input ports sizes",this.i],
+ o:["output port sizes",this.o],
+ rpar:["System parameters vector",this.rpar],
+ funam:["function name",this.funam],
+ }
+ return options;
}
c_block.prototype.set = function c_block() {
this.i = parseFloat((arguments[0]["i"]))
diff --git a/js/Misc/fortran_block.js b/js/Misc/fortran_block.js
index c6e76965..4b138b9d 100644
--- a/js/Misc/fortran_block.js
+++ b/js/Misc/fortran_block.js
@@ -24,6 +24,13 @@ function fortran_block() {
return this.x;
}
fortran_block.prototype.get = function fortran_block() {
+ var options = {
+ i:["input ports sizes",this.i],
+ o:["output port sizes",this.o],
+ rpar:["System parameters vector",this.rpar],
+ funam:["function name",this.funam],
+ }
+ return options;
}
fortran_block.prototype.set = function fortran_block() {
this.i = parseFloat((arguments[0]["i"]))
diff --git a/js/Misc/func_block.js b/js/Misc/func_block.js
index f66d74a6..e275af9e 100644
--- a/js/Misc/func_block.js
+++ b/js/Misc/func_block.js
@@ -16,6 +16,9 @@ function func_block() {
return this.x;
}
func_block.prototype.get = function func_block() {
+ var options = {
+ }
+ return options;
}
func_block.prototype.set = function func_block() {
model = arg1.model;
diff --git a/js/Misc/generic_block.js b/js/Misc/generic_block.js
index eab48a00..6c774b38 100644
--- a/js/Misc/generic_block.js
+++ b/js/Misc/generic_block.js
@@ -25,6 +25,22 @@ function generic_block() {
return this.x;
}
generic_block.prototype.get = function generic_block() {
+ var options = {
+ function_name:["simulation function",this.function_name],
+ funtyp:["function type (0,1,2,..)",this.funtyp],
+ i:["input ports sizes",this.i],
+ o:["output port sizes",this.o],
+ ci:["input event ports sizes",this.ci],
+ co:["output events ports sizes",this.co],
+ xx:["initial continuous state",this.xx],
+ z:["initial discrete state",this.z],
+ rpar:["Real parameters vector",this.rpar],
+ ipar:["Integer parameters vector",this.ipar],
+ auto0:["initial firing vector (<0 for no firing)",this.auto0],
+ depu:["direct feedthrough (y or n)",this.depu],
+ dept:["time dependence (y or n)",this.dept],
+ }
+ return options;
}
generic_block.prototype.set = function generic_block() {
this.function_name = parseFloat((arguments[0]["function_name"]))
diff --git a/js/Misc/generic_block2.js b/js/Misc/generic_block2.js
index 1e9b0ca2..6e84a782 100644
--- a/js/Misc/generic_block2.js
+++ b/js/Misc/generic_block2.js
@@ -25,6 +25,24 @@ function generic_block2() {
return this.x;
}
generic_block2.prototype.get = function generic_block2() {
+ var options = {
+ function_name:["simulation function",this.function_name],
+ funtyp:["function type (0,1,2,..)",this.funtyp],
+ i:["input ports sizes",this.i],
+ o:["output port sizes",this.o],
+ ci:["input event ports sizes",this.ci],
+ co:["output events ports sizes",this.co],
+ xx:["initial continuous state",this.xx],
+ z:["initial discrete state",this.z],
+ rpar:["Real parameters vector",this.rpar],
+ ipar:["Integer parameters vector",this.ipar],
+ nmode:["number of modes",this.nmode],
+ nzcr:["number of zero_crossings",this.nzcr],
+ auto0:["initial firing vector (<0 for no firing)",this.auto0],
+ depu:["direct feedthrough (y or n)",this.depu],
+ dept:["time dependence (y or n)",this.dept],
+ }
+ return options;
}
generic_block2.prototype.set = function generic_block2() {
this.function_name = parseFloat((arguments[0]["function_name"]))
diff --git a/js/Misc/generic_block3.js b/js/Misc/generic_block3.js
index 0e53bef7..4a90073a 100644
--- a/js/Misc/generic_block3.js
+++ b/js/Misc/generic_block3.js
@@ -21,6 +21,28 @@ function generic_block3() {
return this.x;
}
generic_block3.prototype.get = function generic_block3() {
+ var options = {
+ function_name:["Simulation function",this.function_name],
+ funtyp:["Function type (0,1,2,..)",this.funtyp],
+ in1:["Input ports sizes",this.in1],
+ it:["Input ports type",this.it],
+ out:["Output port sizes",this.out],
+ ot:["Output ports type",this.ot],
+ ci:["Input event ports sizes",this.ci],
+ co:["Output events ports sizes",this.co],
+ xx:["Initial continuous state",this.xx],
+ z:["Initial discrete state",this.z],
+ oz:["Initial object state",this.oz],
+ rpar:["Real parameters vector",this.rpar],
+ ipar:["Integer parameters vector",this.ipar],
+ opar:["Object parameters list",this.opar],
+ nmode:["Number of modes",this.nmode],
+ nzcr:["Number of zero crossings",this.nzcr],
+ auto0:["Initial firing vector (<0 for no firing)",this.auto0],
+ depu:["Direct feedthrough (y or n)",this.depu],
+ dept:["Time dependence (y or n)",this.dept],
+ }
+ return options;
}
generic_block3.prototype.set = function generic_block3() {
this.function_name = parseFloat((arguments[0]["function_name"]))
diff --git a/js/Misc/scifunc_block.js b/js/Misc/scifunc_block.js
index 783ab8f9..1fe2522c 100644
--- a/js/Misc/scifunc_block.js
+++ b/js/Misc/scifunc_block.js
@@ -33,6 +33,18 @@ function scifunc_block() {
return this.x;
}
scifunc_block.prototype.get = function scifunc_block() {
+ var options = {
+ i:["input ports sizes",this.i],
+ o:["output port sizes",this.o],
+ ci:["input event ports sizes",this.ci],
+ co:["output events ports sizes",this.co],
+ xx:["initial continuous state",this.xx],
+ z:["initial discrete state",this.z],
+ rpar:["System parameters vector",this.rpar],
+ auto0:["initial firing vector (<0 for no firing)",this.auto0],
+ deptime:["is block always active (0:no, 1:yes)",this.deptime],
+ }
+ return options;
}
scifunc_block.prototype.set = function scifunc_block() {
this.i = parseFloat((arguments[0]["i"]))
diff --git a/js/Misc/scifunc_block_m.js b/js/Misc/scifunc_block_m.js
index b96f422c..ddfb8bbb 100644
--- a/js/Misc/scifunc_block_m.js
+++ b/js/Misc/scifunc_block_m.js
@@ -38,6 +38,18 @@ function scifunc_block_m() {
return this.x;
}
scifunc_block_m.prototype.get = function scifunc_block_m() {
+ var options = {
+ i:["input ports sizes",this.i],
+ o:["output port sizes",this.o],
+ ci:["input event ports sizes",this.ci],
+ co:["output events ports sizes",this.co],
+ xx:["initial continuous state",this.xx],
+ z:["initial discrete state",this.z],
+ rpar:["System parameters vector",this.rpar],
+ auto0:["initial firing vector (<0 for no firing)",this.auto0],
+ deptime:["is block always active (0:no, 1:yes)",this.deptime],
+ }
+ return options;
}
scifunc_block_m.prototype.set = function scifunc_block_m() {
this.i = parseFloat((arguments[0]["i"]))