summaryrefslogtreecommitdiff
path: root/js/Electrical/ConstantVoltage.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/ConstantVoltage.js')
-rw-r--r--js/Electrical/ConstantVoltage.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js
index 9bec7626..f0eef731 100644
--- a/js/Electrical/ConstantVoltage.js
+++ b/js/Electrical/ConstantVoltage.js
@@ -1,25 +1,5 @@
/* autogenerated from "macros/Electrical/ConstantVoltage.sci" */
function ConstantVoltage() {
-ConstantVoltage.prototype.get = function ConstantVoltage() {
-}
-ConstantVoltage.prototype.set = function ConstantVoltage() {
-x=arg1;
-graphics=arg1.graphics;
-exprs=graphics.exprs;
-model=arg1.model;
-while (true) {
-[ok,V,exprs]=scicos_getvalue("Set ConstantVoltage block parameter","V (volt)",list("vec",1),exprs);
-if (!ok) {
-break
-}
-model.rpar=V;
-model.equations.parameters[2-1]=list(V);
-graphics.exprs=exprs;
-x.graphics=graphics;
-x.model=model;
-break
-}
-}
ConstantVoltage.prototype.define = function ConstantVoltage() {
V=0.01;
model=scicos_model();
@@ -43,4 +23,24 @@ x.graphics.out_implicit=["I"];
}
ConstantVoltage.prototype.details = function ConstantVoltage() {
}
+ConstantVoltage.prototype.get = function ConstantVoltage() {
+}
+ConstantVoltage.prototype.set = function ConstantVoltage() {
+x=arg1;
+graphics=arg1.graphics;
+exprs=graphics.exprs;
+model=arg1.model;
+while (true) {
+[ok,V,exprs]=scicos_getvalue("Set ConstantVoltage block parameter","V (volt)",list("vec",1),exprs);
+if (!ok) {
+break
+}
+model.rpar=V;
+model.equations.parameters[2-1]=list(V);
+graphics.exprs=exprs;
+x.graphics=graphics;
+x.model=model;
+break
+}
+}
}