summaryrefslogtreecommitdiff
path: root/js/Electrical/MOTOR.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-09 11:43:39 +0530
committerSunil Shetye2018-07-09 12:16:25 +0530
commit62b1d7dd9183ed75733b44104890586b03818214 (patch)
tree9859e9ca295df98df945bd5fcccc3a264e8bede1 /js/Electrical/MOTOR.js
parent5c011853630a1b466ef4789d5b600dd530d0a3ec (diff)
downloadsci2js-62b1d7dd9183ed75733b44104890586b03818214.tar.gz
sci2js-62b1d7dd9183ed75733b44104890586b03818214.tar.bz2
sci2js-62b1d7dd9183ed75733b44104890586b03818214.zip
support ScilabBoolean, ScilabDouble, ScilabString
Diffstat (limited to 'js/Electrical/MOTOR.js')
-rw-r--r--js/Electrical/MOTOR.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/Electrical/MOTOR.js b/js/Electrical/MOTOR.js
index c5b1a2c3..967936fb 100644
--- a/js/Electrical/MOTOR.js
+++ b/js/Electrical/MOTOR.js
@@ -1,15 +1,15 @@
/* autogenerated from "macros/Electrical/MOTOR.sci" */
function MOTOR() {
MOTOR.prototype.define = function MOTOR() {
- model = scicos_model();
- model.out = [[1],[1]];
- model.in1 = [1];
- model.sim = "motor";
- model.blocktype = "c";
- model.dep_ut = [true,false];
+ this.model = scicos_model();
+ this.model.out = [[1],[1]];
+ this.model.in1 = [1];
+ this.model.sim = new ScilabString("motor");
+ this.model.blocktype = new ScilabString("c");
+ this.model.dep_ut = [true,false];
gr_i = [];
exprs = "";
- this.x = standard_define([2,2],model,exprs,gr_i);
+ this.x = standard_define([2,2],this.model,exprs,gr_i);
this.x.graphics.out_implicit = [["I"],["I"]];
this.x.graphics.in_implicit = ["I"];
return new BasicBlock(this.x);