summaryrefslogtreecommitdiff
path: root/webapp/history/data_structures/scifunc_block_m.js
blob: 20d082c739f40bf0e5c0131840215082cb1d536f (plain)
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
function scifunc_block_m () {


	var in1 = 1;

	var out = 1;

	var clkin = [];

	var clkout = [];

	var x0 = [];

	var z0 = [];

	var typ = "c";

	var auto = [];

	var rpar = [];

	var it = 1;

	var model = scicos_model();
	model.sim=list(new ScilabString(["scifunc"]),new ScilabDouble([3]));
	model.in1.push(new ScilabDouble([in1]));
	model.in2.push(new ScilabDouble([in1]));
	model.intyp=new ScilabDouble([it]);
	model.out=new ScilabDouble([out]);
	model.out2.push(new ScilabDouble([out]));
	model.outtyp=new ScilabDouble([it]);
	model.evtin=clkin;
	model.evtout=clkout;
	model.state=x0;
	model.dstate=z0;
	model.rpar=rpar;
	model.ipar = new ScilabDouble([0]);
	model.opar=list();
	model.blocktype=new ScilabString([typ]);
	model.firing=auto;
	model.dep_ut = new ScilabBoolean([true,false]);

	var exprs = list([sci2exp([in1,in1])],[sci2exp([out,out])],[sci2exp(clkin)],[sci2exp(clkout);
	strcat(sci2exp(x0));strcat(sci2exp(z0));

	var strcat(sci2exp(rpar));sci2exp(auto);sci2exp(0)],list("y1 = sin(u1)"," "," ","y1=sin(u1)"," "," "," "));

	var gr_i = [];
	this.x=new standard_define(new ScilabDouble([4,2]),model,exprs,gr_i);
	return new BasicBlock(this.x)
}