summaryrefslogtreecommitdiff
path: root/details.js
diff options
context:
space:
mode:
authorChhavi22082016-06-21 15:04:29 +0530
committerChhavi22082016-06-21 15:04:29 +0530
commit4b09974b901deb7b29f479eb512813f3712ea8d4 (patch)
tree365d831ed13319f9a6b2c55e931a85f560a6f928 /details.js
parent7f3a9f3fc199f2eb4fb7344c552ffc9d0bec79bb (diff)
downloadxcos-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.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/details.js b/details.js
index 6c5e8f8..fee4e32 100644
--- a/details.js
+++ b/details.js
@@ -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() {