summaryrefslogtreecommitdiff
path: root/js/Electrical/SineVoltage.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Electrical/SineVoltage.js')
-rw-r--r--js/Electrical/SineVoltage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js
index ffdbf7f7..30df974f 100644
--- a/js/Electrical/SineVoltage.js
+++ b/js/Electrical/SineVoltage.js
@@ -21,7 +21,7 @@ function SineVoltage() {
this.model.equations = new ScilabDouble([mo]);
this.exprs = [[string(this.V)],[string(this.ph)],[string(this.frq)],[string(this.offset)],[string(this.start)]];
this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"SineVoltage\",sz(1),sz(2));"]);
- this.x = standard_define([2,2],this.model,this.exprs,this.gr_i);
+ this.x = new standard_define(new ScilabDouble([2,2]),this.model,this.exprs,this.gr_i);
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = ["I"];
return new BasicBlock(this.x);