summaryrefslogtreecommitdiff
path: root/js/Electrical/Diode.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/Electrical/Diode.js
parent5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff)
downloadsci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2
sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip
add options block
Diffstat (limited to 'js/Electrical/Diode.js')
-rw-r--r--js/Electrical/Diode.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js
index d8141b81..645cca15 100644
--- a/js/Electrical/Diode.js
+++ b/js/Electrical/Diode.js
@@ -29,6 +29,13 @@ function Diode() {
return this.x;
}
Diode.prototype.get = function Diode() {
+ var options = {
+ Ids:["Saturation cuurent (A)",this.Ids],
+ Vt:["Voltage equivalent to temperature (Volt)",this.Vt],
+ Maxexp:["Max exponent for linear continuation",this.Maxexp],
+ R:["R (ohm)",this.R],
+ }
+ return options;
}
Diode.prototype.set = function Diode() {
this.Ids = parseFloat((arguments[0]["Ids"]))