From 4b09974b901deb7b29f479eb512813f3712ea8d4 Mon Sep 17 00:00:00 2001 From: Chhavi2208 Date: Tue, 21 Jun 2016 15:04:29 +0530 Subject: Created new instance tag --- details.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'details.js') 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() { -- cgit