summaryrefslogtreecommitdiff
path: root/js/Electrical/SineVoltage.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-11 15:19:38 +0530
committerSunil Shetye2018-07-11 15:21:08 +0530
commit0047c3bea1d86b12a08544f6f0833c63e77f6eac (patch)
tree36fc72fa9e5ea73c64a44e061b2c9c80e0307884 /js/Electrical/SineVoltage.js
parent079d0b4a3ec15a4d7d2644484d116df9d1c694bb (diff)
downloadsci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.gz
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.tar.bz2
sci2js-0047c3bea1d86b12a08544f6f0833c63e77f6eac.zip
support vector also
Diffstat (limited to 'js/Electrical/SineVoltage.js')
-rw-r--r--js/Electrical/SineVoltage.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js
index 7db61627..56ac2b5c 100644
--- a/js/Electrical/SineVoltage.js
+++ b/js/Electrical/SineVoltage.js
@@ -2,8 +2,8 @@
function SineVoltage() {
SineVoltage.prototype.define = function SineVoltage() {
this.model = scicos_model();
- this.model.in1 = [1];
- this.model.out = [1];
+ this.model.in1 = new ScilabDouble([1]);
+ this.model.out = new ScilabDouble([1]);
this.V = 1;
this.ph = 0;
this.frq = 1;
@@ -12,7 +12,7 @@ function SineVoltage() {
this.model.rpar = new ScilabDouble([this.V],[this.ph],[this.frq],[this.offset],[this.start]);
this.model.sim = new ScilabString(["SineVoltage"]);
this.model.blocktype = new ScilabString(["c"]);
- this.model.dep_ut = [true,false];
+ this.model.dep_ut = new ScilabDouble([true,false]);
var mo = modelica();
mo.model = "SineVoltage";
mo.inputs = "p";