summaryrefslogtreecommitdiff
path: root/history/data_structures/TIME_DELAY.js
blob: 82a1e99e96a43b0471cea8598a424612a51a946c (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
function TIME_DELAY () {


	var nin = 1;

	var T = 1;

	var init = 0;

	var N = 1024;

	var model = scicos_model();
	model.sim=list(new ScilabString(["time_delay"]),new ScilabDouble([4]));
	model.in1 = new ScilabDouble([nin]);
	model.out=new ScilabDouble([nin]);
	model.rpar = new ScilabDouble([T,init]);
	model.ipar=new ScilabDouble([N]);
	model.blocktype = new ScilabString(["x"]);
	model.dep_ut = new ScilabBoolean([false,true]);

	var exprs = [[string(T)],[string(init)],[string(N)]];

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