summaryrefslogtreecommitdiff
path: root/js/Misc/CBLOCK4.js
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/CBLOCK4.js
parent5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff)
downloadsci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip
add options block
Diffstat (limited to 'js/Misc/CBLOCK4.js')
-rw-r--r--js/Misc/CBLOCK4.js22
1 files changed, 22 insertions, 0 deletions
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"]))