summaryrefslogtreecommitdiff
path: root/js/Sources/PULSE_SC.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Sources/PULSE_SC.js')
-rw-r--r--js/Sources/PULSE_SC.js48
1 files changed, 24 insertions, 24 deletions
diff --git a/js/Sources/PULSE_SC.js b/js/Sources/PULSE_SC.js
index 496a0a2d..3823707f 100644
--- a/js/Sources/PULSE_SC.js
+++ b/js/Sources/PULSE_SC.js
@@ -13,36 +13,36 @@ function PULSE_SC() {
scs_m_1.objs[9-1] = scicos_link(xx=[[112.34974],[112.34974],[119.33985],[119.33985]],yy=[[274.21741],[248.21372],[248.21372],[231.80809]],id="drawlink",thick=[0,0],ct=[5,-1],from=[6,1,0],to=[3,1,1]);
scs_m_1.objs[10-1] = scicos_block(gui="OUT_f",graphics=scicos_graphics(orig=[174.57795,196.09381],sz=[20,20],flip=true,theta=0,exprs="1",pin=11,pout=[],pein=[],peout=[],gr_i=[],id="",in_implicit="E",out_implicit=[]),model=scicos_model(sim="output",in1=-1,in2=-2,intyp=-1,out=[],out2=[],outtyp=1,evtin=[],evtout=[],state=[],dstate=[],odstate=list(),rpar=[],ipar=1,opar=list(),blocktype="c",firing=[],dep_ut=[false,false],label="",nzcross=0,nmode=0,equations=list()),doc=list());
scs_m_1.objs[11-1] = scicos_link(xx=[[154.57795],[174.57795]],yy=[[206.09381],[206.09381]],id="drawlink",thick=[0,0],ct=[1,1],from=[3,1,0],to=[10,1,1]);
- model = scicos_model();
- model.sim = "csuper";
- model.in1 = [];
- model.in2 = [];
- model.intyp = 1;
- model.out = -1;
- model.out2 = -2;
- model.outtyp = -1;
- model.evtin = [];
- model.evtout = [];
- model.state = [];
- model.dstate = [];
- model.odstate = list();
- model.rpar = scs_m_1;
- model.ipar = 1;
- model.opar = list();
- model.blocktype = "h";
- model.firing = [];
- model.dep_ut = [false,false];
- model.label = "";
- model.nzcross = 0;
- model.nmode = 0;
- model.equations = list();
+ this.model = scicos_model();
+ this.model.sim = new ScilabString("csuper");
+ this.model.in1 = [];
+ this.model.in2 = [];
+ this.model.intyp = new ScilabDouble(1);
+ this.model.out = new ScilabDouble(-1);
+ this.model.out2 = new ScilabDouble(-2);
+ this.model.outtyp = new ScilabDouble(-1);
+ this.model.evtin = [];
+ this.model.evtout = [];
+ this.model.state = [];
+ this.model.dstate = [];
+ this.model.odstate = list();
+ this.model.rpar = new ScilabDouble(scs_m_1);
+ this.model.ipar = new ScilabDouble(1);
+ this.model.opar = list();
+ this.model.blocktype = new ScilabString("h");
+ this.model.firing = [];
+ this.model.dep_ut = [false,false];
+ this.model.label = new ScilabString("");
+ this.model.nzcross = new ScilabDouble(0);
+ this.model.nmode = new ScilabDouble(0);
+ this.model.equations = list();
E = 0.1;
W = 30;
F = 1;
A = 1;
exprs = [sci2exp(E),sci2exp(W),sci2exp(F),sci2exp(A)];
gr_i = [];
- this.x = standard_define([3,2],model,exprs,gr_i);
+ this.x = standard_define([3,2],this.model,exprs,gr_i);
return new BasicBlock(this.x);
}
PULSE_SC.prototype.details = function PULSE_SC() {