summaryrefslogtreecommitdiff
path: root/js/Electrical/Diode.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/Diode.js')
-rw-r--r--js/Electrical/Diode.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js
index bb024526..1af6fead 100644
--- a/js/Electrical/Diode.js
+++ b/js/Electrical/Diode.js
@@ -1,25 +1,5 @@
/* autogenerated from "macros/Electrical/Diode.sci" */
function Diode() {
-Diode.prototype.get = function Diode() {
-}
-Diode.prototype.set = function Diode() {
-x=arg1;
-graphics=arg1.graphics;
-exprs=graphics.exprs;
-model=arg1.model;
-while (true) {
-[ok,Ids,Vt,Maxexp,R,exprs]=scicos_getvalue("Set Diode block parameter",["Saturation cuurent (A)","Voltage equivalent to temperature (Volt)","Max exponent for linear continuation","R (ohm)"],list("vec",1,"vec",1,"vec",1,"vec",1),exprs);
-if (!ok) {
-break
-}
-model.rpar=[Ids,Vt,Maxexp,R];
-model.equations.parameters=list(["Ids","Vt","Maxexp","R"],list(Ids,Vt,Maxexp,R));
-graphics.exprs=exprs;
-x.graphics=graphics;
-x.model=model;
-break
-}
-}
Diode.prototype.define = function Diode() {
Ids=1.e-6;
Vt=0.04;
@@ -46,4 +26,24 @@ x.graphics.out_implicit=["I"];
}
Diode.prototype.details = function Diode() {
}
+Diode.prototype.get = function Diode() {
+}
+Diode.prototype.set = function Diode() {
+x=arg1;
+graphics=arg1.graphics;
+exprs=graphics.exprs;
+model=arg1.model;
+while (true) {
+[ok,Ids,Vt,Maxexp,R,exprs]=scicos_getvalue("Set Diode block parameter",["Saturation cuurent (A)","Voltage equivalent to temperature (Volt)","Max exponent for linear continuation","R (ohm)"],list("vec",1,"vec",1,"vec",1,"vec",1),exprs);
+if (!ok) {
+break
+}
+model.rpar=[Ids,Vt,Maxexp,R];
+model.equations.parameters=list(["Ids","Vt","Maxexp","R"],list(Ids,Vt,Maxexp,R));
+graphics.exprs=exprs;
+x.graphics=graphics;
+x.model=model;
+break
+}
+}
}