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


	var minim = 0;

	var maxim = 2;

	var rule = 1;

	var model = scicos_model();
	model.sim=list("counter",4);
	model.evtin = new ScilabDouble([1]);
	model.out = new ScilabDouble([1]);
	model.out2 = new ScilabDouble([1]);
	model.dstate = new ScilabDouble([0]);
	model.ipar = new ScilabDouble([rule],[maxim],[minim]);
	model.blocktype = new ScilabString(["c"]);
	model.dep_ut = new ScilabBoolean([false,false]);

	var exprs = [[minim.toString()],[maxim.toString()],[rule.toString()]];

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