summaryrefslogtreecommitdiff
path: root/js/Electrical/PNP.js
diff options
context:
space:
mode:
authorSunil Shetye2018-06-18 17:30:31 +0530
committerSunil Shetye2018-06-18 20:30:18 +0530
commitcd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76 (patch)
tree56407047bba37f94b7b5f00890b4385cefa502fd /js/Electrical/PNP.js
parent0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a (diff)
downloadsci2js-cd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76.tar.gz
sci2js-cd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76.tar.bz2
sci2js-cd5b0819762aa4a1cb72d29ab7b8c3ac65bbad76.zip
use format string
Diffstat (limited to 'js/Electrical/PNP.js')
-rw-r--r--js/Electrical/PNP.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/Electrical/PNP.js b/js/Electrical/PNP.js
index 5d75504e..e6cc470a 100644
--- a/js/Electrical/PNP.js
+++ b/js/Electrical/PNP.js
@@ -62,11 +62,11 @@ exprs=x.graphics.exprs;
while (true) {
[ok,Bf,Br,Is,Vak,Tauf,Taur,Ccs,Cje,Cjc,Phie,Me,Phic,Mc,Gbc,Gbe,Vt,EMinMax,exprs]=scicos_getvalue(["Set PNP block parameters:",""],["Bf : Forward beta","Br : Reverse beta","Is : Transport saturation current","Vak : Early voltage (inverse), 1/Volt","Tauf: Ideal forward transit time","Taur: Ideal reverse transit time","Ccs : Collector-substrat(ground) cap.","Cje : Base-emitter zero bias depletion cap.","Cjc : Base-coll. zero bias depletion cap.","Phie: Base-emitter diffusion voltage","Me : Base-emitter gradation exponent","Phic: Base-collector diffusion voltage","Mc : Base-collector gradation exponent","Gbc : Base-collector conductance","Gbe : Base-emitter conductance","Vt : Voltage equivalent of temperature","EMinMax: if x > EMinMax, the exp(x) function is linearized"],list("vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1,"vec",1),exprs);
if (!ok) {
-break
+break;
}
x.model.equations.parameters[2-1]=list(Bf,Br,Is,Vak,Tauf,Taur,Ccs,Cje,Cjc,Phie,Me,Phic,Mc,Gbc,Gbe,Vt,EMinMax);
x.graphics.exprs=exprs;
-break
+break;
}
}
}