summaryrefslogtreecommitdiff
path: root/data_structures/RELAY_f.js
blob: ec6d7212b51f0842eaf8668e2efb22170e1d496e (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
function RELAY_f () {


	var i0 = 0;

	var in = [[-1],[-1]];

	var nin = 2;

	var model = scicos_model();
	model.sim=list("relay",2);
	model.in=in;
	model.out = new ScilabDouble([-1]);
	model.evtin=ones(in);
	model.dstate=new ScilabDouble([i0]);
	model.blocktype = new ScilabString(["c"]);
	model.firing = new ScilabDouble();
	model.dep_ut = new ScilabBoolean([true,true]);

	var exprs = [[nin.toString()],[i0+1.toString()]];

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