summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPooja Soundalgekar2016-07-05 11:33:33 +0530
committerPooja Soundalgekar2016-07-05 11:33:33 +0530
commit46c807c82bafc21425253bdae48a0235cb85263e (patch)
tree8489b0c7d92b6aef7fc4d58799abfaecc2f6f416
parent40c9db7327fc8c944592fcf3a01bbd8918a3de3a (diff)
downloadxcos-on-web-46c807c82bafc21425253bdae48a0235cb85263e.tar.gz
xcos-on-web-46c807c82bafc21425253bdae48a0235cb85263e.tar.bz2
xcos-on-web-46c807c82bafc21425253bdae48a0235cb85263e.zip
ds_PotentialSensor
-rw-r--r--data_structures_correct/PotentialSensor.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/data_structures_correct/PotentialSensor.js b/data_structures_correct/PotentialSensor.js
new file mode 100644
index 0000000..fb2581b
--- /dev/null
+++ b/data_structures_correct/PotentialSensor.js
@@ -0,0 +1,31 @@
+function PotentialSensor() {
+
+ PotentialSensor.prototype.define = function PotentialSensor() {
+
+ var model = scicos_model();
+ model.in = new ScilabDouble([1]);
+ model.out = new ScilabDouble([1]);
+ model.rpar = new ScilabDouble();
+ model.sim = new ScilabString(["PotentialSensor"]);
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([true, false]);
+
+ var mo = modelica();
+ mo.model = new ScilabString(["PotentialSensor"]);
+ mo.inputs = new ScilabString(["p"]);
+ mo.outputs = new ScilabString(["v"]);
+ model.equations = mo;
+
+ var exprs = new ScilabString([""]);
+
+ var gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"PotentialSensor\",sz(1),sz(2));"]);
+ this.x = standard_define([2, 2], model, exprs, list(gr_i, 0));
+ this.x.graphics.in_implicit = new ScilabString(["I"]);
+ this.x.graphics.out_implicit = new ScilabString(["E"]);
+ return new BasicBlock(this.x);
+ }
+ PotentialSensor.prototype.details = function PotentialSensor() {
+ return this.x;
+ }
+}
+