blob: 2736b21fc7ada8ac0de2cb3a9612febb3036bc84 (
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
|
/* autogenerated from "macros/Electrical/CurrentSensor.sci" */
function CurrentSensor() {
CurrentSensor.prototype.define = function CurrentSensor() {
this.model = scicos_model();
this.model.in1 = new ScilabDouble(1);
this.model.out = [[1],[1]];
this.model.sim = new ScilabString("CurrentSensor");
this.model.blocktype = new ScilabString("c");
this.model.dep_ut = [true,false];
mo = modelica();
mo.model = "CurrentSensor";
mo.inputs = "p";
mo.outputs = [["n"],["i"]];
this.model.equations = new ScilabDouble(mo);
exprs = [];
gr_i = [];
this.x = standard_define([2,2],this.model,exprs,list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = [["I"],["E"]];
return new BasicBlock(this.x);
}
CurrentSensor.prototype.details = function CurrentSensor() {
return this.x;
}
CurrentSensor.prototype.get = function CurrentSensor() {
var options = {
}
return options;
}
CurrentSensor.prototype.set = function CurrentSensor() {
this.x = arg1;
return new BasicBlock(this.x);
}
}
|