diff options
author | Chhavi2208 | 2016-06-21 15:04:29 +0530 |
---|---|---|
committer | Chhavi2208 | 2016-06-21 15:04:29 +0530 |
commit | 4b09974b901deb7b29f479eb512813f3712ea8d4 (patch) | |
tree | 365d831ed13319f9a6b2c55e931a85f560a6f928 /details.js | |
parent | 7f3a9f3fc199f2eb4fb7344c552ffc9d0bec79bb (diff) | |
download | xcos-on-web-4b09974b901deb7b29f479eb512813f3712ea8d4.tar.gz xcos-on-web-4b09974b901deb7b29f479eb512813f3712ea8d4.tar.bz2 xcos-on-web-4b09974b901deb7b29f479eb512813f3712ea8d4.zip |
Created new instance tag
Diffstat (limited to 'details.js')
-rw-r--r-- | details.js | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -310,6 +310,15 @@ function modelica() { return mo; } +// To add Block name under the instance tag in xml. +function instance() { + this.instance = arguments[0]; +} + +function createInstanceTag() { + return new instance(arguments[0]); +} + function CONST_m() { CONST_m.prototype.get = function() { @@ -319,9 +328,9 @@ function CONST_m() { return options; } CONST_m.prototype.set = function() { - this.c = [arguments[1]["vec"]]; - this.x.realParameters = new ScilabDouble(); - this.x.exprs = new ScilabString([sci2exp(this.c)]); + this.c = [arguments[0]["vec"]]; + this.x.model.rpar = new ScilabDouble(); + this.x.graphics.exprs = new ScilabString([sci2exp(this.c)]); return new BasicBlock(this.x); } CONST_m.prototype.define = function() { |