diff options
Diffstat (limited to 'js/Linear')
36 files changed, 188 insertions, 0 deletions
diff --git a/js/Linear/BIGSOM_f.js b/js/Linear/BIGSOM_f.js index aac032a5..42a51c70 100644 --- a/js/Linear/BIGSOM_f.js +++ b/js/Linear/BIGSOM_f.js @@ -18,6 +18,9 @@ function BIGSOM_f() { return this.x; } BIGSOM_f.prototype.get = function BIGSOM_f() { + var options = { + } + return options; } BIGSOM_f.prototype.set = function BIGSOM_f() { this.sgn = parseFloat((arguments[0]["sgn"])) diff --git a/js/Linear/CLINDUMMY_f.js b/js/Linear/CLINDUMMY_f.js index fafdb58d..685fd5d0 100644 --- a/js/Linear/CLINDUMMY_f.js +++ b/js/Linear/CLINDUMMY_f.js @@ -16,6 +16,9 @@ function CLINDUMMY_f() { return this.x; } CLINDUMMY_f.prototype.get = function CLINDUMMY_f() { + var options = { + } + return options; } CLINDUMMY_f.prototype.set = function CLINDUMMY_f() { this.x = arg1; diff --git a/js/Linear/CLR.js b/js/Linear/CLR.js index 71876ef0..1ec2fe21 100644 --- a/js/Linear/CLR.js +++ b/js/Linear/CLR.js @@ -23,6 +23,11 @@ function CLR() { return this.x; } CLR.prototype.get = function CLR() { + var options = { + num:["Numerator (s)",this.num], + den:["Denominator (s)",this.den], + } + return options; } CLR.prototype.set = function CLR() { this.num = parseFloat((arguments[0]["num"])) diff --git a/js/Linear/CLR_f.js b/js/Linear/CLR_f.js index 55b9376a..3e88994f 100644 --- a/js/Linear/CLR_f.js +++ b/js/Linear/CLR_f.js @@ -23,6 +23,11 @@ function CLR_f() { return this.x; } CLR_f.prototype.get = function CLR_f() { + var options = { + num:["Numerator (s)",this.num], + den:["Denominator (s)",this.den], + } + return options; } CLR_f.prototype.set = function CLR_f() { this.num = parseFloat((arguments[0]["num"])) diff --git a/js/Linear/CLSS.js b/js/Linear/CLSS.js index 463de132..1572c60f 100644 --- a/js/Linear/CLSS.js +++ b/js/Linear/CLSS.js @@ -25,6 +25,14 @@ function CLSS() { return this.x; } CLSS.prototype.get = function CLSS() { + var options = { + A:["A matrix",this.A], + B:["B matrix",this.B], + C:["C matrix",this.C], + D:["D matrix",this.D], + x0:["Initial state",this.x0], + } + return options; } CLSS.prototype.set = function CLSS() { this.A = parseFloat((arguments[0]["A"])) diff --git a/js/Linear/CLSS_f.js b/js/Linear/CLSS_f.js index 703a2bba..c861c59c 100644 --- a/js/Linear/CLSS_f.js +++ b/js/Linear/CLSS_f.js @@ -25,6 +25,14 @@ function CLSS_f() { return this.x; } CLSS_f.prototype.get = function CLSS_f() { + var options = { + A:["A matrix",this.A], + B:["B matrix",this.B], + C:["C matrix",this.C], + D:["D matrix",this.D], + x0:["Initial state",this.x0], + } + return options; } CLSS_f.prototype.set = function CLSS_f() { this.A = parseFloat((arguments[0]["A"])) diff --git a/js/Linear/DELAYV_f.js b/js/Linear/DELAYV_f.js index 077efac4..a18877b7 100644 --- a/js/Linear/DELAYV_f.js +++ b/js/Linear/DELAYV_f.js @@ -25,6 +25,12 @@ function DELAYV_f() { return this.x; } DELAYV_f.prototype.get = function DELAYV_f() { + var options = { + nin:["Number of inputs",this.nin], + zz0:["Register initial condition",this.zz0], + T:["Max delay",this.T], + } + return options; } DELAYV_f.prototype.set = function DELAYV_f() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/Linear/DELAY_f.js b/js/Linear/DELAY_f.js index b7fafb69..a09f5754 100644 --- a/js/Linear/DELAY_f.js +++ b/js/Linear/DELAY_f.js @@ -69,6 +69,11 @@ function DELAY_f() { return this.x; } DELAY_f.prototype.get = function DELAY_f() { + var options = { + dt:["Discretization time step",this.dt], + z0:["Register initial state",this.z0], + } + return options; } DELAY_f.prototype.set = function DELAY_f() { this.dt = parseFloat((arguments[0]["dt"])) diff --git a/js/Linear/DERIV.js b/js/Linear/DERIV.js index 700141a1..c52a8979 100644 --- a/js/Linear/DERIV.js +++ b/js/Linear/DERIV.js @@ -16,6 +16,9 @@ function DERIV() { return this.x; } DERIV.prototype.get = function DERIV() { + var options = { + } + return options; } DERIV.prototype.set = function DERIV() { this.x = arg1; diff --git a/js/Linear/DIFF_c.js b/js/Linear/DIFF_c.js index 41fed9aa..55f81ca7 100644 --- a/js/Linear/DIFF_c.js +++ b/js/Linear/DIFF_c.js @@ -18,6 +18,11 @@ function DIFF_c() { return this.x; } DIFF_c.prototype.get = function DIFF_c() { + var options = { + x0:["Initial state",this.x0], + xd0:["Initial Derivative",this.xd0], + } + return options; } DIFF_c.prototype.set = function DIFF_c() { this.x0 = parseFloat((arguments[0]["x0"])) diff --git a/js/Linear/DLR.js b/js/Linear/DLR.js index c0f616a6..eb8a0cd2 100644 --- a/js/Linear/DLR.js +++ b/js/Linear/DLR.js @@ -24,6 +24,11 @@ function DLR() { return this.x; } DLR.prototype.get = function DLR() { + var options = { + num:["Numerator (z)",this.num], + den:["Denominator (z)",this.den], + } + return options; } DLR.prototype.set = function DLR() { this.num = parseFloat((arguments[0]["num"])) diff --git a/js/Linear/DLR_f.js b/js/Linear/DLR_f.js index 3f573c1c..7a3bd188 100644 --- a/js/Linear/DLR_f.js +++ b/js/Linear/DLR_f.js @@ -24,6 +24,11 @@ function DLR_f() { return this.x; } DLR_f.prototype.get = function DLR_f() { + var options = { + num:["Numerator (z)",this.num], + den:["Denominator (z)",this.den], + } + return options; } DLR_f.prototype.set = function DLR_f() { this.num = parseFloat((arguments[0]["num"])) diff --git a/js/Linear/DLSS.js b/js/Linear/DLSS.js index 84af36c5..7fee6081 100644 --- a/js/Linear/DLSS.js +++ b/js/Linear/DLSS.js @@ -24,6 +24,14 @@ function DLSS() { return this.x; } DLSS.prototype.get = function DLSS() { + var options = { + A:["A matrix",this.A], + B:["B matrix",this.B], + C:["C matrix",this.C], + D:["D matrix",this.D], + x0:["Initial state",this.x0], + } + return options; } DLSS.prototype.set = function DLSS() { this.A = parseFloat((arguments[0]["A"])) diff --git a/js/Linear/DLSS_f.js b/js/Linear/DLSS_f.js index 4afd0f91..cd486c1c 100644 --- a/js/Linear/DLSS_f.js +++ b/js/Linear/DLSS_f.js @@ -24,6 +24,14 @@ function DLSS_f() { return this.x; } DLSS_f.prototype.get = function DLSS_f() { + var options = { + A:["A matrix",this.A], + B:["B matrix",this.B], + C:["C matrix",this.C], + D:["D matrix",this.D], + x0:["Initial state",this.x0], + } + return options; } DLSS_f.prototype.set = function DLSS_f() { this.A = parseFloat((arguments[0]["A"])) diff --git a/js/Linear/DOLLAR.js b/js/Linear/DOLLAR.js index 82b8d12e..e09d8092 100644 --- a/js/Linear/DOLLAR.js +++ b/js/Linear/DOLLAR.js @@ -21,6 +21,11 @@ function DOLLAR() { return this.x; } DOLLAR.prototype.get = function DOLLAR() { + var options = { + a:["initial condition",this.a], + inh:["Inherit (no:0, yes:1)",this.inh], + } + return options; } DOLLAR.prototype.set = function DOLLAR() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/Linear/DOLLAR_f.js b/js/Linear/DOLLAR_f.js index f751d7c5..05990047 100644 --- a/js/Linear/DOLLAR_f.js +++ b/js/Linear/DOLLAR_f.js @@ -21,6 +21,11 @@ function DOLLAR_f() { return this.x; } DOLLAR_f.prototype.get = function DOLLAR_f() { + var options = { + a:["initial condition",this.a], + inh:["Inherit (no:0, yes:1)",this.inh], + } + return options; } DOLLAR_f.prototype.set = function DOLLAR_f() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/Linear/DOLLAR_m.js b/js/Linear/DOLLAR_m.js index d2b74b29..7c06f31c 100644 --- a/js/Linear/DOLLAR_m.js +++ b/js/Linear/DOLLAR_m.js @@ -21,6 +21,11 @@ function DOLLAR_m() { return this.x; } DOLLAR_m.prototype.get = function DOLLAR_m() { + var options = { + a:["initial condition",this.a], + inh:["Inherit (no:0, yes:1)",this.inh], + } + return options; } DOLLAR_m.prototype.set = function DOLLAR_m() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/Linear/GAINBLK.js b/js/Linear/GAINBLK.js index 1f48644a..8904c046 100644 --- a/js/Linear/GAINBLK.js +++ b/js/Linear/GAINBLK.js @@ -24,6 +24,11 @@ function GAINBLK() { return this.x; } GAINBLK.prototype.get = function GAINBLK() { + var options = { + gain:["Gain",this.gain], + over:["Do On Overflow(0=Nothing 1=Saturate 2=Error)",this.over], + } + return options; } GAINBLK.prototype.set = function GAINBLK() { this.gain = parseFloat((arguments[0]["gain"])) diff --git a/js/Linear/GAINBLK_f.js b/js/Linear/GAINBLK_f.js index 4b601255..e1ba731f 100644 --- a/js/Linear/GAINBLK_f.js +++ b/js/Linear/GAINBLK_f.js @@ -20,6 +20,10 @@ function GAINBLK_f() { return this.x; } GAINBLK_f.prototype.get = function GAINBLK_f() { + var options = { + gain:["Gain",this.gain], + } + return options; } GAINBLK_f.prototype.set = function GAINBLK_f() { this.gain = parseFloat((arguments[0]["gain"])) diff --git a/js/Linear/GAIN_f.js b/js/Linear/GAIN_f.js index ab745c92..1b43c589 100644 --- a/js/Linear/GAIN_f.js +++ b/js/Linear/GAIN_f.js @@ -20,6 +20,10 @@ function GAIN_f() { return this.x; } GAIN_f.prototype.get = function GAIN_f() { + var options = { + gain:["Gain",this.gain], + } + return options; } GAIN_f.prototype.set = function GAIN_f() { this.gain = parseFloat((arguments[0]["gain"])) diff --git a/js/Linear/INTEGRAL.js b/js/Linear/INTEGRAL.js index 4918da36..224543fc 100644 --- a/js/Linear/INTEGRAL.js +++ b/js/Linear/INTEGRAL.js @@ -22,6 +22,14 @@ function INTEGRAL() { return this.x; } INTEGRAL.prototype.get = function INTEGRAL() { + var options = { + x0:["Initial Condition",this.x0], + reinit:["With re-intialization (1:yes, 0:no)",this.reinit], + satur:["With saturation (1:yes, 0:no)",this.satur], + maxp:["Upper limit",this.maxp], + lowp:["Lower limit",this.lowp], + } + return options; } INTEGRAL.prototype.set = function INTEGRAL() { this.x0 = parseFloat((arguments[0]["x0"])) diff --git a/js/Linear/INTEGRAL_f.js b/js/Linear/INTEGRAL_f.js index cfe0733c..1bbbc888 100644 --- a/js/Linear/INTEGRAL_f.js +++ b/js/Linear/INTEGRAL_f.js @@ -18,6 +18,9 @@ function INTEGRAL_f() { return this.x; } INTEGRAL_f.prototype.get = function INTEGRAL_f() { + var options = { + } + return options; } INTEGRAL_f.prototype.set = function INTEGRAL_f() { this.x0 = parseFloat((arguments[0]["x0"])) diff --git a/js/Linear/INTEGRAL_m.js b/js/Linear/INTEGRAL_m.js index 82262192..78e03eca 100644 --- a/js/Linear/INTEGRAL_m.js +++ b/js/Linear/INTEGRAL_m.js @@ -23,6 +23,14 @@ function INTEGRAL_m() { return this.x; } INTEGRAL_m.prototype.get = function INTEGRAL_m() { + var options = { + x0:["Initial Condition",this.x0], + reinit:["With re-intialization (1:yes, 0:no)",this.reinit], + satur:["With saturation (1:yes, 0:no)",this.satur], + maxp:["Upper limit",this.maxp], + lowp:["Lower limit",this.lowp], + } + return options; } INTEGRAL_m.prototype.set = function INTEGRAL_m() { this.x0 = parseFloat((arguments[0]["x0"])) diff --git a/js/Linear/PID.js b/js/Linear/PID.js index 0b5faeb3..c07683ba 100644 --- a/js/Linear/PID.js +++ b/js/Linear/PID.js @@ -43,6 +43,12 @@ function PID() { return this.x; } PID.prototype.get = function PID() { + var options = { + p:["Proportional",this.p], + i:["Integral",this.i], + d:["Derivation",this.d], + } + return options; } PID.prototype.set = function PID() { this.p = parseFloat((arguments[0]["p"])) diff --git a/js/Linear/REGISTER.js b/js/Linear/REGISTER.js index 05cfa68a..78f6836d 100644 --- a/js/Linear/REGISTER.js +++ b/js/Linear/REGISTER.js @@ -19,6 +19,11 @@ function REGISTER() { return this.x; } REGISTER.prototype.get = function REGISTER() { + var options = { + z0:["Register initial condition",this.z0], + it:["Datatype (1=double 3=int32 ...)",this.it], + } + return options; } REGISTER.prototype.set = function REGISTER() { this.z0 = parseFloat((arguments[0]["z0"])) diff --git a/js/Linear/REGISTER_f.js b/js/Linear/REGISTER_f.js index 0c928c31..d3d8d7ef 100644 --- a/js/Linear/REGISTER_f.js +++ b/js/Linear/REGISTER_f.js @@ -19,6 +19,9 @@ function REGISTER_f() { return this.x; } REGISTER_f.prototype.get = function REGISTER_f() { + var options = { + } + return options; } REGISTER_f.prototype.set = function REGISTER_f() { this.z0 = parseFloat((arguments[0]["z0"])) diff --git a/js/Linear/SAMPHOLD.js b/js/Linear/SAMPHOLD.js index 6f7957f0..e51073c2 100644 --- a/js/Linear/SAMPHOLD.js +++ b/js/Linear/SAMPHOLD.js @@ -17,6 +17,9 @@ function SAMPHOLD() { return this.x; } SAMPHOLD.prototype.get = function SAMPHOLD() { + var options = { + } + return options; } SAMPHOLD.prototype.set = function SAMPHOLD() { this.x = arg1; diff --git a/js/Linear/SAMPHOLD_m.js b/js/Linear/SAMPHOLD_m.js index f1be731b..7327c94b 100644 --- a/js/Linear/SAMPHOLD_m.js +++ b/js/Linear/SAMPHOLD_m.js @@ -21,6 +21,10 @@ function SAMPHOLD_m() { return this.x; } SAMPHOLD_m.prototype.get = function SAMPHOLD_m() { + var options = { + it:["Datatype(1=real double 2=Complex 3=int32 ...)",this.it], + } + return options; } SAMPHOLD_m.prototype.set = function SAMPHOLD_m() { this.it = parseFloat((arguments[0]["it"])) diff --git a/js/Linear/SAMPLEHOLD_f.js b/js/Linear/SAMPLEHOLD_f.js index 9ad513d1..7e9fe126 100644 --- a/js/Linear/SAMPLEHOLD_f.js +++ b/js/Linear/SAMPLEHOLD_f.js @@ -17,6 +17,9 @@ function SAMPLEHOLD_f() { return this.x; } SAMPLEHOLD_f.prototype.get = function SAMPLEHOLD_f() { + var options = { + } + return options; } SAMPLEHOLD_f.prototype.set = function SAMPLEHOLD_f() { this.x = arg1; diff --git a/js/Linear/SOM_f.js b/js/Linear/SOM_f.js index 1efd0e09..274f300c 100644 --- a/js/Linear/SOM_f.js +++ b/js/Linear/SOM_f.js @@ -18,6 +18,9 @@ function SOM_f() { return this.x; } SOM_f.prototype.get = function SOM_f() { + var options = { + } + return options; } SOM_f.prototype.set = function SOM_f() { this.x = arg1; diff --git a/js/Linear/SUMMATION.js b/js/Linear/SUMMATION.js index e74f50c7..8ec89285 100644 --- a/js/Linear/SUMMATION.js +++ b/js/Linear/SUMMATION.js @@ -20,6 +20,12 @@ function SUMMATION() { return this.x; } SUMMATION.prototype.get = function SUMMATION() { + var options = { + Datatype:["Datatype (1=real double 2=complex 3=int32 ...)",this.Datatype], + sgn:["Number of inputs or sign vector (of +1, -1)",this.sgn], + satur:["Do on Overflow(0=Nothing 1=Saturate 2=Error)",this.satur], + } + return options; } SUMMATION.prototype.set = function SUMMATION() { this.Datatype = parseFloat((arguments[0]["Datatype"])) diff --git a/js/Linear/SUM_f.js b/js/Linear/SUM_f.js index edff7191..c4d18b7e 100644 --- a/js/Linear/SUM_f.js +++ b/js/Linear/SUM_f.js @@ -16,6 +16,9 @@ function SUM_f() { return this.x; } SUM_f.prototype.get = function SUM_f() { + var options = { + } + return options; } SUM_f.prototype.set = function SUM_f() { this.x = arg1; diff --git a/js/Linear/TCLSS.js b/js/Linear/TCLSS.js index 6f2a13d3..2038fc8f 100644 --- a/js/Linear/TCLSS.js +++ b/js/Linear/TCLSS.js @@ -27,6 +27,14 @@ function TCLSS() { return this.x; } TCLSS.prototype.get = function TCLSS() { + var options = { + A:["A matrix",this.A], + B:["B matrix",this.B], + C:["C matrix",this.C], + D:["D matrix",this.D], + x0:["Initial state",this.x0], + } + return options; } TCLSS.prototype.set = function TCLSS() { this.A = parseFloat((arguments[0]["A"])) diff --git a/js/Linear/TCLSS_f.js b/js/Linear/TCLSS_f.js index dff30f43..e34653c0 100644 --- a/js/Linear/TCLSS_f.js +++ b/js/Linear/TCLSS_f.js @@ -27,6 +27,14 @@ function TCLSS_f() { return this.x; } TCLSS_f.prototype.get = function TCLSS_f() { + var options = { + A:["A matrix",this.A], + B:["B matrix",this.B], + C:["C matrix",this.C], + D:["D matrix",this.D], + x0:["Initial state",this.x0], + } + return options; } TCLSS_f.prototype.set = function TCLSS_f() { this.A = parseFloat((arguments[0]["A"])) diff --git a/js/Linear/TIME_DELAY.js b/js/Linear/TIME_DELAY.js index ebff788e..d62c8ae4 100644 --- a/js/Linear/TIME_DELAY.js +++ b/js/Linear/TIME_DELAY.js @@ -22,6 +22,12 @@ function TIME_DELAY() { return this.x; } TIME_DELAY.prototype.get = function TIME_DELAY() { + var options = { + T:["Delay",this.T], + init:["initial input",this.init], + N:["Buffer size",this.N], + } + return options; } TIME_DELAY.prototype.set = function TIME_DELAY() { this.T = parseFloat((arguments[0]["T"])) diff --git a/js/Linear/VARIABLE_DELAY.js b/js/Linear/VARIABLE_DELAY.js index 09877c69..8c262a84 100644 --- a/js/Linear/VARIABLE_DELAY.js +++ b/js/Linear/VARIABLE_DELAY.js @@ -22,6 +22,12 @@ function VARIABLE_DELAY() { return this.x; } VARIABLE_DELAY.prototype.get = function VARIABLE_DELAY() { + var options = { + T:["Max delay",this.T], + init:["initial input",this.init], + N:["Buffer size",this.N], + } + return options; } VARIABLE_DELAY.prototype.set = function VARIABLE_DELAY() { this.T = parseFloat((arguments[0]["T"])) |