diff options
author | Sunil Shetye | 2018-06-18 17:08:56 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-06-18 17:08:56 +0530 |
commit | 0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a (patch) | |
tree | 6ae63f7633d80f9a70be43ebe789eb0c3a3ec364 /js/Electrical/OpAmp.js | |
parent | 8e6e9558ba4963ea71b7a6efc11e0b44e7c9040a (diff) | |
download | sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.tar.gz sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.tar.bz2 sci2js-0fd33c776a03e3b9ad2267e4f3fbb2c7bcbbb92a.zip |
change order of functions
Diffstat (limited to 'js/Electrical/OpAmp.js')
-rw-r--r-- | js/Electrical/OpAmp.js | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/js/Electrical/OpAmp.js b/js/Electrical/OpAmp.js index 4ec8f9dd..09334c4a 100644 --- a/js/Electrical/OpAmp.js +++ b/js/Electrical/OpAmp.js @@ -1,24 +1,5 @@ /* autogenerated from "macros/Electrical/OpAmp.sci" */ function OpAmp() { -OpAmp.prototype.get = function OpAmp() { -} -OpAmp.prototype.set = function OpAmp() { -x=arg1; -graphics=arg1.graphics; -exprs=graphics.exprs; -model=arg1.model; -while (false) { -[ok,OLGain,SatH,SatL,exprs]=scicos_getvalue("Set the Operational Amplifier parameters",["Open Loop Gain","Positive saturation voltage","Negative saturation voltage"],list("vec",1,"vec",1,"vec",1),exprs); -if (!ok) { -break -} -model.equations.parameters[2-1]=list(OLGain,SatH,SatL); -graphics.exprs=exprs; -x.graphics=graphics; -x.model=model; -break -} -} OpAmp.prototype.define = function OpAmp() { S=[]; Z=[]; @@ -43,4 +24,23 @@ x.graphics.out_implicit=["I"]; } OpAmp.prototype.details = function OpAmp() { } +OpAmp.prototype.get = function OpAmp() { +} +OpAmp.prototype.set = function OpAmp() { +x=arg1; +graphics=arg1.graphics; +exprs=graphics.exprs; +model=arg1.model; +while (false) { +[ok,OLGain,SatH,SatL,exprs]=scicos_getvalue("Set the Operational Amplifier parameters",["Open Loop Gain","Positive saturation voltage","Negative saturation voltage"],list("vec",1,"vec",1,"vec",1),exprs); +if (!ok) { +break +} +model.equations.parameters[2-1]=list(OLGain,SatH,SatL); +graphics.exprs=exprs; +x.graphics=graphics; +x.model=model; +break +} +} } |