diff options
author | Sunil Shetye | 2018-07-02 20:21:14 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-02 21:20:51 +0530 |
commit | 5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (patch) | |
tree | 15164190cae390d0a701fcd7ce99fa3addb4134c /js/Electrical/OpAmp.js | |
parent | 468de187d0ad59613aa73384976b58b78200ae43 (diff) | |
download | sci2js-5ea6bd919623bb0dd58f235329b985b2bb6cb4ba.tar.gz sci2js-5ea6bd919623bb0dd58f235329b985b2bb6cb4ba.tar.bz2 sci2js-5ea6bd919623bb0dd58f235329b985b2bb6cb4ba.zip |
add set block
Diffstat (limited to 'js/Electrical/OpAmp.js')
-rw-r--r-- | js/Electrical/OpAmp.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/Electrical/OpAmp.js b/js/Electrical/OpAmp.js index 0c01a215..ffe642ac 100644 --- a/js/Electrical/OpAmp.js +++ b/js/Electrical/OpAmp.js @@ -29,6 +29,9 @@ function OpAmp() { OpAmp.prototype.get = function OpAmp() { } OpAmp.prototype.set = function OpAmp() { + this.OLGain = parseFloat((arguments[0]["OLGain"])) + this.SatH = parseFloat((arguments[0]["SatH"])) + this.SatL = parseFloat((arguments[0]["SatL"])) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; |