summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data_structures_correct/EDGETRIGGER.js20
-rw-r--r--data_structures_correct/EDGE_TRIGGER.js94
-rw-r--r--data_structures_correct/ENDBLK.js106
-rw-r--r--data_structures_correct/Gyrator.js56
-rw-r--r--data_structures_correct/INIMPL_f.js27
-rw-r--r--data_structures_correct/MCLOCK_f.js128
-rw-r--r--data_structures_correct/freq_div.js123
7 files changed, 0 insertions, 554 deletions
diff --git a/data_structures_correct/EDGETRIGGER.js b/data_structures_correct/EDGETRIGGER.js
deleted file mode 100644
index 11fba5b..0000000
--- a/data_structures_correct/EDGETRIGGER.js
+++ /dev/null
@@ -1,20 +0,0 @@
-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.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]);
-
- exprs=new ScilabString([this.edge]);
- gr_i=new ScilabString(["xstringb(orig(1),orig(2),"EDGETRIGGER",sz(1),sz(2));"]);
- var block=standard_define([3 2],model,exprs,gr_i);
- return block;
- }
-} \ No newline at end of file
diff --git a/data_structures_correct/EDGE_TRIGGER.js b/data_structures_correct/EDGE_TRIGGER.js
deleted file mode 100644
index 5d6ee43..0000000
--- a/data_structures_correct/EDGE_TRIGGER.js
+++ /dev/null
@@ -1,94 +0,0 @@
-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"]);
- model.ipar = new ScilabDouble([0]);
- graphics.pin = new ScilabDouble([5]);
- graphics.pout = new ScilabDouble([6]);
- 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]);
- 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]);
- blk.graphics=graphics;
- blk.model=model;
- scs_m_1.objs.push(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]);
- blk.graphics=graphics;
- blk.model=model;
- scs_m_1.objs[3] = blk;
-
- var lnk = scs_m_1.objs[4];
- 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.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.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.in1 = 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
deleted file mode 100644
index 6e56c5a..0000000
--- a/data_structures_correct/ENDBLK.js
+++ /dev/null
@@ -1,106 +0,0 @@
-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([1])
- out : new ScilabDouble(),
- out2 : new ScilabDouble(),
- outtyp :new ScilabDouble([1])
- 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
deleted file mode 100644
index 46ac1b5..0000000
--- a/data_structures_correct/Gyrator.js
+++ /dev/null
@@ -1,56 +0,0 @@
-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(P,"r");i++) {
- if (P[i][2]==1) {
- this.Typein.push(["E"]);
- this.MI.push([this.PortName[i]]);
- }
- if (P[i][2]==2) {
- this.Typein.push(["I"]);
- this.MI.push([this.PortName[i]]);
- }
- if (P[i][2]==-1) {
- this.Typeout.push(["E"]);
- this.MO.push([this.PortName[i]]);
- }
- if (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]);
- model.rpar=new ScilabDouble([this.PrametersValue]);
- mo.parameters=list(new ScilabString([this.ParametersName]),new ScilabDouble([this.PrametersValue]),new ScilabDouble(...zeros(this.ParametersName)));
- exprs=new ScilabString(["1"],["1"]);
- 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(MI,"*"),1));
- model.out=new ScilabDouble(...ones(size(MO,"*"),1));
- x=standard_define([2,2],model,exprs,list(gr_i,new ScilabDouble([0])));
- x.graphics.in_implicit=new ScilabString([this.Typein]);
- 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/INIMPL_f.js b/data_structures_correct/INIMPL_f.js
deleted file mode 100644
index 98a4aa1..0000000
--- a/data_structures_correct/INIMPL_f.js
+++ /dev/null
@@ -1,27 +0,0 @@
-function INIMPL_f () {
-
- INIMPL_f.prototype.define = function INIMPL_f() {
- var model = scicos_model();
- model.sim = new ScilabString(["inimpl"]);
- model.out = new ScilabDouble([-1]);
- model.out2 = new ScilabDouble([1]);
- model.ipar = new ScilabDouble([1]);
- model.dep_ut = new ScilabBoolean([false,false]);
- model.blocktype = new ScilabString(["c"]);
-
- var mo = modelica();
- mo.model = new ScilabString(["PORT"]);
- mo.outputs = new ScilabString(["n"]);
- model.equations=mo;
-
- var exprs = new ScilabString(["1"]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;INIMPL_f&quot;,sz(1),sz(2));"]);
- this.x=new standard_define(new ScilabDouble([1,1]),model,exprs,gr_i);
- this.x.graphics.out_implicit = new ScilabString(["I"]);
- return new ImplicitInBlock(this.x);
- }
- INIMPL_f.prototype.details = function INIMPL_f() {
- return this.x;
- }
-}
diff --git a/data_structures_correct/MCLOCK_f.js b/data_structures_correct/MCLOCK_f.js
deleted file mode 100644
index 41ea0a7..0000000
--- a/data_structures_correct/MCLOCK_f.js
+++ /dev/null
@@ -1,128 +0,0 @@
-function MCLOCK_f () {
-
- MCLOCK_f.prototype.define = function MCLOCK_f() {
- this.nn = 2;
- this.dt = 0.1;
- var exprs = new ScilabString([this.dt],[this.nn]);
-
- var mfclck = new MFCLCK_f().internal();
- mfclck.graphics.orig = new ScilabDouble([334,199]);
- mfclck.graphics.sz = new ScilabDouble([40,40]);
- mfclck.graphics.flip = new ScilabBoolean([true]);
- mfclck.graphics.exprs=exprs;
- mfclck.graphics.pein = new ScilabDouble([12]);
- mfclck.graphics.peout = new ScilabDouble([4],[3]);
- mfclck.model.rpar = new ScilabDouble([0.1]);
- mfclck.model.ipar=new ScilabDouble([this.nn]);
- mfclck.model.firing = new ScilabDouble([-1,0]);
-
- var clksom = new CLKSOM_f().internal();
- clksom.graphics.orig = new ScilabDouble([457,161]);
- clksom.graphics.sz = new ScilabDouble([16.666667,16.666667]);
- clksom.graphics.flip = new ScilabBoolean([true]);
- clksom.graphics.exprs = new ScilabString(["0.1"],["0.1"]);
- clksom.graphics.pein = new ScilabDouble([4],[9],[0]);
- clksom.graphics.peout = new ScilabDouble([5]);
-
- var output_port1 = new CLKOUT_f().internal();
- output_port1.graphics.orig = new ScilabDouble([509,261]);
- output_port1.graphics.sz = new ScilabDouble([20,20]);
- output_port1.graphics.flip = new ScilabBoolean([true]);
- output_port1.graphics.exprs = new ScilabString(["1"]);
- output_port1.graphics.pein = new ScilabDouble([10]);
- output_port1.model.ipar = new ScilabDouble([1]);
-
- var output_port2 = new CLKOUT_f().internal();
- output_port2.graphics.orig = new ScilabDouble([509,142]);
- output_port2.graphics.sz = new ScilabDouble([20,20]);
- output_port2.graphics.flip = new ScilabBoolean([true]);
- output_port2.graphics.exprs = new ScilabString(["2"]);
- output_port2.graphics.pein = new ScilabDouble([13]);
- output_port2.model.ipar = new ScilabDouble([2]);
-
- var split1 = new CLKSPLIT_f().internal();
- split1.graphics.orig = new ScilabDouble([411.92504],[169.33333]);
- split1.graphics.pein = new ScilabDouble([3]);
- split1.graphics.peout = new ScilabDouble([9],[10]);
-
- var split2 = new CLKSPLIT_f().internal();
- split2.graphics.orig = new ScilabDouble([482.45315],[169.33333]);
- split2.graphics.pein = new ScilabDouble([5]);
- split2.graphics.peout = new ScilabDouble([12],[13]);
-
- var gr_i = new ScilabString(["xstringb(orig(1),orig(2),&quot;MCLOCK_f&quot;,sz(1),sz(2));"]);
-
- var diagram = scicos_diagram();
- diagram.objs.push(mfclck);
- diagram.objs.push(clksom);
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([360.7],[360.7],[411.9]),
- yy: new ScilabDouble([193.3],[169.3],[169.3]),
- ct: new ScilabDouble([10,-1]),
- from: new ScilabDouble([1,2]),
- to: new ScilabDouble([8,1])
- }));
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([347.3],[347.3],[461.8],[461.8]),
- yy: new ScilabDouble([193.3],[155.5],[155.5],[161]),
- ct: new ScilabDouble([10,-1]),
- from: new ScilabDouble([1,1]),
- to: new ScilabDouble([2,1])
- }));
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([468.9],[482.5]),
- yy: new ScilabDouble([169.3],[169.3]),
- ct: new ScilabDouble([10,-1]),
- from: new ScilabDouble([2,1]),
- to: new ScilabDouble([11,1])
- }));
-
- diagram.objs.push(output_port1);
- diagram.objs.push(output_port2);
- diagram.objs.push(split1);
-
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([411.9],[457]),
- yy: new ScilabDouble([169.3],[169.3]),
- ct: new ScilabDouble([10,-1]),
- from: new ScilabDouble([8,1]),
- to: new ScilabDouble([2,2])
- }));
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([411.9],[411.9],[509]),
- yy: new ScilabDouble([169.3],[271],[271]),
- ct: new ScilabDouble([10,-1]),
- from: new ScilabDouble([8,2]),
- to: new ScilabDouble([6,1])
- }));
- diagram.objs.push(split2);
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([482.5],[489.6],[489.6],[354],[354]),
- yy: new ScilabDouble([169.3],[169.3],[338.3],[338.3],[244.7]),
- ct: new ScilabDouble([10,-1]),
- from: new ScilabDouble([11,1]),
- to: new ScilabDouble([1,1])
- }));
- diagram.objs.push(scicos_link({
- xx: new ScilabDouble([482.4],[482.4],[509]),
- yy: new ScilabDouble([169.3],[152],[152]),
- ct: new ScilabDouble([10,-1]),
- from: new ScilabDouble([11,2]),
- to: new ScilabDouble([7,1])
- }));
-
- this.x=scicos_block();
- this.x.gui = new ScilabString(["MCLOCK_f"]);
- this.x.graphics.sz = new ScilabDouble([3,2]);
- this.x.graphics.gr_i=gr_i;
- this.x.model.sim = new ScilabString(["csuper"]);
- this.x.model.evtout = new ScilabDouble([1],[1]);
- this.x.model.blocktype = new ScilabString(["h"]);
- this.x.model.rpar=diagram;
- this.x.graphics.peout = new ScilabDouble([0],[0]);
- return new BasicBlock(this.x);
- }
- MCLOCK_f.prototype.details = function MCLOCK_f() {
- return this.x;
- }
-}
diff --git a/data_structures_correct/freq_div.js b/data_structures_correct/freq_div.js
deleted file mode 100644
index 39c9410..0000000
--- a/data_structures_correct/freq_div.js
+++ /dev/null
@@ -1,123 +0,0 @@
-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]);
- 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]);
- 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]);
- 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]);
- 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]);
- blk.graphics=graphics;
- blk.model=model;
- scs_m_1.objs[4]=blk;
-
- var lnk = scs_m_1.objs[5];
- 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.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.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.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([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;
- }
-}