blob: a131fed877cec9502de2a3c3bc66f54f17d2111a (
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
35
|
/* autogenerated from "macros/Electrical/VoltageSensor.sci" */
function VoltageSensor() {
VoltageSensor.prototype.define = function VoltageSensor() {
this.model = scicos_model();
this.model.in = new ScilabDouble([1]);
this.model.out = new ScilabDouble([1],[1]);
this.model.sim = new ScilabString(["VoltageSensor"]);
this.model.blocktype = new ScilabString(["c"]);
this.model.dep_ut = new ScilabBoolean([true,false]);
var mo = modelica();
mo.model = "VoltageSensor";
mo.inputs = "p";
mo.outputs = [["n"],["v"]];
this.model.equations = new ScilabDouble([mo]);
var exprs = [];
var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"VoltageSensor\",sz(1),sz(2));"]);
this.x = new standard_define(new ScilabDouble([2,2]),this.model,new ScilabDouble(exprs),list(gr_i,0));
this.x.graphics.in_implicit = ["I"];
this.x.graphics.out_implicit = [["I"],["E"]];
return new VoltageSensorBlock(this.x);
}
VoltageSensor.prototype.details = function VoltageSensor() {
return this.x;
}
VoltageSensor.prototype.get = function VoltageSensor() {
alert("parameters cannot be modified");
}
VoltageSensor.prototype.set = function VoltageSensor() {
return new VoltageSensorBlock(this.x);
}
VoltageSensor.prototype.get_popup_title = function VoltageSensor() {
return;
}
VoltageSensor.prototype.getContainer = function VoltageSensor() { return new VoltageSensorBlock(this.x); }
}
|