summaryrefslogtreecommitdiff
path: root/data_structures/MBLOCK.js
diff options
context:
space:
mode:
Diffstat (limited to 'data_structures/MBLOCK.js')
-rw-r--r--data_structures/MBLOCK.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/data_structures/MBLOCK.js b/data_structures/MBLOCK.js
new file mode 100644
index 0000000..30a963b
--- /dev/null
+++ b/data_structures/MBLOCK.js
@@ -0,0 +1,29 @@
+function MBLOCK () {
+
+
+ var in = ["u1"];
+
+ var intype = ["I"];
+
+ var out = ["y1";"y2"];
+
+ var outtype = ["I";"E"];
+
+ var param = ["R";"L"];
+
+ var paramv = list(0.1,.0001);
+
+ var pprop = [[0],[0]];
+
+ var nameF = "generic";
+
+ var exprs = [...colon_operator(tlist,["MBLOCK","in","intype","out","outtype","param","paramv","pprop","nameF","funtxt"],sci2exp(...in),sci2exp(...intype),sci2exp(...out),sci2exp(...outtype),sci2exp(...param),list(0.1.toString(),.0001.toString()),sci2exp(pprop(,)),nameF,[])];
+
+ var model = scicos_model();
+ model.blocktype = new ScilabString(["c"]);
+ model.dep_ut = new ScilabBoolean([false,true]);
+ model.rpar = new ScilabDouble();
+
+ var for i = 1:lstsize(paramv);
+ model.rpar = new ScilabDouble([model.rpar],[paramv(i)(:)]);
+}