1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
function EVTDLY_c() {
EVTDLY_c.prototype.internal = function EVTDLY_c() {
var dt = 0.1;
var ff = 0.0;
var model = scicos_model();
model.sim = list(new ScilabString(["evtdly4"]), new ScilabDouble([4]));
model.evtin = new ScilabDouble([1]);
model.evtout = new ScilabDouble([1]);
model.rpar = new ScilabDouble([dt], [ff]);
model.blocktype = new ScilabString(["d"]);
model.firing = new ScilabDouble([ff]);
model.dep_ut = new ScilabBoolean([false, false]);
// changed
model.outtyp = new ScilabDouble();
var exprs = new ScilabString([dt], [ff]);
var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_c\",sz(1),sz(2));"]);
var block = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3,2 -> 80
block.graphics.style = new ScilabString(["EVTDLY_c"]);
return block;
}
EVTDLY_c.prototype.define = function EVTDLY_c() {
this.dt = 0.1;
this.ff = 0.0;
var model = scicos_model();
model.sim = list(new ScilabString(["evtdly4"]), new ScilabDouble([4]));
model.evtin = new ScilabDouble([1]);
model.evtout = new ScilabDouble([1]);
model.rpar = new ScilabDouble([this.dt], [this.ff]);
model.blocktype = new ScilabString(["d"]);
model.firing = new ScilabDouble([this.ff]);
model.dep_ut = new ScilabBoolean([false, false]);
// changed
model.outtyp = new ScilabDouble();
var exprs = new ScilabString([this.dt], [this.ff]);
var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"EVTDLY_c\",sz(1),sz(2));"]);
this.x = new standard_define(new ScilabDouble([80, 80]), model, exprs, gr_i); // 3,2 -> 80
this.x.graphics.style = new ScilabString(["EVTDLY_c"]);
return new BasicBlock(this.x);
}
EVTDLY_c.prototype.details = function EVTDLY_c() {
return this.x;
}
}
|