summaryrefslogtreecommitdiff
path: root/data_structures/SWITCH_f.js
blob: 525a32541e76d81c856d307cc201c2cb982d6b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
function SWITCH_f () {


	var i0 = 0;

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

	var nin = 2;

	var model = scicos_model();
	model.sim=list("switchn",2);
	model.in=in;
	model.out = new ScilabDouble([-1]);
	model.ipar=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);
}