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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
function FROMWSB() {
FROMWSB.prototype.define = function FROMWSB() {
var scs_m_1 = scicos_diagram({
version : new ScilabString(["scicos4.2"]),
props : scicos_params({
wpar : new ScilabDouble([600,450,0,0,450,600]),
Title : new ScilabString(["FROMWSB"]),
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(["FROMWS_c"]),
graphics : scicos_graphics({
orig : new ScilabDouble([260.37067,261.584]),
sz : new ScilabDouble([70,40]),
flip :new ScilabBoolean([true]),
theta : new ScilabDouble([0]),
exprs : new ScilabString(["V"],["1"],["1"],["0"]),
pin : new ScilabDouble(),
pout : new ScilabDouble([4]),
pein : new ScilabDouble([2]),
peout : new ScilabDouble([2]),
gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),"FROMWS_c",sz(1),sz(2));"]), new ScilabDouble([8])),
id : new ScilabString([""]),
in_implicit : new ScilabDouble(),
out_implicit : new ScilabString(["E"]),
out_style: new ScilabString(["ExplicitOutputPort"]),
out_label: new ScilabString([""]),
style: new ScilabString(["FROMWS_c"])
}),
model : scicos_model({
sim : list(new ScilabString(["fromws_c"]),new ScilabDouble([4])),
in : new ScilabDouble(),
in2 : new ScilabDouble(),
intyp : new ScilabDouble(),
out : new ScilabDouble([-1]),
out2 : new ScilabDouble([-2]),
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([1],[-31],[1],[1],[0]),
opar : list(),
blocktype : new ScilabString(["d"]),
firing : new ScilabDouble([0]),
dep_ut : new ScilabBoolean([false,true]),
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_block({
gui : new ScilabString(["OUT_f"]),
graphics : scicos_graphics({
orig : new ScilabDouble([358.9421,271.584]),
sz : new ScilabDouble([20,20]),
flip :new ScilabBoolean([true]),
theta : new ScilabDouble([0]),
exprs : new ScilabString(["1"]),
pin : new ScilabDouble([4]),
pout : new ScilabDouble(),
pein : new ScilabDouble(),
peout : new ScilabDouble(),
gr_i: list(new ScilabString(["xstringb(orig(1),orig(2),"OUT_f",sz(1),sz(2));"]), new ScilabDouble([8])),
id : new ScilabString([""]),
in_implicit : new ScilabString(["E"]),
out_implicit : new ScilabDouble(),
in_style: new ScilabString(["ExplicitInputPort"]),
in_label: new ScilabString([""]),
style: new ScilabString(["OUT_f"])
}),
model : scicos_model({
sim : new ScilabString(["output"]),
in : new ScilabDouble([-1]),
in2 : new ScilabDouble([-2]),
intyp : new ScilabDouble([-1]),
out : new ScilabDouble(),
out2 : new ScilabDouble(),
outtyp : new ScilabDouble(),
evtin : new ScilabDouble(),
evtout : new ScilabDouble(),
state : new ScilabDouble(),
dstate : new ScilabDouble(),
odstate : list(),
rpar : new ScilabDouble(),
ipar : new ScilabDouble([1]),
opar : list(),
blocktype : new ScilabString(["c"]),
firing : new ScilabDouble(),
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([295.37067],[295.37067],[233.23733],[233.23733],[295.37067],[295.37067]),
yy: new ScilabDouble([255.86971],[223.45067],[223.45067],[337.85067],[337.85067],[307.29829]),
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])
}));
scs_m_1.objs.push(scicos_link({
xx: new ScilabDouble([338.9421],[358.9421]),
yy: new ScilabDouble([281.584],[281.584]),
id: new ScilabString(["drawlink"]),
thick: new ScilabDouble([0,0]),
ct: new ScilabDouble([1,1]),
from: new ScilabDouble([1,1,0]),
to: new ScilabDouble([3,1,1])
}));
var model = scicos_model({
sim : new ScilabString(["csuper"]),
in : new ScilabDouble(),
in2 : new ScilabDouble(),
intyp : new ScilabDouble([1]),
out : new ScilabDouble([-1]),
out2 : new ScilabDouble([-2]),
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),\"FROMWSB\",sz(1),sz(2));"]);
this.x=new standard_define(new ScilabDouble([5,2]),model,new ScilabDouble(),gr_i);
return new BasicBlock(this.x);
}
FROMWSB.prototype.details = function FROMWSB() {
return this.x;
}
}
|