summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdhitya Kamakshidasan2016-07-04 14:17:01 +0530
committerGitHub2016-07-04 14:17:01 +0530
commita9a1c340d054acd177cad13e27c89efde866b07b (patch)
tree96a2b372b2fbe3f088b5eb1bbdaa83aad514bad8
parentd69220e13c669b7730d8401e0803929467a59908 (diff)
parentf97ab9566e8873a25174c7fa16d816119952e45a (diff)
downloadxcos-on-web-a9a1c340d054acd177cad13e27c89efde866b07b.tar.gz
xcos-on-web-a9a1c340d054acd177cad13e27c89efde866b07b.tar.bz2
xcos-on-web-a9a1c340d054acd177cad13e27c89efde866b07b.zip
Merge pull request #116 from Chhavi2208/master
Gyrator
-rw-r--r--data_structures_correct/CLKINV_f.js20
-rw-r--r--data_structures_correct/CLKOUTV_f.js44
-rw-r--r--data_structures_correct/EDGETRIGGER.js25
-rw-r--r--data_structures_correct/EDGE_TRIGGER.js114
-rw-r--r--data_structures_correct/ENDBLK.js106
-rw-r--r--data_structures_correct/Gyrator.js57
-rw-r--r--data_structures_correct/OUT_f.js2
-rw-r--r--data_structures_correct/freq_div.js146
8 files changed, 492 insertions, 22 deletions
diff --git a/data_structures_correct/CLKINV_f.js b/data_structures_correct/CLKINV_f.js
index f9dadbc..70c142f 100644
--- a/data_structures_correct/CLKINV_f.js
+++ b/data_structures_correct/CLKINV_f.js
@@ -12,10 +12,30 @@ function CLKINV_f() {
model.dep_ut = new ScilabBoolean([false, false]);
var exprs = new ScilabString([this.prt]);
+
var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKINV_f\",sz(1),sz(2));"]);
this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
return new EventInBlock(this.x);
}
+ CLKINV_f.prototype.internal = function CLKINV_f() {
+ this.prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["input"]);
+ model.evtout = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([this.prt]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble([-1]);
+ model.dep_ut = new ScilabBoolean([false, false]);
+ model.outtyp = new ScilabDouble();
+
+ var exprs = new ScilabString([this.prt]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"CLKINV_f\",sz(1),sz(2));"]);
+ var block = new standard_define(new ScilabDouble([1, 1]), model, exprs, gr_i);
+ block.graphics.style = new ScilabString(["CLKINV_f"]);
+ return block;
+ }
CLKINV_f.prototype.details = function CLKINV_f() {
return this.x;
}
diff --git a/data_structures_correct/CLKOUTV_f.js b/data_structures_correct/CLKOUTV_f.js
index 5d13410..1d53771 100644
--- a/data_structures_correct/CLKOUTV_f.js
+++ b/data_structures_correct/CLKOUTV_f.js
@@ -1,36 +1,38 @@
-function CLKOUTV_f() {
+function CLKOUTV_f () {
CLKOUTV_f.prototype.define = function CLKOUTV_f() {
-
- this.prt = 1;
-
- var model = scicos_model();
- model.sim = new ScilabString(["output"]);
- model.evtin = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([this.prt]);
- model.blocktype = new ScilabString(["d"]);
- model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
- var exprs = new ScilabString([this.prt]);
- this.x = new standard_define(new ScilabDouble([1, 1]), model, exprs, new ScilabString([" "]));
- return new EventOutBlock(this.x);
+
+ this.prt = 1;
+
+ var model = scicos_model();
+ model.sim = new ScilabString(["output"]);
+ model.evtin = new ScilabDouble([1]);
+ model.ipar=new ScilabDouble([this.prt]);
+ model.blocktype = new ScilabString(["d"]);
+ model.firing = new ScilabDouble();
+ model.dep_ut = new ScilabBoolean([false,false]);
+
+ var exprs = new ScilabString([this.prt]);
+ this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,new ScilabString([" "]));
+ return new EventOutBlock(this.x);
}
CLKOUTV_f.prototype.internal = function CLKOUTV_f() {
-
+
this.prt = 1;
-
+
var model = scicos_model();
model.sim = new ScilabString(["output"]);
model.evtin = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([this.prt]);
+ model.ipar=new ScilabDouble([this.prt]);
model.blocktype = new ScilabString(["d"]);
model.firing = new ScilabDouble();
- model.dep_ut = new ScilabBoolean([false, false]);
-
+ model.dep_ut = new ScilabBoolean([false,false]);
+ model.outtyp=new ScilabDouble();
var exprs = new ScilabString([this.prt]);
- var block = new standard_define(new ScilabDouble([1, 1]), model, exprs, new ScilabString([" "]));
+ var block=new standard_define(new ScilabDouble([1,1]),model,exprs,new ScilabString([" "]));
+ block.graphics.gr_i= list(new ScilabString(["xstringb(orig(1),orig(2),"CLKOUTV_f",sz(1),sz(2));"]),new ScilabDouble([8]));
+ block.graphics.style=new ScilabString(["CLKOUTV_f"]);
return block;
}
diff --git a/data_structures_correct/EDGETRIGGER.js b/data_structures_correct/EDGETRIGGER.js
new file mode 100644
index 0000000..5245267
--- /dev/null
+++ b/data_structures_correct/EDGETRIGGER.js
@@ -0,0 +1,25 @@
+function EDGETRIGGER() {
+
+ EDGETRIGGER.prototype.internal = function EDGETRIGGER() {
+ this.edge = 1;
+ var model = scicos_model();
+ model.sim = list(new ScilabString(["edgetrig"]), new ScilabDouble([4]));
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.in2 = new ScilabDouble([1]);
+ model.out2 = new ScilabDouble([1]);
+ model.intyp = new ScilabDouble([1]);
+ model.outtyp = new ScilabDouble([1]);
+ model.dstate = new ScilabDouble([0]);
+ model.nzcross = new ScilabDouble([1]);
+ model.ipar = new ScilabDouble([this.edge]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var exprs = new ScilabString([this.edge]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),"EDGETRIGGER",sz(1),sz(2));"]);
+ var block = standard_define(new ScilabDouble([3, 2]), model, exprs, gr_i);
+ block.graphics.style = new ScilabString(["EDGETRIGGER"]);
+ return block;
+ }
+}
diff --git a/data_structures_correct/EDGE_TRIGGER.js b/data_structures_correct/EDGE_TRIGGER.js
new file mode 100644
index 0000000..20aa23a
--- /dev/null
+++ b/data_structures_correct/EDGE_TRIGGER.js
@@ -0,0 +1,114 @@
+function EDGE_TRIGGER() {
+
+ EDGE_TRIGGER.prototype.define = function EDGE_TRIGGER() {
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(new EDGETRIGGER().internal());
+ scs_m_1.objs.push(new IFTHEL_f().internal());
+ scs_m_1.objs.push(new IN_f().internal());
+ scs_m_1.objs.push(new CLKOUTV_f().internal());
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+
+ var blk = scs_m_1.objs[0];
+ var graphics = blk.graphics;
+ var model = blk.model;
+ graphics.orig = new ScilabDouble([60, 0]);
+ graphics.sz = new ScilabDouble([60, 40]);
+ graphics.exprs = new ScilabString(["0"]);
+ graphics.in_implicit = new ScilabString(["E"]);
+ graphics.out_implicit = new ScilabString(["E"]);
+ graphics.in_style = new ScilabString(["ExplicitInputPort;align=left;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ graphics.in_label = new ScilabString([""]);
+ graphics.out_label = new ScilabString([""]);
+ model.ipar = new ScilabDouble([0]);
+ graphics.pin = new ScilabDouble([5]);
+ graphics.pout = new ScilabDouble([6]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[0] = blk;
+
+ blk = scs_m_1.objs[1];
+ graphics = blk.graphics;
+ model = blk.model;
+ graphics.orig = new ScilabDouble([160, 0]);
+ graphics.sz = new ScilabDouble([60, 40]);
+ graphics.exprs = new ScilabString(["0"], ["0"]);
+ model.evtin = new ScilabDouble();
+ model.nzcross = new ScilabDouble([0]);
+ model.nmode = new ScilabDouble([0]);
+ graphics.pin = new ScilabDouble([6]);
+ graphics.peout = new ScilabDouble([7], [0]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[1] = blk;
+
+ blk = scs_m_1.objs[2];
+ graphics = blk.graphics;
+ model = blk.model;
+ graphics.orig = new ScilabDouble([0, 10]);
+ graphics.sz = new ScilabDouble([20, 20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pout = new ScilabDouble([5]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[2] = blk;
+
+ blk = scs_m_1.objs[3];
+ graphics = blk.graphics;
+ model = blk.model;
+ graphics.orig = new ScilabDouble([170, -60]);
+ graphics.sz = new ScilabDouble([20, 20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pein = new ScilabDouble([7]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[3] = blk;
+
+ var lnk = scs_m_1.objs[4];
+ lnk.xx = new ScilabDouble([64], [96]);
+ lnk.yy = new ScilabDouble([-40], [-20]);
+ lnk.from = new ScilabDouble([3, 1, 0]);
+ lnk.to = new ScilabDouble([1, 1, 1]);
+ scs_m_1.objs[4] = lnk;
+
+ lnk = scs_m_1.objs[5];
+ lnk.xx = new ScilabDouble([164], [196]);
+ lnk.yy = new ScilabDouble([-20], [-20]);
+ lnk.from = new ScilabDouble([1, 1, 0]);
+ lnk.to = new ScilabDouble([2, 1, 1]);
+ scs_m_1.objs[5] = lnk;
+
+ lnk = scs_m_1.objs[6];
+ lnk.xx = new ScilabDouble([220], [220]);
+ lnk.yy = new ScilabDouble([-44], [-96]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([2, 1, 0]);
+ lnk.to = new ScilabDouble([4, 1, 1]);
+ scs_m_1.objs[6] = lnk;
+
+ model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.in = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = scs_m_1;
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),"EDGE_TRIGGER",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ EDGE_TRIGGER.prototype.details = function EDGE_TRIGGER() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/ENDBLK.js b/data_structures_correct/ENDBLK.js
new file mode 100644
index 0000000..e3ca767
--- /dev/null
+++ b/data_structures_correct/ENDBLK.js
@@ -0,0 +1,106 @@
+function ENDBLK() {
+
+ ENDBLK.prototype.define = function ENDBLK() {
+ var scs_m_1 = scicos_diagram({
+ version: new ScilabString(["scicos4.2"]),
+ props: scicos_params({
+ wpar: new ScilabDouble([600, 450, 0, 0, 600, 450]),
+ Title: new ScilabString(["ENDBLK"]),
+ tol: new ScilabDouble([0.0001], [0.000001], [Math.pow(10, -10)], [100001], [0], [0], [0]),
+ tf: new ScilabDouble([100000]),
+ context: new ScilabString([" "]),
+ void1: new ScilabDouble(),
+ options: tlist(["scsopt", "3D", "Background", "Link", "ID", "Cmap"], new ScilabString(["scsopt", "3D", "Background", "Link", "ID", "Cmap"]), list(new ScilabBoolean([true]), new ScilabDouble([33])), new ScilabDouble([8, 1]), new ScilabDouble([1, 5]), list(new ScilabDouble([5, 1]), new ScilabDouble([4, 1])), new ScilabDouble([0.8, 0.8, 0.8])),
+ void2: new ScilabDouble(),
+ void3: new ScilabDouble(),
+ doc: list()
+ })
+ });
+ scs_m_1.objs.push(scicos_block({
+ gui: new ScilabString(["END_c"]),
+ graphics: scicos_graphics({
+ orig: new ScilabDouble([272.104, 249.11733]),
+ sz: new ScilabDouble([40, 40]),
+ flip: new ScilabBoolean([true]),
+ theta: new ScilabDouble([0]),
+ exprs: new ScilabString(["1.000E+08"]),
+ pin: new ScilabDouble(),
+ pout: new ScilabDouble(),
+ pein: new ScilabDouble([2]),
+ peout: new ScilabDouble([2]),
+ gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),"END_c",sz(1),sz(2));"]), new ScilabDouble([8])),
+ id: new ScilabString([""]),
+ in_implicit: new ScilabDouble(),
+ out_implicit: new ScilabDouble(),
+ style: new ScilabString(["END_c"])
+ }),
+ model: scicos_model({
+ sim: list(new ScilabString(["scicosexit"]), new ScilabDouble([4])),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble(),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble(),
+ evtin: new ScilabDouble([1]),
+ evtout: new ScilabDouble([1]),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: new ScilabDouble(),
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["d"]),
+ firing: new ScilabDouble([1.000E+08]),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list(),
+ uid: new ScilabString([count])
+ }),
+ doc: list(new ScilabString([count++]))
+ }));
+ scs_m_1.objs.push(scicos_link({
+ xx: new ScilabDouble([292.104], [292.104], [261.83733], [261.83733], [292.104], [292.104]),
+ yy: new ScilabDouble([243.40305], [234.45067], [234.45067], [305.584], [305.584], [294.83162]),
+ id: new ScilabString(["drawlink"]),
+ thick: new ScilabDouble([0, 0]),
+ ct: new ScilabDouble([5, -1]),
+ from: new ScilabDouble([1, 1, 0]),
+ to: new ScilabDouble([1, 1, 1])
+ }));
+
+ var model = scicos_model({
+ sim: new ScilabString(["csuper"]),
+ in: new ScilabDouble(),
+ in2: new ScilabDouble(),
+ intyp: new ScilabDouble([1]),
+ out: new ScilabDouble(),
+ out2: new ScilabDouble(),
+ outtyp: new ScilabDouble([1]),
+ evtin: new ScilabDouble(),
+ evtout: new ScilabDouble(),
+ state: new ScilabDouble(),
+ dstate: new ScilabDouble(),
+ odstate: list(),
+ rpar: scs_m_1,
+ ipar: new ScilabDouble(),
+ opar: list(),
+ blocktype: new ScilabString(["h"]),
+ firing: new ScilabDouble(),
+ dep_ut: new ScilabBoolean([false, false]),
+ label: new ScilabString([""]),
+ nzcross: new ScilabDouble([0]),
+ nmode: new ScilabDouble([0]),
+ equations: list()
+ });
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),"ENDBLK",sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([2, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ ENDBLK.prototype.details = function ENDBLK() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/Gyrator.js b/data_structures_correct/Gyrator.js
new file mode 100644
index 0000000..3c716af
--- /dev/null
+++ b/data_structures_correct/Gyrator.js
@@ -0,0 +1,57 @@
+function Gyrator() {
+
+ Gyrator.prototype.define = function Gyrator() {
+ this.ModelName = "Gyrator";
+ this.PrametersValue = [[1],[1]];
+ this.ParametersName = [["G1"],["G2"]];
+ this.model = scicos_model();
+ this.Typein = [];
+ this.Typeout = [];
+ this.MI = [];
+ this.MO = [];
+ this.P = [[2.5, 90, 2, 0],[2.5, 10, 2, 0],[97.5, 90, -2, 0],[97.5, 10, -2, 0]];
+ this.PortName = [["p1"],["n1"],["p2"],["n2"]];
+
+ for (var i = 0; i < size(this.P, "r"); i++) {
+ if (this.P[i][2] == 1) {
+ this.Typein.push(["E"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == 2) {
+ this.Typein.push(["I"]);
+ this.MI.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -1) {
+ this.Typeout.push(["E"]);
+ this.MO.push(this.PortName[i]);
+ }
+ if (this.P[i][2] == -2) {
+ this.Typeout.push(["I"]);
+ this.MO.push(this.PortName[i]);
+ }
+ }
+ var model = scicos_model();
+ var mo = modelica();
+ model.sim = new ScilabString([this.ModelName]);
+ mo.inputs = new ScilabString(...this.MI);
+ mo.outputs = new ScilabString(...this.MO);
+ console.log(this.MI);
+ model.rpar = new ScilabDouble(...this.PrametersValue);
+ mo.parameters = list(new ScilabString(...this.ParametersName), new ScilabDouble(...this.PrametersValue), new ScilabDouble(...zeros(this.ParametersName)));
+ var exprs = new ScilabString(["1"], ["1"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;Gyrator&quot;,sz(1),sz(2));"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false, true]);
+ mo.model = new ScilabString([this.ModelName]);
+ model.equations = mo;
+ model.in = new ScilabDouble(...ones(size(this.MI, "*"), 1));
+ model.out = new ScilabDouble(...ones(size(this.MO, "*"), 1));
+ this.x = standard_define([2, 2], model, exprs, list(gr_i, new ScilabDouble([0])));
+ this.x.graphics.in_implicit = new ScilabString(...this.Typein);
+ this.x.graphics.out_implicit = new ScilabString(...this.Typeout);
+ return new BasicBlock(this.x);
+ }
+ Gyrator.prototype.details = function Gyrator() {
+ return this.x;
+ }
+}
diff --git a/data_structures_correct/OUT_f.js b/data_structures_correct/OUT_f.js
index 9247aea..d632563 100644
--- a/data_structures_correct/OUT_f.js
+++ b/data_structures_correct/OUT_f.js
@@ -38,7 +38,7 @@ function OUT_f () {
var exprs = new ScilabString([sci2exp(this.prt)]);
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"IN_f\",sz(1),sz(2));"]);
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"OUT_f\",sz(1),sz(2));"]);
var block=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
block.graphics.style = new ScilabString(["OUT_f"]);
return new ExplicitOutBlock(this.x);
diff --git a/data_structures_correct/freq_div.js b/data_structures_correct/freq_div.js
new file mode 100644
index 0000000..c8cb1cc
--- /dev/null
+++ b/data_structures_correct/freq_div.js
@@ -0,0 +1,146 @@
+function freq_div() {
+
+ freq_div.prototype.define = function freq_div() {
+ var scs_m_1 = scicos_diagram();
+ scs_m_1.objs.push(new Modulo_Count().internal());
+ scs_m_1.objs.push(new CLKINV_f().internal());
+ scs_m_1.objs.push(new CLKOUTV_f().internal());
+ scs_m_1.objs.push(new IFTHEL_f().internal());
+ scs_m_1.objs.push(new CLKSPLIT_f().internal());
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+ scs_m_1.objs.push(scicos_link({}));
+
+ var blk = scs_m_1.objs[0];
+ var graphics = blk.graphics;
+ var model = blk.model;
+ graphics.orig = new ScilabDouble([0, -100]);
+ graphics.sz = new ScilabDouble([60, 40]);
+ graphics.exprs = new ScilabString(["0"], ["3"]);
+ model.dstate = new ScilabDouble([3]);
+ model.ipar = new ScilabDouble([3]);
+ graphics.pout = new ScilabDouble([7]);
+ graphics.pein = new ScilabDouble([10]);
+ graphics.out_implicit = new ScilabString(["E"]);
+ graphics.out_style = new ScilabString(["ExplicitOutputPort;align=right;verticalAlign=middle;spacing=10.0;rotation=0"]);
+ graphics.out_label = new ScilabString([""]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[0] = blk;
+
+ blk = scs_m_1.objs[1];
+ graphics = blk.graphics;
+ model = blk.model;
+ graphics.orig = new ScilabDouble([120, 0]);
+ graphics.sz = new ScilabDouble([20, 20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.peout = new ScilabDouble([6]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[1] = blk;
+
+ blk = scs_m_1.objs[2];
+ graphics = blk.graphics;
+ model = blk.model;
+ graphics.orig = new ScilabDouble([130, -160]);
+ graphics.sz = new ScilabDouble([20, 20]);
+ graphics.exprs = new ScilabString(["1"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pein = new ScilabDouble([8]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[2] = blk;
+
+ blk = scs_m_1.objs[3];
+ graphics = blk.graphics;
+ model = blk.model;
+ graphics.orig = new ScilabDouble([100, -100]);
+ graphics.sz = new ScilabDouble([60, 40]);
+ graphics.exprs = new ScilabString(["1"], ["0"]);
+ model.ipar = new ScilabDouble([1]);
+ graphics.pin = new ScilabDouble([7]);
+ graphics.pein = new ScilabDouble([9]);
+ graphics.peout = new ScilabDouble([0], [8]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[3] = blk;
+
+ blk = scs_m_1.objs[4];
+ graphics = blk.graphics;
+ model = blk.model;
+ graphics.orig = new ScilabDouble([127, -33]);
+ graphics.sz = new ScilabDouble([7, 7]);
+ graphics.pein = new ScilabDouble([6]);
+ graphics.peout = new ScilabDouble([9], [10]);
+ model.uid = new ScilabString([count]);
+ blk.doc = list(new ScilabString([count++]));
+ blk.graphics = graphics;
+ blk.model = model;
+ scs_m_1.objs[4] = blk;
+
+ var lnk = scs_m_1.objs[5];
+ lnk.xx = new ScilabDouble([170], [170.5]);
+ lnk.yy = new ScilabDouble([-44], [-75]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([2, 1, 0]);
+ lnk.to = new ScilabDouble([5, 1, 1]);
+ scs_m_1.objs[5] = lnk;
+
+ lnk = scs_m_1.objs[6];
+ lnk.xx = new ScilabDouble([104], [136]);
+ lnk.yy = new ScilabDouble([-100], [-100]);
+ lnk.from = new ScilabDouble([1, 1, 0]);
+ lnk.to = new ScilabDouble([4, 1, 1]);
+ scs_m_1.objs[6] = lnk;
+
+ lnk = scs_m_1.objs[7];
+ lnk.xx = new ScilabDouble([180], [180]);
+ lnk.yy = new ScilabDouble([-124], [-176]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([4, 2, 0]);
+ lnk.to = new ScilabDouble([3, 1, 1]);
+ scs_m_1.objs[7] = lnk;
+
+ lnk = scs_m_1.objs[8];
+ lnk.xx = new ScilabDouble([170], [170.5]);
+ lnk.yy = new ScilabDouble([-44], [-75]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([5, 1, 0]);
+ lnk.to = new ScilabDouble([4, 1, 1]);
+ scs_m_1.objs[8] = lnk;
+
+ lnk = scs_m_1.objs[9];
+ lnk.xx = new ScilabDouble([169], [170]);
+ lnk.yy = new ScilabDouble([-90], [-76]);
+ lnk.xx = new ScilabDouble([0, 30, 1]);
+ lnk.yy = new ScilabDouble([0, -30, 1]);
+ lnk.ct = new ScilabDouble([5, -1]);
+ lnk.from = new ScilabDouble([5, 2, 0]);
+ lnk.to = new ScilabDouble([1, 1, 1]);
+ scs_m_1.objs[9] = lnk;
+
+ model = scicos_model();
+ model.sim = new ScilabString(["csuper"]);
+ model.evtin = new ScilabDouble([1]);
+ model.evtout = new ScilabDouble([1]);
+ model.rpar = scs_m_1;
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;freq_div&quot;,sz(1),sz(2));"]);
+ this.x = new standard_define(new ScilabDouble([3, 2]), model, new ScilabDouble(), gr_i);
+ return new BasicBlock(this.x);
+ }
+ freq_div.prototype.details = function freq_div() {
+ return this.x;
+ }
+}