diff options
Diffstat (limited to 'js/Electrical/SineVoltage.js')
-rw-r--r-- | js/Electrical/SineVoltage.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js index d3997f59..c92aeefc 100644 --- a/js/Electrical/SineVoltage.js +++ b/js/Electrical/SineVoltage.js @@ -30,6 +30,14 @@ function SineVoltage() { return this.x; } SineVoltage.prototype.get = function SineVoltage() { + var options = { + V:["Amplitude (Volt)",this.V], + ph:["phase (rad)",this.ph], + frq:["Frequency (Hz)",this.frq], + offset:["Voltageoffset (V)",this.offset], + start:["Timeoffset (s)",this.start], + } + return options; } SineVoltage.prototype.set = function SineVoltage() { this.V = parseFloat((arguments[0]["V"])) |