From 5ea6bd919623bb0dd58f235329b985b2bb6cb4ba Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Mon, 2 Jul 2018 20:21:14 +0530 Subject: add set block --- js/Electrical/SineVoltage.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/Electrical/SineVoltage.js') diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js index 2ec0a70e..d3997f59 100644 --- a/js/Electrical/SineVoltage.js +++ b/js/Electrical/SineVoltage.js @@ -32,6 +32,11 @@ function SineVoltage() { SineVoltage.prototype.get = function SineVoltage() { } SineVoltage.prototype.set = function SineVoltage() { + this.V = parseFloat((arguments[0]["V"])) + this.ph = parseFloat((arguments[0]["ph"])) + this.frq = parseFloat((arguments[0]["frq"])) + this.offset = parseFloat((arguments[0]["offset"])) + this.start = parseFloat((arguments[0]["start"])) this.x = arg1; graphics = arg1.graphics; exprs = graphics.exprs; -- cgit