diff options
author | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-02 22:51:03 +0530 |
commit | ca1a67f78f7de40a7956c69e41f4ddae2542f4f2 (patch) | |
tree | 6a07bd0428e542567726ff7325fcb71203ad6d15 | |
parent | 5ea6bd919623bb0dd58f235329b985b2bb6cb4ba (diff) | |
download | sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.gz sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.tar.bz2 sci2js-ca1a67f78f7de40a7956c69e41f4ddae2542f4f2.zip |
add options block
272 files changed, 2980 insertions, 5 deletions
diff --git a/combined.js b/combined.js index 476d7a42..d8441b10 100644 --- a/combined.js +++ b/combined.js @@ -17,6 +17,9 @@ function CLKFROM() { return this.x; } CLKFROM.prototype.get = function CLKFROM() { + var options = { + } + return options; } CLKFROM.prototype.set = function CLKFROM() { this.tag = parseFloat((arguments[0]["tag"])) @@ -65,6 +68,11 @@ function CLKGOTO() { return this.x; } CLKGOTO.prototype.get = function CLKGOTO() { + var options = { + tag:["Tag",this.tag], + tagvis:["Tag Visibility (1=Local 2=Scoped 3=Global)",this.tagvis], + } + return options; } CLKGOTO.prototype.set = function CLKGOTO() { this.tag = parseFloat((arguments[0]["tag"])) @@ -127,6 +135,10 @@ function CLKGotoTagVisibility() { return this.x; } CLKGotoTagVisibility.prototype.get = function CLKGotoTagVisibility() { + var options = { + tag:["GotoTag",this.tag], + } + return options; } CLKGotoTagVisibility.prototype.set = function CLKGotoTagVisibility() { this.tag = parseFloat((arguments[0]["tag"])) @@ -176,6 +188,10 @@ function DEMUX() { return this.x; } DEMUX.prototype.get = function DEMUX() { + var options = { + out:["number of output ports or vector of sizes",this.out], + } + return options; } DEMUX.prototype.set = function DEMUX() { this.out = parseFloat((arguments[0]["out"])) @@ -243,6 +259,10 @@ function DEMUX_f() { return this.x; } DEMUX_f.prototype.get = function DEMUX_f() { + var options = { + out:["number of output ports or vector of sizes",this.out], + } + return options; } DEMUX_f.prototype.set = function DEMUX_f() { this.out = parseFloat((arguments[0]["out"])) @@ -314,6 +334,12 @@ function ESELECT_f() { return this.x; } ESELECT_f.prototype.get = function ESELECT_f() { + var options = { + out:["number of output event ports",this.out], + inh:["Inherit (1: no, 0: yes)",this.inh], + nmod:["zero-crossing (0: no, 1: yes)",this.nmod], + } + return options; } ESELECT_f.prototype.set = function ESELECT_f() { this.out = parseFloat((arguments[0]["out"])) @@ -382,6 +408,10 @@ function EXTRACTOR() { return this.x; } EXTRACTOR.prototype.get = function EXTRACTOR() { + var options = { + ind:["indices to extract",this.ind], + } + return options; } EXTRACTOR.prototype.set = function EXTRACTOR() { this.ind = parseFloat((arguments[0]["ind"])) @@ -433,6 +463,10 @@ function FROM() { return this.x; } FROM.prototype.get = function FROM() { + var options = { + tag:["Tag",this.tag], + } + return options; } FROM.prototype.set = function FROM() { this.tag = parseFloat((arguments[0]["tag"])) @@ -489,6 +523,10 @@ function FROMMO() { return this.x; } FROMMO.prototype.get = function FROMMO() { + var options = { + tag:["Tag",this.tag], + } + return options; } FROMMO.prototype.set = function FROMMO() { this.tag = parseFloat((arguments[0]["tag"])) @@ -542,6 +580,11 @@ function GOTO() { return this.x; } GOTO.prototype.get = function GOTO() { + var options = { + tag:["Tag",this.tag], + tagvis:["Tag Visibility(1=Local 2=scoped 3= global)",this.tagvis], + } + return options; } GOTO.prototype.set = function GOTO() { this.tag = parseFloat((arguments[0]["tag"])) @@ -606,6 +649,11 @@ function GOTOMO() { return this.x; } GOTOMO.prototype.get = function GOTOMO() { + var options = { + tag:["Tag",this.tag], + tagvis:["Tag Visibility(1=Local 2=scoped 3= global)",this.tagvis], + } + return options; } GOTOMO.prototype.set = function GOTOMO() { this.tag = parseFloat((arguments[0]["tag"])) @@ -667,6 +715,10 @@ function GotoTagVisibility() { return this.x; } GotoTagVisibility.prototype.get = function GotoTagVisibility() { + var options = { + tag:["GotoTag",this.tag], + } + return options; } GotoTagVisibility.prototype.set = function GotoTagVisibility() { this.tag = parseFloat((arguments[0]["tag"])) @@ -720,6 +772,10 @@ function GotoTagVisibilityMO() { return this.x; } GotoTagVisibilityMO.prototype.get = function GotoTagVisibilityMO() { + var options = { + tag:["GotoTag",this.tag], + } + return options; } GotoTagVisibilityMO.prototype.set = function GotoTagVisibilityMO() { this.tag = parseFloat((arguments[0]["tag"])) @@ -771,6 +827,11 @@ function ISELECT_f() { return this.x; } ISELECT_f.prototype.get = function ISELECT_f() { + var options = { + nout:["number of outputs",this.nout], + z0:["initial connected output",this.z0], + } + return options; } ISELECT_f.prototype.set = function ISELECT_f() { this.nout = parseFloat((arguments[0]["nout"])) @@ -831,6 +892,12 @@ function ISELECT_m() { return this.x; } ISELECT_m.prototype.get = function ISELECT_m() { + var options = { + typ:["Datatype(1= real double 2=Complex 3=int32 ...)",this.typ], + nout:["number of outputs",this.nout], + z0:["initial connected output",this.z0], + } + return options; } ISELECT_m.prototype.set = function ISELECT_m() { this.typ = parseFloat((arguments[0]["typ"])) @@ -890,6 +957,9 @@ function MUX() { return this.x; } MUX.prototype.get = function MUX() { + var options = { + } + return options; } MUX.prototype.set = function MUX() { this.in1 = parseFloat((arguments[0]["in1"])) @@ -956,6 +1026,9 @@ function MUX_f() { return this.x; } MUX_f.prototype.get = function MUX_f() { + var options = { + } + return options; } MUX_f.prototype.set = function MUX_f() { this.in1 = parseFloat((arguments[0]["in1"])) @@ -1024,6 +1097,12 @@ function M_SWITCH() { return this.x; } M_SWITCH.prototype.get = function M_SWITCH() { + var options = { + nin:["number of inputs",this.nin], + base:["zero base indexing (0), otherwise 1",this.base], + rule:["rounding rule: int (0), round (1), ceil (2), floor (3)",this.rule], + } + return options; } M_SWITCH.prototype.set = function M_SWITCH() { this.nin = parseFloat((arguments[0]["nin"])) @@ -1091,6 +1170,10 @@ function NRMSOM_f() { return this.x; } NRMSOM_f.prototype.get = function NRMSOM_f() { + var options = { + nin:["number of inputs",this.nin], + } + return options; } NRMSOM_f.prototype.set = function NRMSOM_f() { this.nin = parseFloat((arguments[0]["nin"])) @@ -1138,6 +1221,11 @@ function RELAY_f() { return this.x; } RELAY_f.prototype.get = function RELAY_f() { + var options = { + nin:["number of inputs",this.nin], + z0:["initial connected input",this.z0], + } + return options; } RELAY_f.prototype.set = function RELAY_f() { this.nin = parseFloat((arguments[0]["nin"])) @@ -1187,6 +1275,10 @@ function SCALAR2VECTOR() { return this.x; } SCALAR2VECTOR.prototype.get = function SCALAR2VECTOR() { + var options = { + nout:["size of output (-1: if don\'t know)",this.nout], + } + return options; } SCALAR2VECTOR.prototype.set = function SCALAR2VECTOR() { this.nout = parseFloat((arguments[0]["nout"])) @@ -1240,6 +1332,11 @@ function SELECT_f() { return this.x; } SELECT_f.prototype.get = function SELECT_f() { + var options = { + nin:["number of inputs",this.nin], + z0:["initial connected input",this.z0], + } + return options; } SELECT_f.prototype.set = function SELECT_f() { this.nin = parseFloat((arguments[0]["nin"])) @@ -1300,6 +1397,12 @@ function SELECT_m() { return this.x; } SELECT_m.prototype.get = function SELECT_m() { + var options = { + typ:["Datatype(1= real double 2=Complex 3=int32 ..)",this.typ], + nin:["number of inputs",this.nin], + z0:["initial connected input",this.z0], + } + return options; } SELECT_m.prototype.set = function SELECT_m() { this.typ = parseFloat((arguments[0]["typ"])) @@ -1365,6 +1468,12 @@ function SWITCH2() { return this.x; } SWITCH2.prototype.get = function SWITCH2() { + var options = { + rule:["pass first input if: u2>=a (0), u2>a (1), u2~=a (2)",this.rule], + thra:["threshold a",this.thra], + nzz:["use zero crossing: yes (1), no (0)",this.nzz], + } + return options; } SWITCH2.prototype.set = function SWITCH2() { this.rule = parseFloat((arguments[0]["rule"])) @@ -1432,6 +1541,13 @@ function SWITCH2_m() { return this.x; } SWITCH2_m.prototype.get = function SWITCH2_m() { + var options = { + ot:["Datatype (1=real double 2=complex 3=int32 ...)",this.ot], + rule:["pass first input if: u2>=a (0), u2>a (1), u2~=a (2)",this.rule], + thra:["threshold a",this.thra], + nzz:["use zero crossing: yes (1), no (0)",this.nzz], + } + return options; } SWITCH2_m.prototype.set = function SWITCH2_m() { this.ot = parseFloat((arguments[0]["ot"])) @@ -1508,6 +1624,11 @@ function SWITCH_f() { return this.x; } SWITCH_f.prototype.get = function SWITCH_f() { + var options = { + nin:["number of inputs",this.nin], + z0:["connected input",this.z0], + } + return options; } SWITCH_f.prototype.set = function SWITCH_f() { this.nin = parseFloat((arguments[0]["nin"])) @@ -1593,6 +1714,9 @@ function CCS() { return this.x; } CCS.prototype.get = function CCS() { + var options = { + } + return options; } CCS.prototype.set = function CCS() { this.x = arg1; @@ -1658,6 +1782,9 @@ function CVS() { return this.x; } CVS.prototype.get = function CVS() { + var options = { + } + return options; } CVS.prototype.set = function CVS() { this.x = arg1; @@ -1697,6 +1824,11 @@ function Capacitor() { return this.x; } Capacitor.prototype.get = function Capacitor() { + var options = { + C:["C (F)",this.C], + v:["Initial Voltage",this.v], + } + return options; } Capacitor.prototype.set = function Capacitor() { this.C = parseFloat((arguments[0]["C"])) @@ -1748,6 +1880,9 @@ function ConstantVoltage() { return this.x; } ConstantVoltage.prototype.get = function ConstantVoltage() { + var options = { + } + return options; } ConstantVoltage.prototype.set = function ConstantVoltage() { this.V = parseFloat((arguments[0]["V"])) @@ -1795,6 +1930,9 @@ function CurrentSensor() { return this.x; } CurrentSensor.prototype.get = function CurrentSensor() { + var options = { + } + return options; } CurrentSensor.prototype.set = function CurrentSensor() { this.x = arg1; @@ -1832,6 +1970,13 @@ function Diode() { return this.x; } Diode.prototype.get = function Diode() { + var options = { + Ids:["Saturation cuurent (A)",this.Ids], + Vt:["Voltage equivalent to temperature (Volt)",this.Vt], + Maxexp:["Max exponent for linear continuation",this.Maxexp], + R:["R (ohm)",this.R], + } + return options; } Diode.prototype.set = function Diode() { this.Ids = parseFloat((arguments[0]["Ids"])) @@ -1881,6 +2026,9 @@ function Ground() { return this.x; } Ground.prototype.get = function Ground() { + var options = { + } + return options; } Ground.prototype.set = function Ground() { this.x = arg1; @@ -1942,6 +2090,11 @@ function Gyrator() { return this.x; } Gyrator.prototype.get = function Gyrator() { + var options = { + G1:["G1",this.G1], + G2:["G2",this.G2], + } + return options; } Gyrator.prototype.set = function Gyrator() { this.G1 = parseFloat((arguments[0]["G1"])) @@ -2019,6 +2172,10 @@ function IdealTransformer() { return this.x; } IdealTransformer.prototype.get = function IdealTransformer() { + var options = { + N:["N",this.N], + } + return options; } IdealTransformer.prototype.set = function IdealTransformer() { this.N = parseFloat((arguments[0]["N"])) @@ -2068,6 +2225,9 @@ function Inductor() { return this.x; } Inductor.prototype.get = function Inductor() { + var options = { + } + return options; } Inductor.prototype.set = function Inductor() { this.L = parseFloat((arguments[0]["L"])) @@ -2110,6 +2270,9 @@ function MOTOR() { return this.x; } MOTOR.prototype.get = function MOTOR() { + var options = { + } + return options; } MOTOR.prototype.set = function MOTOR() { this.x = arg1; @@ -2151,6 +2314,18 @@ function NMOS() { return this.x; } NMOS.prototype.get = function NMOS() { + var options = { + W:["Width [m]",this.W], + L:["Length [m]",this.L], + Beta:["Transconductance parameter [A/(V*V)]",this.Beta], + Vt:["Zero bias threshold voltage [V]",this.Vt], + K2:["Bulk threshold parameter",this.K2], + K5:["Reduction of pinch-off region",this.K5], + dW:["Narrowing of channel [m]",this.dW], + dL:["Shortening of channel [m]",this.dL], + RDS:["Drain-Source-Resistance [Ohm]",this.RDS], + } + return options; } NMOS.prototype.set = function NMOS() { this.W = parseFloat((arguments[0]["W"])) @@ -2235,6 +2410,26 @@ function NPN() { return this.x; } NPN.prototype.get = function NPN() { + var options = { + Bf:["Bf : Forward beta",this.Bf], + Br:["Br : Reverse beta",this.Br], + Is:["Is : Transport saturation current",this.Is], + Vak:["Vak : Early voltage (inverse), 1/Volt",this.Vak], + Tauf:["Tauf: Ideal forward transit time",this.Tauf], + Taur:["Taur: Ideal reverse transit time",this.Taur], + Ccs:["Ccs : Collector-substrat(ground) cap.",this.Ccs], + Cje:["Cje : Base-emitter zero bias depletion cap.",this.Cje], + Cjc:["Cjc : Base-coll. zero bias depletion cap.",this.Cjc], + Phie:["Phie: Base-emitter diffusion voltage",this.Phie], + Me:["Me : Base-emitter gradation exponent",this.Me], + Phic:["Phic: Base-collector diffusion voltage",this.Phic], + Mc:["Mc : Base-collector gradation exponent",this.Mc], + Gbc:["Gbc : Base-collector conductance",this.Gbc], + Gbe:["Gbe : Base-emitter conductance",this.Gbe], + Vt:["Vt : Voltage equivalent of temperature",this.Vt], + EMinMax:["EMinmax: if x > EMinMax, the exp(x) is linearized",this.EMinMax], + } + return options; } NPN.prototype.set = function NPN() { this.Bf = parseFloat((arguments[0]["Bf"])) @@ -2301,6 +2496,12 @@ function OpAmp() { return this.x; } OpAmp.prototype.get = function OpAmp() { + var options = { + OLGain:["Open Loop Gain",this.OLGain], + SatH:["Positive saturation voltage",this.SatH], + SatL:["Negative saturation voltage",this.SatL], + } + return options; } OpAmp.prototype.set = function OpAmp() { this.OLGain = parseFloat((arguments[0]["OLGain"])) @@ -2359,6 +2560,18 @@ function PMOS() { return this.x; } PMOS.prototype.get = function PMOS() { + var options = { + W:["Width [m]",this.W], + L:["Length [m]",this.L], + Beta:["Transconductance parameter [A/(V*V)]",this.Beta], + Vt:["Zero bias threshold voltage [V]",this.Vt], + K2:["Bulk threshold parameter",this.K2], + K5:["Reduction of pinch-off region",this.K5], + dW:["Narrowing of channel [m]",this.dW], + dL:["Shortening of channel [m]",this.dL], + RDS:["Drain-Source-Resistance [Ohm]",this.RDS], + } + return options; } PMOS.prototype.set = function PMOS() { this.W = parseFloat((arguments[0]["W"])) @@ -2443,6 +2656,26 @@ function PNP() { return this.x; } PNP.prototype.get = function PNP() { + var options = { + Bf:["Bf : Forward beta",this.Bf], + Br:["Br : Reverse beta",this.Br], + Is:["Is : Transport saturation current",this.Is], + Vak:["Vak : Early voltage (inverse), 1/Volt",this.Vak], + Tauf:["Tauf: Ideal forward transit time",this.Tauf], + Taur:["Taur: Ideal reverse transit time",this.Taur], + Ccs:["Ccs : Collector-substrat(ground) cap.",this.Ccs], + Cje:["Cje : Base-emitter zero bias depletion cap.",this.Cje], + Cjc:["Cjc : Base-coll. zero bias depletion cap.",this.Cjc], + Phie:["Phie: Base-emitter diffusion voltage",this.Phie], + Me:["Me : Base-emitter gradation exponent",this.Me], + Phic:["Phic: Base-collector diffusion voltage",this.Phic], + Mc:["Mc : Base-collector gradation exponent",this.Mc], + Gbc:["Gbc : Base-collector conductance",this.Gbc], + Gbe:["Gbe : Base-emitter conductance",this.Gbe], + Vt:["Vt : Voltage equivalent of temperature",this.Vt], + EMinMax:["EMinMax: if x > EMinMax, the exp(x) function is linearized",this.EMinMax], + } + return options; } PNP.prototype.set = function PNP() { this.Bf = parseFloat((arguments[0]["Bf"])) @@ -2505,6 +2738,9 @@ function PotentialSensor() { return this.x; } PotentialSensor.prototype.get = function PotentialSensor() { + var options = { + } + return options; } PotentialSensor.prototype.set = function PotentialSensor() { this.x = arg1; @@ -2539,6 +2775,9 @@ function Resistor() { return this.x; } Resistor.prototype.get = function Resistor() { + var options = { + } + return options; } Resistor.prototype.set = function Resistor() { this.R = parseFloat((arguments[0]["R"])) @@ -2593,6 +2832,14 @@ function SineVoltage() { return this.x; } SineVoltage.prototype.get = function SineVoltage() { + var options = { + V:["Amplitude (Volt)",this.V], + ph:["phase (rad)",this.ph], + frq:["Frequency (Hz)",this.frq], + offset:["Voltageoffset (V)",this.offset], + start:["Timeoffset (s)",this.start], + } + return options; } SineVoltage.prototype.set = function SineVoltage() { this.V = parseFloat((arguments[0]["V"])) @@ -2650,6 +2897,11 @@ function Switch() { return this.x; } Switch.prototype.get = function Switch() { + var options = { + Ron:["Resistance in On state (Ohm)",this.Ron], + Roff:["Resistance in Off state (Ohm)",this.Roff], + } + return options; } Switch.prototype.set = function Switch() { this.Ron = parseFloat((arguments[0]["Ron"])) @@ -2701,6 +2953,10 @@ function VVsourceAC() { return this.x; } VVsourceAC.prototype.get = function VVsourceAC() { + var options = { + FR:["Frequency (Hz)",this.FR], + } + return options; } VVsourceAC.prototype.set = function VVsourceAC() { this.FR = parseFloat((arguments[0]["FR"])) @@ -2748,6 +3004,9 @@ function VariableResistor() { return this.x; } VariableResistor.prototype.get = function VariableResistor() { + var options = { + } + return options; } VariableResistor.prototype.set = function VariableResistor() { this.x = arg1; @@ -2779,6 +3038,9 @@ function VoltageSensor() { return this.x; } VoltageSensor.prototype.get = function VoltageSensor() { + var options = { + } + return options; } VoltageSensor.prototype.set = function VoltageSensor() { this.x = arg1; @@ -2814,6 +3076,11 @@ function VsourceAC() { return this.x; } VsourceAC.prototype.get = function VsourceAC() { + var options = { + VA:["Amplitude (Volt)",this.VA], + FR:["Frequency (Hz)",this.FR], + } + return options; } VsourceAC.prototype.set = function VsourceAC() { this.VA = parseFloat((arguments[0]["VA"])) @@ -2910,6 +3177,9 @@ function ANDBLK() { return this.x; } ANDBLK.prototype.get = function ANDBLK() { + var options = { + } + return options; } ANDBLK.prototype.set = function ANDBLK() { this.x = arg1; @@ -2934,6 +3204,9 @@ function ANDLOG_f() { return this.x; } ANDLOG_f.prototype.get = function ANDLOG_f() { + var options = { + } + return options; } ANDLOG_f.prototype.set = function ANDLOG_f() { this.x = arg1; @@ -2958,6 +3231,9 @@ function CLKSOMV_f() { return this.x; } CLKSOMV_f.prototype.get = function CLKSOMV_f() { + var options = { + } + return options; } CLKSOMV_f.prototype.set = function CLKSOMV_f() { this.x = arg1; @@ -2982,6 +3258,9 @@ function CLKSOM_f() { return this.x; } CLKSOM_f.prototype.get = function CLKSOM_f() { + var options = { + } + return options; } CLKSOM_f.prototype.set = function CLKSOM_f() { this.x = arg1; @@ -3005,6 +3284,9 @@ function CLKSPLIT_f() { return this.x; } CLKSPLIT_f.prototype.get = function CLKSPLIT_f() { + var options = { + } + return options; } CLKSPLIT_f.prototype.set = function CLKSPLIT_f() { this.x = arg1; @@ -3031,6 +3313,10 @@ function END_c() { return this.x; } END_c.prototype.get = function END_c() { + var options = { + tf:["Final simulation time",this.tf], + } + return options; } END_c.prototype.set = function END_c() { this.tf = parseFloat((arguments[0]["tf"])) @@ -3076,6 +3362,11 @@ function EVTDLY_c() { return this.x; } EVTDLY_c.prototype.get = function EVTDLY_c() { + var options = { + dt:["Delay",this.dt], + ff:["Date of initial output event",this.ff], + } + return options; } EVTDLY_c.prototype.set = function EVTDLY_c() { this.dt = parseFloat((arguments[0]["dt"])) @@ -3127,6 +3418,11 @@ function EVTDLY_f() { return this.x; } EVTDLY_f.prototype.get = function EVTDLY_f() { + var options = { + dt:["Delay",this.dt], + ff:["Date of initial output event",this.ff], + } + return options; } EVTDLY_f.prototype.set = function EVTDLY_f() { this.dt = parseFloat((arguments[0]["dt"])) @@ -3175,6 +3471,10 @@ function EVTGEN_f() { return this.x; } EVTGEN_f.prototype.get = function EVTGEN_f() { + var options = { + tt:["Event Time",this.tt], + } + return options; } EVTGEN_f.prototype.set = function EVTGEN_f() { this.tt = parseFloat((arguments[0]["tt"])) @@ -3219,6 +3519,9 @@ function EVTVARDLY() { return this.x; } EVTVARDLY.prototype.get = function EVTVARDLY() { + var options = { + } + return options; } EVTVARDLY.prototype.set = function EVTVARDLY() { this.fir = parseFloat((arguments[0]["fir"])) @@ -3260,6 +3563,10 @@ function HALT_f() { return this.x; } HALT_f.prototype.get = function HALT_f() { + var options = { + n:["State on halt",this.n], + } + return options; } HALT_f.prototype.set = function HALT_f() { this.n = parseFloat((arguments[0]["n"])) @@ -3307,6 +3614,11 @@ function IFTHEL_f() { return this.x; } IFTHEL_f.prototype.get = function IFTHEL_f() { + var options = { + inh:["Inherit (1: no, 0: yes)",this.inh], + nmod:["zero-crossing (0: no, 1: yes)",this.nmod], + } + return options; } IFTHEL_f.prototype.set = function IFTHEL_f() { this.inh = parseFloat((arguments[0]["inh"])) @@ -3423,6 +3735,9 @@ function MCLOCK_f() { return this.x; } MCLOCK_f.prototype.get = function MCLOCK_f() { + var options = { + } + return options; } MCLOCK_f.prototype.set = function MCLOCK_f() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { @@ -3470,6 +3785,11 @@ function MFCLCK_f() { return this.x; } MFCLCK_f.prototype.get = function MFCLCK_f() { + var options = { + dt:["basic period (1/f)",this.dt], + nn:["multiply by (n)",this.nn], + } + return options; } MFCLCK_f.prototype.set = function MFCLCK_f() { this.dt = parseFloat((arguments[0]["dt"])) @@ -3513,6 +3833,11 @@ function M_freq() { return this.x; } M_freq.prototype.get = function M_freq() { + var options = { + frequ:["Sample time",this.frequ], + offset:["Offset",this.offset], + } + return options; } M_freq.prototype.set = function M_freq() { this.frequ = parseFloat((arguments[0]["frequ"])) @@ -3579,6 +3904,9 @@ function VirtualCLK0() { return this.x; } VirtualCLK0.prototype.get = function VirtualCLK0() { + var options = { + } + return options; } VirtualCLK0.prototype.set = function VirtualCLK0() { this.x = arg1; @@ -3698,6 +4026,11 @@ function freq_div() { return this.x; } freq_div.prototype.get = function freq_div() { + var options = { + %ph:["Phase (0 to division factor -1)",%ph], + %df:["Division factor",%df], + } + return options; } freq_div.prototype.set = function freq_div() { %ph = parseFloat((arguments[0]["%ph"])) @@ -3828,6 +4161,18 @@ function Bache() { return this.x; } Bache.prototype.get = function Bache() { + var options = { + Patm:["Pression dans le ciel de la bache : Patm (Pa)",this.Patm], + A:["Section de la bache : A (m2)",this.A], + ze1:["Altitude du piquage d entrée 1: ze1 (m)",this.ze1], + ze2:["Altitude du piquage d entrée 2: ze2 (m)",this.ze2], + zs1:["Altitude du piquage de sortie 1: zs1 (m)",this.zs1], + zs2:["Altitude du piquage de sortie 2: zs2 (m)",this.zs2], + z0:["Altitude initiale du fluide : z0 (m)",this.z0], + T0:["Température initiale du fluide : T0 (K)",this.T0], + p_rho:["Si >0, masse volumique imposée du fluide : p_rho (kg/m3)",this.p_rho], + } + return options; } Bache.prototype.set = function Bache() { this.Patm = parseFloat((arguments[0]["Patm"])) @@ -3913,6 +4258,9 @@ function Flowmeter() { return this.x; } Flowmeter.prototype.get = function Flowmeter() { + var options = { + } + return options; } Flowmeter.prototype.set = function Flowmeter() { this.Qini = parseFloat((arguments[0]["Qini"])) @@ -3969,6 +4317,15 @@ function PerteDP() { return this.x; } PerteDP.prototype.get = function PerteDP() { + var options = { + L:["Longueur du tube : L (m)",this.L], + D:["Diamètre interne du tube : D (m)",this.D], + lambda:["Coefficient de perte de charge-frottement(S.U) : lambda",this.lambda], + z1:["Altitude entrée tuyauterie : z1 (m)",this.z1], + z2:["Altitude sortie tuyauterie : z2 (m)",this.z2], + p_rho:["Si >0, masse volumique imposée fu fluide : p_rho (kg/m3)",this.p_rho], + } + return options; } PerteDP.prototype.set = function PerteDP() { this.L = parseFloat((arguments[0]["L"])) @@ -4024,6 +4381,13 @@ function PuitsP() { return this.x; } PuitsP.prototype.get = function PuitsP() { + var options = { + P0:["Pression de la source : P0 (Pa)",this.P0], + T0:["Temperature de la source : T0 (K)",this.T0], + H0:["Enthalpie spécifique de la source : H0 (J/kg)",this.H0], + option_temperature:["1:température fixée - 2:enthalpie fixée : option_temperature",this.option_temperature], + } + return options; } PuitsP.prototype.set = function PuitsP() { this.P0 = parseFloat((arguments[0]["P0"])) @@ -4079,6 +4443,13 @@ function SourceP() { return this.x; } SourceP.prototype.get = function SourceP() { + var options = { + P0:["Pression de la source : P0 (Pa)",this.P0], + T0:["Temperature de la source : T0 (K)",this.T0], + H0:["Enthalpie spécifique de la source : H0 (J/kg)",this.H0], + option_temperature:["1:température fixée - 2:enthalpie fixée : option_temperature",this.option_temperature], + } + return options; } SourceP.prototype.set = function SourceP() { this.P0 = parseFloat((arguments[0]["P0"])) @@ -4135,6 +4506,11 @@ function VanneReglante() { return this.x; } VanneReglante.prototype.get = function VanneReglante() { + var options = { + Cvmax:["Cvmax",this.Cvmax], + p_rho:["p_rho",this.p_rho], + } + return options; } VanneReglante.prototype.set = function VanneReglante() { this.Cvmax = parseFloat((arguments[0]["Cvmax"])) @@ -4181,6 +4557,11 @@ function BITCLEAR() { return this.x; } BITCLEAR.prototype.get = function BITCLEAR() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + bit:["Index of Bit (0 is least significant)",this.bit], + } + return options; } BITCLEAR.prototype.set = function BITCLEAR() { this.Datatype = parseFloat((arguments[0]["Datatype"])) @@ -4272,6 +4653,11 @@ function BITSET() { return this.x; } BITSET.prototype.get = function BITSET() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + bit:["Index of Bit (0 is least significant)",this.bit], + } + return options; } BITSET.prototype.set = function BITSET() { this.Datatype = parseFloat((arguments[0]["Datatype"])) @@ -4363,6 +4749,12 @@ function CONVERT() { return this.x; } CONVERT.prototype.get = function CONVERT() { + var options = { + it:["Input Type (1:double, 3:int32, 4:int16, 5:int8, ...)",this.it], + ot:["Output Type (1:double, 3:int32, 4:int16, 5:int8, ...)",this.ot], + np:["Do on Overflow (0:Nothing, 1:Saturate, 2:Error)",this.np], + } + return options; } CONVERT.prototype.set = function CONVERT() { this.it = parseFloat((arguments[0]["it"])) @@ -4812,6 +5204,9 @@ function DFLIPFLOP() { return this.x; } DFLIPFLOP.prototype.get = function DFLIPFLOP() { + var options = { + } + return options; } DFLIPFLOP.prototype.set = function DFLIPFLOP() { this.x = arg1; @@ -4861,6 +5256,9 @@ function DLATCH() { return this.x; } DLATCH.prototype.get = function DLATCH() { + var options = { + } + return options; } DLATCH.prototype.set = function DLATCH() { this.x = arg1; @@ -4891,6 +5289,13 @@ function EXTRACTBITS() { return this.x; } EXTRACTBITS.prototype.get = function EXTRACTBITS() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + rule:["Bits to extract",this.rule], + bit:["Number of Bits or Index of Bit",this.bit], + scal:["Treat Bit Field as an Integer (0:No, 1:Yes)",this.scal], + } + return options; } EXTRACTBITS.prototype.set = function EXTRACTBITS() { this.Datatype = parseFloat((arguments[0]["Datatype"])) @@ -5128,6 +5533,11 @@ function INTMUL() { return this.x; } INTMUL.prototype.get = function INTMUL() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + np:["Do on Overflow (0:Nothing, 1:Saturate, 2:Error)",this.np], + } + return options; } INTMUL.prototype.set = function INTMUL() { this.Datatype = parseFloat((arguments[0]["Datatype"])) @@ -5268,6 +5678,9 @@ function JKFLIPFLOP() { return this.x; } JKFLIPFLOP.prototype.get = function JKFLIPFLOP() { + var options = { + } + return options; } JKFLIPFLOP.prototype.set = function JKFLIPFLOP() { this.init = parseFloat((arguments[0]["init"])) @@ -5339,6 +5752,11 @@ function LOGIC() { return this.x; } LOGIC.prototype.get = function LOGIC() { + var options = { + mat:["Truth Table (matrix of outputs)",this.mat], + herit:["Accepts Inherited Events (0:No, 1:Yes)",this.herit], + } + return options; } LOGIC.prototype.set = function LOGIC() { this.mat = parseFloat((arguments[0]["mat"])) @@ -5410,6 +5828,12 @@ function SHIFT() { return this.x; } SHIFT.prototype.get = function SHIFT() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + nb:["Number of Bits to Shift Left (Negative number to shift right)",this.nb], + np:["Shift Type (0:Arithmetic, 1:Circular)",this.np], + } + return options; } SHIFT.prototype.set = function SHIFT() { this.Datatype = parseFloat((arguments[0]["Datatype"])) @@ -5549,6 +5973,9 @@ function SRFLIPFLOP() { return this.x; } SRFLIPFLOP.prototype.get = function SRFLIPFLOP() { + var options = { + } + return options; } SRFLIPFLOP.prototype.set = function SRFLIPFLOP() { this.init = parseFloat((arguments[0]["init"])) @@ -5614,6 +6041,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"])) @@ -5657,6 +6087,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; @@ -5688,6 +6121,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"])) @@ -5766,6 +6204,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"])) @@ -5846,6 +6289,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"])) @@ -5941,6 +6392,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"])) @@ -6026,6 +6485,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"])) @@ -6138,6 +6603,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"])) @@ -6218,6 +6688,9 @@ function DERIV() { return this.x; } DERIV.prototype.get = function DERIV() { + var options = { + } + return options; } DERIV.prototype.set = function DERIV() { this.x = arg1; @@ -6244,6 +6717,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"])) @@ -6310,6 +6788,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"])) @@ -6387,6 +6870,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"])) @@ -6464,6 +6952,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"])) @@ -6558,6 +7054,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"])) @@ -6639,6 +7143,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"])) @@ -6734,6 +7243,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"])) @@ -6794,6 +7308,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"])) @@ -6892,6 +7411,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"])) @@ -7040,6 +7564,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"])) @@ -7091,6 +7619,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"])) @@ -7144,6 +7676,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"])) @@ -7228,6 +7768,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"])) @@ -7275,6 +7818,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"])) @@ -7426,6 +7977,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"])) @@ -7525,6 +8082,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"])) @@ -7611,6 +8173,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"])) @@ -7657,6 +8222,9 @@ function SAMPHOLD() { return this.x; } SAMPHOLD.prototype.get = function SAMPHOLD() { + var options = { + } + return options; } SAMPHOLD.prototype.set = function SAMPHOLD() { this.x = arg1; @@ -7687,6 +8255,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"])) @@ -7738,6 +8310,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; @@ -7765,6 +8340,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; @@ -7810,6 +8388,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"])) @@ -7949,6 +8533,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; @@ -7984,6 +8571,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"])) @@ -8076,6 +8671,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"])) @@ -8163,6 +8766,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"])) @@ -8226,6 +8835,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"])) @@ -8295,6 +8910,11 @@ function CUMSUM() { return this.x; } CUMSUM.prototype.get = function CUMSUM() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["Sum along (0=the first non singleton dimension 1=Rows 2=Columns)",this.decomptyp], + } + return options; } CUMSUM.prototype.set = function CUMSUM() { this.typ = parseFloat((arguments[0]["typ"])) @@ -8395,6 +9015,12 @@ function EXTRACT() { return this.x; } EXTRACT.prototype.get = function EXTRACT() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + a:["Lines to extract",this.a], + b:["Columns to extract",this.b], + } + return options; } EXTRACT.prototype.set = function EXTRACT() { this.typ = parseFloat((arguments[0]["typ"])) @@ -8493,6 +9119,11 @@ function EXTTRI() { return this.x; } EXTTRI.prototype.get = function EXTTRI() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["extraction type (1=lower 2=upper 3=diagonal)",this.decomptyp], + } + return options; } EXTTRI.prototype.set = function EXTTRI() { this.typ = parseFloat((arguments[0]["typ"])) @@ -8590,6 +9221,10 @@ function MATBKSL() { return this.x; } MATBKSL.prototype.get = function MATBKSL() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + } + return options; } MATBKSL.prototype.set = function MATBKSL() { this.typ = parseFloat((arguments[0]["typ"])) @@ -8665,6 +9300,10 @@ function MATCATH() { return this.x; } MATCATH.prototype.get = function MATCATH() { + var options = { + nin:["Number of input",this.nin], + } + return options; } MATCATH.prototype.set = function MATCATH() { this.nin = parseFloat((arguments[0]["nin"])) @@ -8732,6 +9371,10 @@ function MATCATV() { return this.x; } MATCATV.prototype.get = function MATCATV() { + var options = { + nin:["Number od inputs",this.nin], + } + return options; } MATCATV.prototype.set = function MATCATV() { this.nin = parseFloat((arguments[0]["nin"])) @@ -8798,6 +9441,10 @@ function MATDET() { return this.x; } MATDET.prototype.get = function MATDET() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATDET.prototype.set = function MATDET() { this.typ = parseFloat((arguments[0]["typ"])) @@ -8873,6 +9520,10 @@ function MATDIAG() { return this.x; } MATDIAG.prototype.get = function MATDIAG() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + } + return options; } MATDIAG.prototype.set = function MATDIAG() { this.typ = parseFloat((arguments[0]["typ"])) @@ -8948,6 +9599,10 @@ function MATDIV() { return this.x; } MATDIV.prototype.get = function MATDIV() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATDIV.prototype.set = function MATDIV() { this.typ = parseFloat((arguments[0]["typ"])) @@ -9023,6 +9678,11 @@ function MATEIG() { return this.x; } MATEIG.prototype.get = function MATEIG() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["decomposition type (1=eig values 2=eig values+eig vectors",this.decomptyp], + } + return options; } MATEIG.prototype.set = function MATEIG() { this.typ = parseFloat((arguments[0]["typ"])) @@ -9121,6 +9781,10 @@ function MATEXPM() { return this.x; } MATEXPM.prototype.get = function MATEXPM() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATEXPM.prototype.set = function MATEXPM() { this.typ = parseFloat((arguments[0]["typ"])) @@ -9196,6 +9860,10 @@ function MATINV() { return this.x; } MATINV.prototype.get = function MATINV() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATINV.prototype.set = function MATINV() { this.typ = parseFloat((arguments[0]["typ"])) @@ -9271,6 +9939,10 @@ function MATLU() { return this.x; } MATLU.prototype.get = function MATLU() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATLU.prototype.set = function MATLU() { this.typ = parseFloat((arguments[0]["typ"])) @@ -9345,6 +10017,10 @@ function MATMAGPHI() { return this.x; } MATMAGPHI.prototype.get = function MATMAGPHI() { + var options = { + decomptyp:["decomposition type (1=Complex2MAG&PHI 2=MAG&PHI2Complex)",this.decomptyp], + } + return options; } MATMAGPHI.prototype.set = function MATMAGPHI() { this.decomptyp = parseFloat((arguments[0]["decomptyp"])) @@ -9414,6 +10090,12 @@ function MATMUL() { return this.x; } MATMUL.prototype.get = function MATMUL() { + var options = { + dtype:["Datatype(1=real double 2=Complex 3=int32 ...)",this.dtype], + rule:["Multiplication rule",this.rule], + np:["Do on Overflow(0=Nothing 1=Saturate 2=Error)",this.np], + } + return options; } MATMUL.prototype.set = function MATMUL() { this.dtype = parseFloat((arguments[0]["dtype"])) @@ -9582,6 +10264,10 @@ function MATPINV() { return this.x; } MATPINV.prototype.get = function MATPINV() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATPINV.prototype.set = function MATPINV() { this.typ = parseFloat((arguments[0]["typ"])) @@ -9657,6 +10343,12 @@ function MATRESH() { return this.x; } MATRESH.prototype.get = function MATRESH() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + l1:["input size",this.l1], + out:["output size desired",this.out], + } + return options; } MATRESH.prototype.set = function MATRESH() { this.typ = parseFloat((arguments[0]["typ"])) @@ -9760,6 +10452,11 @@ function MATSING() { return this.x; } MATSING.prototype.get = function MATSING() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["decomposition type (1=singular values 2=sing values+matrix U & V)",this.decomptyp], + } + return options; } MATSING.prototype.set = function MATSING() { this.typ = parseFloat((arguments[0]["typ"])) @@ -9861,6 +10558,11 @@ function MATSUM() { return this.x; } MATSUM.prototype.get = function MATSUM() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["Sum along (0=all 1=lines 2=Columns)",this.decomptyp], + } + return options; } MATSUM.prototype.set = function MATSUM() { this.typ = parseFloat((arguments[0]["typ"])) @@ -9951,6 +10653,11 @@ function MATTRAN() { return this.x; } MATTRAN.prototype.get = function MATTRAN() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + rule:["rule (1=.\' 2=\')",this.rule], + } + return options; } MATTRAN.prototype.set = function MATTRAN() { this.typ = parseFloat((arguments[0]["typ"])) @@ -10031,6 +10738,9 @@ function MATZCONJ() { return this.x; } MATZCONJ.prototype.get = function MATZCONJ() { + var options = { + } + return options; } MATZCONJ.prototype.set = function MATZCONJ() { this.x = arg1; @@ -10068,6 +10778,10 @@ function MATZREIM() { return this.x; } MATZREIM.prototype.get = function MATZREIM() { + var options = { + decomptyp:["decomposition type (1=Complex2Real&Imag 2=Real&Imag2Complex)",this.decomptyp], + } + return options; } MATZREIM.prototype.set = function MATZREIM() { this.decomptyp = parseFloat((arguments[0]["decomptyp"])) @@ -10148,6 +10862,11 @@ function RICC() { return this.x; } RICC.prototype.get = function RICC() { + var options = { + tpe:["Type (1=Cont 2=Disc)",this.tpe], + mod:["Model(1=Schr 2=sign(cont) inv(disc))",this.mod], + } + return options; } RICC.prototype.set = function RICC() { this.tpe = parseFloat((arguments[0]["tpe"])) @@ -10213,6 +10932,11 @@ function ROOTCOEF() { return this.x; } ROOTCOEF.prototype.get = function ROOTCOEF() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + inp:["input row size",this.inp], + } + return options; } ROOTCOEF.prototype.set = function ROOTCOEF() { this.typ = parseFloat((arguments[0]["typ"])) @@ -10279,6 +11003,10 @@ function SQRT() { return this.x; } SQRT.prototype.get = function SQRT() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } SQRT.prototype.set = function SQRT() { this.typ = parseFloat((arguments[0]["typ"])) @@ -10349,6 +11077,15 @@ function SUBMAT() { return this.x; } SUBMAT.prototype.get = function SUBMAT() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + a:["Starting Row Index",this.a], + b:["Ending Row Index",this.b], + c:["Starting Column Index",this.c], + d:["Ending Column Index",this.d], + inp:["Input Dimensions",this.inp], + } + return options; } SUBMAT.prototype.set = function SUBMAT() { this.typ = parseFloat((arguments[0]["typ"])) @@ -10452,6 +11189,9 @@ function AUTOMAT() { return this.x; } AUTOMAT.prototype.get = function AUTOMAT() { + var options = { + } + return options; } AUTOMAT.prototype.set = function AUTOMAT() { this.x = arg1; @@ -10576,6 +11316,12 @@ function BACKLASH() { return this.x; } BACKLASH.prototype.get = function BACKLASH() { + var options = { + ini:["initial output",this.ini], + gap:["gap",this.gap], + zcr:["use zero-crossing (0:no, 1:yes)",this.zcr], + } + return options; } BACKLASH.prototype.set = function BACKLASH() { this.ini = parseFloat((arguments[0]["ini"])) @@ -10653,6 +11399,18 @@ function BOUNCE() { return this.x; } BOUNCE.prototype.get = function BOUNCE() { + var options = { + rpar1:["Mass",this.rpar1], + rpar2:["Radius",this.rpar2], + walls:["[xmin,xmax,ymin,ymax]",this.walls], + xt:["xpos",this.xt], + xd:["xdpos",this.xd], + y:["ypos",this.y], + yd:["ydpos",this.yd], + g:["g (gravity)",this.g], + C:["C (aerodynamic coeff",this.C], + } + return options; } BOUNCE.prototype.set = function BOUNCE() { this.rpar1 = parseFloat((arguments[0]["rpar1"])) @@ -10769,6 +11527,17 @@ function BOUNCEXY() { return this.x; } BOUNCEXY.prototype.get = function BOUNCEXY() { + var options = { + clrs:["colors",this.clrs], + siz:["radii",this.siz], + win:["window number (-1 for automatic)",this.win], + imode:["animation mode (0,1)",this.imode], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + } + return options; } BOUNCEXY.prototype.set = function BOUNCEXY() { this.clrs = parseFloat((arguments[0]["clrs"])) @@ -10859,6 +11628,16 @@ function BPLATFORM() { return this.x; } BPLATFORM.prototype.get = function BPLATFORM() { + var options = { + plen:["pendulum length",this.plen], + csiz:["cart size (square side)",this.csiz], + phi:["slope",this.phi], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + } + return options; } BPLATFORM.prototype.set = function BPLATFORM() { this.plen = parseFloat((arguments[0]["plen"])) @@ -10943,6 +11722,23 @@ function CBLOCK() { return this.x; } CBLOCK.prototype.get = function CBLOCK() { + var options = { + function_name:["simulation function",this.function_name], + impli:["is block implicit? (y,n)",this.impli], + i:["input ports sizes",this.i], + o:["output ports sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + ng:["number of zero crossing surfaces",this.ng], + z:["initial discrete state",this.z], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + depu:["direct feedthrough (y or n)",this.depu], + dept:["time dependence (y or n)",this.dept], + } + return options; } CBLOCK.prototype.set = function CBLOCK() { this.function_name = parseFloat((arguments[0]["function_name"])) @@ -11073,6 +11869,28 @@ function CBLOCK4() { return this.x; } CBLOCK4.prototype.get = function CBLOCK4() { + var options = { + function_name:["Simulation function",this.function_name], + impli:["Is block implicit? (y,n)",this.impli], + in1:["Input ports sizes",this.in1], + it:["Input ports type",this.it], + out:["Output port sizes",this.out], + ot:["Output ports type",this.ot], + ci:["Input event ports sizes",this.ci], + co:["Output events ports sizes",this.co], + xx:["Initial continuous state",this.xx], + z:["Initial discrete state",this.z], + oz:["Initial object state",this.oz], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + opar:["Object parameters list",this.opar], + nmode:["Number of modes",this.nmode], + nzcr:["Number of zero crossings",this.nzcr], + auto0:["Initial firing vector (<0 for no firing)",this.auto0], + depu:["Direct feedthrough (y or n)",this.depu], + dept:["Time dependence (y or n)",this.dept], + } + return options; } CBLOCK4.prototype.set = function CBLOCK4() { this.function_name = parseFloat((arguments[0]["function_name"])) @@ -11207,6 +12025,12 @@ function CONSTRAINT2_c() { return this.x; } CONSTRAINT2_c.prototype.get = function CONSTRAINT2_c() { + var options = { + x0:["Initial guess values of states x",this.x0], + xd0:["Initial guess values of derivative x\'",this.xd0], + id:["Id(i)=1: if x\'(i) is present in the feedback, else Id(i)=0",this.id], + } + return options; } CONSTRAINT2_c.prototype.set = function CONSTRAINT2_c() { this.x0 = parseFloat((arguments[0]["x0"])) @@ -11283,6 +12107,9 @@ function CONSTRAINT_c() { return this.x; } CONSTRAINT_c.prototype.get = function CONSTRAINT_c() { + var options = { + } + return options; } CONSTRAINT_c.prototype.set = function CONSTRAINT_c() { this.x0 = parseFloat((arguments[0]["x0"])) @@ -11340,6 +12167,12 @@ function DEADBAND() { return this.x; } DEADBAND.prototype.get = function DEADBAND() { + var options = { + maxp:["End of dead band",this.maxp], + minp:["Start of dead band",this.minp], + zeroc:["zero crossing (0:no, 1:yes)",this.zeroc], + } + return options; } DEADBAND.prototype.set = function DEADBAND() { this.maxp = parseFloat((arguments[0]["maxp"])) @@ -11390,6 +12223,9 @@ function DEBUG() { return this.x; } DEBUG.prototype.get = function DEBUG() { + var options = { + } + return options; } DEBUG.prototype.set = function DEBUG() { this.x = arg1; @@ -11436,6 +12272,9 @@ function DEBUG_SCICOS() { return this.x; } DEBUG_SCICOS.prototype.get = function DEBUG_SCICOS() { + var options = { + } + return options; } DEBUG_SCICOS.prototype.set = function DEBUG_SCICOS() { arg1.gui = "DEBUG"; @@ -11463,6 +12302,11 @@ function DIFF_f() { return this.x; } DIFF_f.prototype.get = function DIFF_f() { + var options = { + x0:["Initial state",this.x0], + xd0:["Initial Derivative",this.xd0], + } + return options; } DIFF_f.prototype.set = function DIFF_f() { this.x0 = parseFloat((arguments[0]["x0"])) @@ -11495,6 +12339,9 @@ function DSUPER() { return this.x; } DSUPER.prototype.get = function DSUPER() { + var options = { + } + return options; } DSUPER.prototype.set = function DSUPER() { y = this.needcompile; @@ -11562,6 +12409,10 @@ function EDGETRIGGER() { return this.x; } EDGETRIGGER.prototype.get = function EDGETRIGGER() { + var options = { + edge:["rising (1), falling (-1), both (0)",this.edge], + } + return options; } EDGETRIGGER.prototype.set = function EDGETRIGGER() { this.edge = parseFloat((arguments[0]["edge"])) @@ -11670,6 +12521,9 @@ function EDGE_TRIGGER() { return this.x; } EDGE_TRIGGER.prototype.get = function EDGE_TRIGGER() { + var options = { + } + return options; } EDGE_TRIGGER.prototype.set = function EDGE_TRIGGER() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { @@ -11757,6 +12611,9 @@ function ENDBLK() { return this.x; } ENDBLK.prototype.get = function ENDBLK() { + var options = { + } + return options; } ENDBLK.prototype.set = function ENDBLK() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { @@ -11921,6 +12778,9 @@ function Extract_Activation() { return this.x; } Extract_Activation.prototype.get = function Extract_Activation() { + var options = { + } + return options; } Extract_Activation.prototype.set = function Extract_Activation() { this.x = arg1; @@ -11952,6 +12812,14 @@ function HYSTHERESIS() { return this.x; } HYSTHERESIS.prototype.get = function HYSTHERESIS() { + var options = { + high_lim:["switch on at",this.high_lim], + low_lim:["switch off at",this.low_lim], + out_high:["output when on",this.out_high], + out_low:["output when off",this.out_low], + nzz:["use zero crossing: yes (1), no (0)",this.nzz], + } + return options; } HYSTHERESIS.prototype.set = function HYSTHERESIS() { this.high_lim = parseFloat((arguments[0]["high_lim"])) @@ -12006,6 +12874,9 @@ function IMPSPLIT_f() { return this.x; } IMPSPLIT_f.prototype.get = function IMPSPLIT_f() { + var options = { + } + return options; } IMPSPLIT_f.prototype.set = function IMPSPLIT_f() { this.x = arg1; @@ -12034,6 +12905,13 @@ function LOGICAL_OP() { return this.x; } LOGICAL_OP.prototype.get = function LOGICAL_OP() { + var options = { + nin:["number of inputs",this.nin], + rule:["Operator: AND (0), OR (1), NAND (2), NOR (3), XOR (4), NOT (5)",this.rule], + Datatype:["Datatype (1=double 3=int32 ...)",this.Datatype], + tp:["Bitwise Rule(0=No 1=yes)",this.tp], + } + return options; } LOGICAL_OP.prototype.set = function LOGICAL_OP() { this.nin = parseFloat((arguments[0]["nin"])) @@ -12169,6 +13047,16 @@ function MBLOCK() { return this.x; } MBLOCK.prototype.get = function MBLOCK() { + var options = { + Tin:["Input variables: ",this.Tin], + Tintype:["Input variables types: ",this.Tintype], + Tout:["Output variables: ",this.Tout], + Touttype:["Output variables types:",this.Touttype], + Tparam:["Parameters in Modelica:",this.Tparam], + pprop:["Parameters properties: ",this.pprop], + Tfunam:["Function name: ",this.Tfunam], + } + return options; } MBLOCK.prototype.set = function MBLOCK() { this.Tin = parseFloat((arguments[0]["Tin"])) @@ -12438,6 +13326,11 @@ function MEMORY_f() { return this.x; } MEMORY_f.prototype.get = function MEMORY_f() { + var options = { + a:["initial condition",this.a], + inh:["Inherit (1: no, 0: yes)",this.inh], + } + return options; } MEMORY_f.prototype.set = function MEMORY_f() { this.a = parseFloat((arguments[0]["a"])) @@ -12514,6 +13407,9 @@ function MPBLOCK() { return this.x; } MPBLOCK.prototype.get = function MPBLOCK() { + var options = { + } + return options; } MPBLOCK.prototype.set = function MPBLOCK() { this.x = arg1; @@ -12765,6 +13661,9 @@ function PAL_f() { return this.x; } PAL_f.prototype.get = function PAL_f() { + var options = { + } + return options; } PAL_f.prototype.set = function PAL_f() { [this.x,newparameters,needcompile,edited] = scicos(arg1.model.rpar); @@ -12804,6 +13703,16 @@ function PENDULUM_ANIM() { return this.x; } PENDULUM_ANIM.prototype.get = function PENDULUM_ANIM() { + var options = { + plen:["pendulum length",this.plen], + csiz:["cart size (square side)",this.csiz], + phi:["slope",this.phi], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + } + return options; } PENDULUM_ANIM.prototype.set = function PENDULUM_ANIM() { this.plen = parseFloat((arguments[0]["plen"])) @@ -12872,6 +13781,11 @@ function RATELIMITER() { return this.x; } RATELIMITER.prototype.get = function RATELIMITER() { + var options = { + maxp:["max slope",this.maxp], + minp:["min slope",this.minp], + } + return options; } RATELIMITER.prototype.set = function RATELIMITER() { this.maxp = parseFloat((arguments[0]["maxp"])) @@ -12921,6 +13835,12 @@ function RELATIONALOP() { return this.x; } RELATIONALOP.prototype.get = function RELATIONALOP() { + var options = { + rule:["Operator: == (0), ~= (1), < (2), <= (3), > (4), >= (5)",this.rule], + zcr:["Use zero crossing (no: 0), (yes: 1)",this.zcr], + Datatype:["Datatype (1=double 3=int32 ...)",this.Datatype], + } + return options; } RELATIONALOP.prototype.set = function RELATIONALOP() { this.rule = parseFloat((arguments[0]["rule"])) @@ -13014,6 +13934,9 @@ function SPLIT_f() { return this.x; } SPLIT_f.prototype.get = function SPLIT_f() { + var options = { + } + return options; } SPLIT_f.prototype.set = function SPLIT_f() { this.x = arg1; @@ -13048,6 +13971,9 @@ function SUPER_f() { return this.x; } SUPER_f.prototype.get = function SUPER_f() { + var options = { + } + return options; } SUPER_f.prototype.set = function SUPER_f() { xcos(arg1.model.rpar); @@ -13075,6 +14001,12 @@ function TEXT_f() { return this.x; } TEXT_f.prototype.get = function TEXT_f() { + var options = { + txt:["Text",this.txt], + font:["Font number",this.font], + siz:["Font size",this.siz], + } + return options; } TEXT_f.prototype.set = function TEXT_f() { this.txt = parseFloat((arguments[0]["txt"])) @@ -13161,6 +14093,13 @@ function c_block() { return this.x; } c_block.prototype.get = function c_block() { + var options = { + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + rpar:["System parameters vector",this.rpar], + funam:["function name",this.funam], + } + return options; } c_block.prototype.set = function c_block() { this.i = parseFloat((arguments[0]["i"])) @@ -13234,6 +14173,13 @@ function fortran_block() { return this.x; } fortran_block.prototype.get = function fortran_block() { + var options = { + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + rpar:["System parameters vector",this.rpar], + funam:["function name",this.funam], + } + return options; } fortran_block.prototype.set = function fortran_block() { this.i = parseFloat((arguments[0]["i"])) @@ -13299,6 +14245,9 @@ function func_block() { return this.x; } func_block.prototype.get = function func_block() { + var options = { + } + return options; } func_block.prototype.set = function func_block() { model = arg1.model; @@ -13343,6 +14292,22 @@ function generic_block() { return this.x; } generic_block.prototype.get = function generic_block() { + var options = { + function_name:["simulation function",this.function_name], + funtyp:["function type (0,1,2,..)",this.funtyp], + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + z:["initial discrete state",this.z], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + depu:["direct feedthrough (y or n)",this.depu], + dept:["time dependence (y or n)",this.dept], + } + return options; } generic_block.prototype.set = function generic_block() { this.function_name = parseFloat((arguments[0]["function_name"])) @@ -13457,6 +14422,24 @@ function generic_block2() { return this.x; } generic_block2.prototype.get = function generic_block2() { + var options = { + function_name:["simulation function",this.function_name], + funtyp:["function type (0,1,2,..)",this.funtyp], + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + z:["initial discrete state",this.z], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + nmode:["number of modes",this.nmode], + nzcr:["number of zero_crossings",this.nzcr], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + depu:["direct feedthrough (y or n)",this.depu], + dept:["time dependence (y or n)",this.dept], + } + return options; } generic_block2.prototype.set = function generic_block2() { this.function_name = parseFloat((arguments[0]["function_name"])) @@ -13571,6 +14554,28 @@ function generic_block3() { return this.x; } generic_block3.prototype.get = function generic_block3() { + var options = { + function_name:["Simulation function",this.function_name], + funtyp:["Function type (0,1,2,..)",this.funtyp], + in1:["Input ports sizes",this.in1], + it:["Input ports type",this.it], + out:["Output port sizes",this.out], + ot:["Output ports type",this.ot], + ci:["Input event ports sizes",this.ci], + co:["Output events ports sizes",this.co], + xx:["Initial continuous state",this.xx], + z:["Initial discrete state",this.z], + oz:["Initial object state",this.oz], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + opar:["Object parameters list",this.opar], + nmode:["Number of modes",this.nmode], + nzcr:["Number of zero crossings",this.nzcr], + auto0:["Initial firing vector (<0 for no firing)",this.auto0], + depu:["Direct feedthrough (y or n)",this.depu], + dept:["Time dependence (y or n)",this.dept], + } + return options; } generic_block3.prototype.set = function generic_block3() { this.function_name = parseFloat((arguments[0]["function_name"])) @@ -13709,6 +14714,18 @@ function scifunc_block() { return this.x; } scifunc_block.prototype.get = function scifunc_block() { + var options = { + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + z:["initial discrete state",this.z], + rpar:["System parameters vector",this.rpar], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + deptime:["is block always active (0:no, 1:yes)",this.deptime], + } + return options; } scifunc_block.prototype.set = function scifunc_block() { this.i = parseFloat((arguments[0]["i"])) @@ -13819,6 +14836,18 @@ function scifunc_block_m() { return this.x; } scifunc_block_m.prototype.get = function scifunc_block_m() { + var options = { + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + z:["initial discrete state",this.z], + rpar:["System parameters vector",this.rpar], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + deptime:["is block always active (0:no, 1:yes)",this.deptime], + } + return options; } scifunc_block_m.prototype.set = function scifunc_block_m() { this.i = parseFloat((arguments[0]["i"])) @@ -13903,6 +14932,9 @@ function ABSBLK_f() { return this.x; } ABSBLK_f.prototype.get = function ABSBLK_f() { + var options = { + } + return options; } ABSBLK_f.prototype.set = function ABSBLK_f() { this.x = arg1; @@ -13930,6 +14962,10 @@ function ABS_VALUE() { return this.x; } ABS_VALUE.prototype.get = function ABS_VALUE() { + var options = { + zcr:["use zero_crossing (1: yes) (0:no)",this.zcr], + } + return options; } ABS_VALUE.prototype.set = function ABS_VALUE() { this.zcr = parseFloat((arguments[0]["zcr"])) @@ -13977,6 +15013,9 @@ function COSBLK_f() { return this.x; } COSBLK_f.prototype.get = function COSBLK_f() { + var options = { + } + return options; } COSBLK_f.prototype.set = function COSBLK_f() { this.x = arg1; @@ -14012,6 +15051,15 @@ function DLRADAPT_f() { return this.x; } DLRADAPT_f.prototype.get = function DLRADAPT_f() { + var options = { + p:["Vector of p mesh points",this.p], + rn:["Numerator roots (one line for each mesh)",this.rn], + rd:["Denominator roots (one line for each mesh)",this.rd], + g:["Vector of gain at mesh points",this.g], + last_u:["past inputs (Num degree values)",this.last_u], + last_y:["past outputs (Den degree values)",this.last_y], + } + return options; } DLRADAPT_f.prototype.set = function DLRADAPT_f() { this.p = parseFloat((arguments[0]["p"])) @@ -14071,6 +15119,9 @@ function EXPBLK_f() { return this.x; } EXPBLK_f.prototype.get = function EXPBLK_f() { + var options = { + } + return options; } EXPBLK_f.prototype.set = function EXPBLK_f() { this.a = parseFloat((arguments[0]["a"])) @@ -14124,6 +15175,9 @@ function EXPBLK_m() { return this.x; } EXPBLK_m.prototype.get = function EXPBLK_m() { + var options = { + } + return options; } EXPBLK_m.prototype.set = function EXPBLK_m() { this.a = parseFloat((arguments[0]["a"])) @@ -14171,6 +15225,9 @@ function FSV_f() { return this.x; } FSV_f.prototype.get = function FSV_f() { + var options = { + } + return options; } FSV_f.prototype.set = function FSV_f() { this.x = arg1; @@ -14200,6 +15257,12 @@ function INTRP2BLK_f() { return this.x; } INTRP2BLK_f.prototype.get = function INTRP2BLK_f() { + var options = { + a:["X coord.",this.a], + b:["Y coord.",this.b], + c:["Z values",this.c], + } + return options; } INTRP2BLK_f.prototype.set = function INTRP2BLK_f() { this.a = parseFloat((arguments[0]["a"])) @@ -14253,6 +15316,11 @@ function INTRPLBLK_f() { return this.x; } INTRPLBLK_f.prototype.get = function INTRPLBLK_f() { + var options = { + a:["X coord.",this.a], + b:["Y coord.",this.b], + } + return options; } INTRPLBLK_f.prototype.set = function INTRPLBLK_f() { this.a = parseFloat((arguments[0]["a"])) @@ -14302,6 +15370,9 @@ function INVBLK() { return this.x; } INVBLK.prototype.get = function INVBLK() { + var options = { + } + return options; } INVBLK.prototype.set = function INVBLK() { this.x = arg1; @@ -14327,6 +15398,9 @@ function INVBLK_f() { return this.x; } INVBLK_f.prototype.get = function INVBLK_f() { + var options = { + } + return options; } INVBLK_f.prototype.set = function INVBLK_f() { this.x = arg1; @@ -14354,6 +15428,9 @@ function LOGBLK_f() { return this.x; } LOGBLK_f.prototype.get = function LOGBLK_f() { + var options = { + } + return options; } LOGBLK_f.prototype.set = function LOGBLK_f() { this.a = parseFloat((arguments[0]["a"])) @@ -14411,6 +15488,14 @@ function LOOKUP2D() { return this.x; } LOOKUP2D.prototype.get = function LOOKUP2D() { + var options = { + xx:["Row index input values",this.xx], + yy:["Column index input values",this.yy], + zz:["Table data",this.zz], + Method:["Lookup method(1..5)",this.Method], + graf:["Launch graphic window(y/n)?",this.graf], + } + return options; } LOOKUP2D.prototype.set = function LOOKUP2D() { this.xx = parseFloat((arguments[0]["xx"])) @@ -14508,6 +15593,9 @@ function LOOKUP_f() { return this.x; } LOOKUP_f.prototype.get = function LOOKUP_f() { + var options = { + } + return options; } LOOKUP_f.prototype.set = function LOOKUP_f() { this.x = arg1; @@ -14563,6 +15651,12 @@ function MAXMIN() { return this.x; } MAXMIN.prototype.get = function MAXMIN() { + var options = { + mm:["Min (1) or Max (2) ",this.mm], + nin:["Number of input vectors (1 or 2)",this.nin], + zcr:["zero-crossing (1: yes, 0;no)",this.zcr], + } + return options; } MAXMIN.prototype.set = function MAXMIN() { this.mm = parseFloat((arguments[0]["mm"])) @@ -14637,6 +15731,9 @@ function MAX_f() { return this.x; } MAX_f.prototype.get = function MAX_f() { + var options = { + } + return options; } MAX_f.prototype.set = function MAX_f() { this.x = arg1; @@ -14663,6 +15760,9 @@ function MIN_f() { return this.x; } MIN_f.prototype.get = function MIN_f() { + var options = { + } + return options; } MIN_f.prototype.set = function MIN_f() { this.x = arg1; @@ -14690,6 +15790,9 @@ function POWBLK_f() { return this.x; } POWBLK_f.prototype.get = function POWBLK_f() { + var options = { + } + return options; } POWBLK_f.prototype.set = function POWBLK_f() { this.a = parseFloat((arguments[0]["a"])) @@ -14741,6 +15844,9 @@ function PRODUCT() { return this.x; } PRODUCT.prototype.get = function PRODUCT() { + var options = { + } + return options; } PRODUCT.prototype.set = function PRODUCT() { this.sgn = parseFloat((arguments[0]["sgn"])) @@ -14806,6 +15912,9 @@ function PROD_f() { return this.x; } PROD_f.prototype.get = function PROD_f() { + var options = { + } + return options; } PROD_f.prototype.set = function PROD_f() { this.x = arg1; @@ -14834,6 +15943,11 @@ function QUANT_f() { return this.x; } QUANT_f.prototype.get = function QUANT_f() { + var options = { + pas:["Step",this.pas], + meth:["Quantization Type (1-4)",this.meth], + } + return options; } QUANT_f.prototype.set = function QUANT_f() { this.pas = parseFloat((arguments[0]["pas"])) @@ -14896,6 +16010,12 @@ function SATURATION() { return this.x; } SATURATION.prototype.get = function SATURATION() { + var options = { + maxp:["Upper limit",this.maxp], + minp:["Lower limit",this.minp], + zeroc:["zero crossing (0:no, 1:yes)",this.zeroc], + } + return options; } SATURATION.prototype.set = function SATURATION() { this.maxp = parseFloat((arguments[0]["maxp"])) @@ -14955,6 +16075,12 @@ function SAT_f() { return this.x; } SAT_f.prototype.get = function SAT_f() { + var options = { + minp:["Min",this.minp], + maxp:["Max",this.maxp], + pente:["Slope",this.pente], + } + return options; } SAT_f.prototype.set = function SAT_f() { this.minp = parseFloat((arguments[0]["minp"])) @@ -15007,6 +16133,10 @@ function SIGNUM() { return this.x; } SIGNUM.prototype.get = function SIGNUM() { + var options = { + zcr:["use zero_crossing (1: yes) (0:no)",this.zcr], + } + return options; } SIGNUM.prototype.set = function SIGNUM() { this.zcr = parseFloat((arguments[0]["zcr"])) @@ -15054,6 +16184,9 @@ function SINBLK_f() { return this.x; } SINBLK_f.prototype.get = function SINBLK_f() { + var options = { + } + return options; } SINBLK_f.prototype.set = function SINBLK_f() { this.x = arg1; @@ -15079,6 +16212,9 @@ function TANBLK_f() { return this.x; } TANBLK_f.prototype.get = function TANBLK_f() { + var options = { + } + return options; } TANBLK_f.prototype.set = function TANBLK_f() { this.x = arg1; @@ -15104,6 +16240,9 @@ function TrigFun() { return this.x; } TrigFun.prototype.get = function TrigFun() { + var options = { + } + return options; } TrigFun.prototype.set = function TrigFun() { this.fun = parseFloat((arguments[0]["fun"])) @@ -15151,6 +16290,9 @@ function PDE() { return this.x; } PDE.prototype.get = function PDE() { + var options = { + } + return options; } PDE.prototype.set = function PDE() { this.okk = parseFloat((arguments[0]["okk"])) @@ -15298,6 +16440,16 @@ function AFFICH_m() { return this.x; } AFFICH_m.prototype.get = function AFFICH_m() { + var options = { + in1:["Input Size",this.in1], + font:["Font number",this.font], + fontsize:["Font size",this.fontsize], + colr:["Color",this.colr], + nt:["Total number of digits",this.nt], + nd:["Number of rational part digits",this.nd], + herit:["Block inherits (1) or not (0)",this.herit], + } + return options; } AFFICH_m.prototype.set = function AFFICH_m() { this.in1 = parseFloat((arguments[0]["in1"])) @@ -15386,6 +16538,14 @@ function BARXY() { return this.x; } BARXY.prototype.get = function BARXY() { + var options = { + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + thickness:["Segs Thickness",this.thickness], + } + return options; } BARXY.prototype.set = function BARXY() { this.xmin = parseFloat((arguments[0]["xmin"])) @@ -15463,6 +16623,20 @@ function CANIMXY() { return this.x; } CANIMXY.prototype.get = function CANIMXY() { + var options = { + nbr_curves:["Number of Curves",this.nbr_curves], + clrs:["color (>0) or mark (<0)",this.clrs], + siz:["line or mark size",this.siz], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + N:["Buffer size",this.N], + } + return options; } CANIMXY.prototype.set = function CANIMXY() { this.nbr_curves = parseFloat((arguments[0]["nbr_curves"])) @@ -15577,6 +16751,20 @@ function CANIMXY3D() { return this.x; } CANIMXY3D.prototype.get = function CANIMXY3D() { + var options = { + nbr_curves:["Number of curves",this.nbr_curves], + clrs:["color (>0) or mark (<0)",this.clrs], + siz:["line or mark size",this.siz], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + vec_x:["Xmin and Xmax",this.vec_x], + vec_y:["Ymin and Ymax",this.vec_y], + vec_z:["Zmin and Zmax",this.vec_z], + param3ds:["Alpha and Theta",this.param3ds], + N:["Buffer size",this.N], + } + return options; } CANIMXY3D.prototype.set = function CANIMXY3D() { this.nbr_curves = parseFloat((arguments[0]["nbr_curves"])) @@ -15699,6 +16887,15 @@ function CEVENTSCOPE() { return this.x; } CEVENTSCOPE.prototype.get = function CEVENTSCOPE() { + var options = { + nclock:["Number of event inputs",this.nclock], + clrs:["colors c (>0) or mark (<0)",this.clrs], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + per:["Refresh period",this.per], + } + return options; } CEVENTSCOPE.prototype.set = function CEVENTSCOPE() { this.nclock = parseFloat((arguments[0]["nclock"])) @@ -15796,6 +16993,18 @@ function CFSCOPE() { return this.x; } CFSCOPE.prototype.get = function CFSCOPE() { + var options = { + clrs:["Color (>0) or mark (<0) vector (8 entries)",this.clrs], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + per:["Refresh period",this.per], + N:["Buffer size",this.N], + wu:["Links to view",this.wu], + } + return options; } CFSCOPE.prototype.set = function CFSCOPE() { this.clrs = parseFloat((arguments[0]["clrs"])) @@ -15895,6 +17104,9 @@ function CLKOUTV_f() { return this.x; } CLKOUTV_f.prototype.get = function CLKOUTV_f() { + var options = { + } + return options; } CLKOUTV_f.prototype.set = function CLKOUTV_f() { this.prt = parseFloat((arguments[0]["prt"])) @@ -16001,6 +17213,9 @@ function CLKOUT_f() { return this.x; } CLKOUT_f.prototype.get = function CLKOUT_f() { + var options = { + } + return options; } CLKOUT_f.prototype.set = function CLKOUT_f() { this.prt = parseFloat((arguments[0]["prt"])) @@ -16060,6 +17275,14 @@ function CMAT3D() { return this.x; } CMAT3D.prototype.get = function CMAT3D() { + var options = { + vec_x:["Bounds Vector X (-1 for standard)",this.vec_x], + vec_y:["Bounds Vector Y (-1 for standard)",this.vec_y], + colormap:["ColorMap",this.colormap], + cmin:["Zmin",this.cmin], + cmax:["Zmax",this.cmax], + } + return options; } CMAT3D.prototype.set = function CMAT3D() { this.vec_x = parseFloat((arguments[0]["vec_x"])) @@ -16132,6 +17355,12 @@ function CMATVIEW() { return this.x; } CMATVIEW.prototype.get = function CMATVIEW() { + var options = { + colormap:["ColorMap",this.colormap], + cmin:["Minimum level range",this.cmin], + cmax:["Maximum level range",this.cmax], + } + return options; } CMATVIEW.prototype.set = function CMATVIEW() { this.colormap = parseFloat((arguments[0]["colormap"])) @@ -16205,6 +17434,20 @@ function CMSCOPE() { return this.x; } CMSCOPE.prototype.get = function CMSCOPE() { + var options = { + in1:["Input ports sizes",this.in1], + clrs:["Drawing colors (>0) or mark (<0)",this.clrs], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + ymin:["Ymin vector",this.ymin], + ymax:["Ymax vector",this.ymax], + per:["Refresh period",this.per], + N:["Buffer size",this.N], + heritance:["Accept herited events 0/1",this.heritance], + nom:["Name of Scope (label&Id)",this.nom], + } + return options; } CMSCOPE.prototype.set = function CMSCOPE() { this.in1 = parseFloat((arguments[0]["in1"])) @@ -16341,6 +17584,19 @@ function CSCOPE() { return this.x; } CSCOPE.prototype.get = function CSCOPE() { + var options = { + clrs:["Color (>0) or mark (<0) vector (8 entries)",this.clrs], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + per:["Refresh period",this.per], + N:["Buffer size",this.N], + heritance:["Accept herited events 0/1",this.heritance], + nom:["Name of Scope (label&Id)",this.nom], + } + return options; } CSCOPE.prototype.set = function CSCOPE() { this.clrs = parseFloat((arguments[0]["clrs"])) @@ -16453,6 +17709,20 @@ function CSCOPXY() { return this.x; } CSCOPXY.prototype.get = function CSCOPXY() { + var options = { + nbr_curves:["Number of Curves",this.nbr_curves], + clrs:["color (>0) or mark (<0)",this.clrs], + siz:["line or mark size",this.siz], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + N:["Buffer size",this.N], + } + return options; } CSCOPXY.prototype.set = function CSCOPXY() { this.nbr_curves = parseFloat((arguments[0]["nbr_curves"])) @@ -16566,6 +17836,20 @@ function CSCOPXY3D() { return this.x; } CSCOPXY3D.prototype.get = function CSCOPXY3D() { + var options = { + nbr_curves:["Number of curves",this.nbr_curves], + clrs:["color (>0) or mark (<0)",this.clrs], + siz:["Line or Mark Size",this.siz], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + vec_x:["Xmin and Xmax",this.vec_x], + vec_y:["Ymin and Ymax",this.vec_y], + vec_z:["Zmin and Zmax",this.vec_z], + param3ds:["Alpha and Theta",this.param3ds], + N:["Buffer size",this.N], + } + return options; } CSCOPXY3D.prototype.set = function CSCOPXY3D() { this.nbr_curves = parseFloat((arguments[0]["nbr_curves"])) @@ -16684,6 +17968,9 @@ function OUTIMPL_f() { return this.x; } OUTIMPL_f.prototype.get = function OUTIMPL_f() { + var options = { + } + return options; } OUTIMPL_f.prototype.set = function OUTIMPL_f() { this.prt = parseFloat((arguments[0]["prt"])) @@ -16739,6 +18026,9 @@ function OUT_f() { return this.x; } OUT_f.prototype.get = function OUT_f() { + var options = { + } + return options; } OUT_f.prototype.set = function OUT_f() { this.prt = parseFloat((arguments[0]["prt"])) @@ -16797,6 +18087,12 @@ function TOWS_c() { return this.x; } TOWS_c.prototype.get = function TOWS_c() { + var options = { + nz:["Size of buffer",this.nz], + varnam:["Scilab variable name",this.varnam], + herit:["Inherit (no:0, yes:1)",this.herit], + } + return options; } TOWS_c.prototype.set = function TOWS_c() { this.nz = parseFloat((arguments[0]["nz"])) @@ -16858,6 +18154,9 @@ function TRASH_f() { return this.x; } TRASH_f.prototype.get = function TRASH_f() { + var options = { + } + return options; } TRASH_f.prototype.set = function TRASH_f() { this.x = arg1; @@ -16890,6 +18189,13 @@ function WFILE_f() { return this.x; } WFILE_f.prototype.get = function WFILE_f() { + var options = { + in1:["Input Size",this.in1], + fname1:["Output File Name",this.fname1], + frmt1:["Output Format",this.frmt1], + N:["Buffer Size",this.N], + } + return options; } WFILE_f.prototype.set = function WFILE_f() { this.in1 = parseFloat((arguments[0]["in1"])) @@ -16988,6 +18294,11 @@ function WRITEAU_f() { return this.x; } WRITEAU_f.prototype.get = function WRITEAU_f() { + var options = { + N:["Buffer Size",this.N], + swap:["Swap Mode (0:No, 1:Yes)",this.swap], + } + return options; } WRITEAU_f.prototype.set = function WRITEAU_f() { this.N = parseFloat((arguments[0]["N"])) @@ -17062,6 +18373,14 @@ function WRITEC_f() { return this.x; } WRITEC_f.prototype.get = function WRITEC_f() { + var options = { + in1:["Input Size",this.in1], + fname1:["Output File Name",this.fname1], + frmt1:["Output Format",this.frmt1], + N:["Buffer Size",this.N], + swap:["Swap Mode (0:No, 1:Yes)",this.swap], + } + return options; } WRITEC_f.prototype.set = function WRITEC_f() { this.in1 = parseFloat((arguments[0]["in1"])) @@ -17153,6 +18472,9 @@ function CLKINV_f() { return this.x; } CLKINV_f.prototype.get = function CLKINV_f() { + var options = { + } + return options; } CLKINV_f.prototype.set = function CLKINV_f() { this.prt = parseFloat((arguments[0]["prt"])) @@ -17201,6 +18523,9 @@ function CLKIN_f() { return this.x; } CLKIN_f.prototype.get = function CLKIN_f() { + var options = { + } + return options; } CLKIN_f.prototype.set = function CLKIN_f() { this.prt = parseFloat((arguments[0]["prt"])) @@ -17278,6 +18603,11 @@ function CLOCK_c() { return this.x; } CLOCK_c.prototype.get = function CLOCK_c() { + var options = { + dt:["Period",this.dt], + t0:["Initialisation Time",this.t0], + } + return options; } CLOCK_c.prototype.set = function CLOCK_c() { this.dt = parseFloat((arguments[0]["dt"])) @@ -17377,6 +18707,11 @@ function CLOCK_f() { return this.x; } CLOCK_f.prototype.get = function CLOCK_f() { + var options = { + dt:["Period",this.dt], + t0:["Init time",this.t0], + } + return options; } CLOCK_f.prototype.set = function CLOCK_f() { this.dt = parseFloat((arguments[0]["dt"])) @@ -17448,6 +18783,9 @@ function CONST() { return this.x; } CONST.prototype.get = function CONST() { + var options = { + } + return options; } CONST.prototype.set = function CONST() { this.C = parseFloat((arguments[0]["C"])) @@ -17498,6 +18836,9 @@ function CONST_f() { return this.x; } CONST_f.prototype.get = function CONST_f() { + var options = { + } + return options; } CONST_f.prototype.set = function CONST_f() { this.C = parseFloat((arguments[0]["C"])) @@ -17548,6 +18889,9 @@ function CONST_m() { return this.x; } CONST_m.prototype.get = function CONST_m() { + var options = { + } + return options; } CONST_m.prototype.set = function CONST_m() { this.C = parseFloat((arguments[0]["C"])) @@ -17626,6 +18970,9 @@ function CURV_f() { return this.x; } CURV_f.prototype.get = function CURV_f() { + var options = { + } + return options; } CURV_f.prototype.set = function CURV_f() { this.x = arg1; @@ -17691,6 +19038,12 @@ function Counter() { return this.x; } Counter.prototype.get = function Counter() { + var options = { + minim:["Minimum",this.minim], + maxim:["Maximum",this.maxim], + rule:["Rule (1:Increment, 2:Decrement)",this.rule], + } + return options; } Counter.prototype.set = function Counter() { this.minim = parseFloat((arguments[0]["minim"])) @@ -17740,6 +19093,9 @@ function FROMWSB() { return this.x; } FROMWSB.prototype.get = function FROMWSB() { + var options = { + } + return options; } FROMWSB.prototype.set = function FROMWSB() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { @@ -17839,6 +19195,13 @@ function FROMWS_c() { return this.x; } FROMWS_c.prototype.get = function FROMWS_c() { + var options = { + varnam:["Variable name",this.varnam], + Method:["Interpolation Method",this.Method], + ZC:["Enable zero crossing(0:No, 1:Yes)?",this.ZC], + OutEnd:["Output at end(0:Zero, 1:Hold, 2:Repeat)",this.OutEnd], + } + return options; } FROMWS_c.prototype.set = function FROMWS_c() { this.varnam = parseFloat((arguments[0]["varnam"])) @@ -17908,6 +19271,12 @@ function GENSIN_f() { return this.x; } GENSIN_f.prototype.get = function GENSIN_f() { + var options = { + M:["Magnitude",this.M], + F:["Frequency (rad/s)",this.F], + P:["Phase (rad)",this.P], + } + return options; } GENSIN_f.prototype.set = function GENSIN_f() { this.M = parseFloat((arguments[0]["M"])) @@ -17962,6 +19331,10 @@ function GENSQR_f() { return this.x; } GENSQR_f.prototype.get = function GENSQR_f() { + var options = { + Amplitude:["Amplitude",this.Amplitude], + } + return options; } GENSQR_f.prototype.set = function GENSQR_f() { this.Amplitude = parseFloat((arguments[0]["Amplitude"])) @@ -18044,6 +19417,9 @@ function GEN_SQR() { return this.x; } GEN_SQR.prototype.get = function GEN_SQR() { + var options = { + } + return options; } GEN_SQR.prototype.set = function GEN_SQR() { scicos_context.Amin = parseFloat((arguments[0]["scicos_context.Amin"])) @@ -18110,6 +19486,9 @@ function Ground_g() { return this.x; } Ground_g.prototype.get = function Ground_g() { + var options = { + } + return options; } Ground_g.prototype.set = function Ground_g() { this.x = arg1; @@ -18141,6 +19520,9 @@ function INIMPL_f() { return this.x; } INIMPL_f.prototype.get = function INIMPL_f() { + var options = { + } + return options; } INIMPL_f.prototype.set = function INIMPL_f() { this.prt = parseFloat((arguments[0]["prt"])) @@ -18195,6 +19577,9 @@ function IN_f() { return this.x; } IN_f.prototype.get = function IN_f() { + var options = { + } + return options; } IN_f.prototype.set = function IN_f() { this.x = arg1; @@ -18260,6 +19645,11 @@ function Modulo_Count() { return this.x; } Modulo_Count.prototype.get = function Modulo_Count() { + var options = { + ini_c:["Initial State (zero or positive number)",this.ini_c], + base:["Upper Limit (positive number)",this.base], + } + return options; } Modulo_Count.prototype.set = function Modulo_Count() { this.ini_c = parseFloat((arguments[0]["ini_c"])) @@ -18342,6 +19732,9 @@ function PULSE_SC() { return this.x; } PULSE_SC.prototype.get = function PULSE_SC() { + var options = { + } + return options; } PULSE_SC.prototype.set = function PULSE_SC() { scicos_context.E = parseFloat((arguments[0]["scicos_context.E"])) @@ -18411,6 +19804,12 @@ function RAMP() { return this.x; } RAMP.prototype.get = function RAMP() { + var options = { + slope:["Slope",this.slope], + stt:["Start Time",this.stt], + iout:["Initial Value",this.iout], + } + return options; } RAMP.prototype.set = function RAMP() { this.slope = parseFloat((arguments[0]["slope"])) @@ -18464,6 +19863,13 @@ function RAND_f() { return this.x; } RAND_f.prototype.get = function RAND_f() { + var options = { + flag:["flag",this.flag], + a:["A",this.a], + b:["B",this.b], + seed_c:["seed",this.seed_c], + } + return options; } RAND_f.prototype.set = function RAND_f() { this.flag = parseFloat((arguments[0]["flag"])) @@ -18537,6 +19943,14 @@ function RAND_m() { return this.x; } RAND_m.prototype.get = function RAND_m() { + var options = { + typ:["Datatype(1=real double 2=complex)",this.typ], + flag:["flag",this.flag], + a:["A",this.a], + b:["B",this.b], + seed_c:["SEED",this.seed_c], + } + return options; } RAND_m.prototype.set = function RAND_m() { this.typ = parseFloat((arguments[0]["typ"])) @@ -18621,6 +20035,12 @@ function READAU_f() { return this.x; } READAU_f.prototype.get = function READAU_f() { + var options = { + fname1:["Input File Name",this.fname1], + N:["Buffer size",this.N], + swap:["Swap Mode (0:No, 1:Yes)",this.swap], + } + return options; } READAU_f.prototype.set = function READAU_f() { this.fname1 = parseFloat((arguments[0]["fname1"])) @@ -18714,6 +20134,17 @@ function READC_f() { return this.x; } READC_f.prototype.get = function READC_f() { + var options = { + tmask1:["Time Record Selection",this.tmask1], + outmask:["Outputs Record Selection",this.outmask], + fname1:["Input File Name",this.fname1], + frmt1:["Input Format",this.frmt1], + M:["Record Size",this.M], + N:["Buffer Size",this.N], + offset:["Initial Record Index",this.offset], + swap:["Swap Mode (0:No, 1:Yes)",this.swap], + } + return options; } READC_f.prototype.set = function READC_f() { this.tmask1 = parseFloat((arguments[0]["tmask1"])) @@ -18838,6 +20269,14 @@ function RFILE_f() { return this.x; } RFILE_f.prototype.get = function RFILE_f() { + var options = { + tmask1:["Time Record Selection",this.tmask1], + outmask:["Outputs Record Selection",this.outmask], + fname1:["Input File Name",this.fname1], + frmt1:["Input Format",this.frmt1], + N:["Buffer Size",this.N], + } + return options; } RFILE_f.prototype.set = function RFILE_f() { this.tmask1 = parseFloat((arguments[0]["tmask1"])) @@ -18940,6 +20379,9 @@ function SAWTOOTH_f() { return this.x; } SAWTOOTH_f.prototype.get = function SAWTOOTH_f() { + var options = { + } + return options; } SAWTOOTH_f.prototype.set = function SAWTOOTH_f() { this.x = arg1; @@ -18970,6 +20412,12 @@ function STEP() { return this.x; } STEP.prototype.get = function STEP() { + var options = { + temps:["Step Time",this.temps], + in1:["Initial Value",this.in1], + fi:["Final Value",this.fi], + } + return options; } STEP.prototype.set = function STEP() { this.temps = parseFloat((arguments[0]["temps"])) @@ -19075,6 +20523,9 @@ function STEP_FUNCTION() { return this.x; } STEP_FUNCTION.prototype.get = function STEP_FUNCTION() { + var options = { + } + return options; } STEP_FUNCTION.prototype.set = function STEP_FUNCTION() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { @@ -19161,6 +20612,11 @@ function SampleCLK() { return this.x; } SampleCLK.prototype.get = function SampleCLK() { + var options = { + frequ:["Sample time",this.frequ], + offset:["Offset",this.offset], + } + return options; } SampleCLK.prototype.set = function SampleCLK() { this.frequ = parseFloat((arguments[0]["frequ"])) @@ -19221,6 +20677,9 @@ function Sigbuilder() { return this.x; } Sigbuilder.prototype.get = function Sigbuilder() { + var options = { + } + return options; } Sigbuilder.prototype.set = function Sigbuilder() { ppath = list(0); @@ -19310,6 +20769,9 @@ function TIME_f() { return this.x; } TIME_f.prototype.get = function TIME_f() { + var options = { + } + return options; } TIME_f.prototype.set = function TIME_f() { this.x = arg1; @@ -19338,6 +20800,12 @@ function TKSCALE() { return this.x; } TKSCALE.prototype.get = function TKSCALE() { + var options = { + a:["Min value",this.a], + b:["Max value",this.b], + f:["Normalization",this.f], + } + return options; } TKSCALE.prototype.set = function TKSCALE() { this.a = parseFloat((arguments[0]["a"])) @@ -19381,6 +20849,11 @@ function GENERAL_f() { return this.x; } GENERAL_f.prototype.get = function GENERAL_f() { + var options = { + in1:["Input size",this.in1], + out:["Number of event output",this.out], + } + return options; } GENERAL_f.prototype.set = function GENERAL_f() { this.in1 = parseFloat((arguments[0]["in1"])) @@ -19441,6 +20914,9 @@ function NEGTOPOS_f() { return this.x; } NEGTOPOS_f.prototype.get = function NEGTOPOS_f() { + var options = { + } + return options; } NEGTOPOS_f.prototype.set = function NEGTOPOS_f() { this.x = arg1; @@ -19469,6 +20945,9 @@ function POSTONEG_f() { return this.x; } POSTONEG_f.prototype.get = function POSTONEG_f() { + var options = { + } + return options; } POSTONEG_f.prototype.set = function POSTONEG_f() { this.x = arg1; @@ -19499,6 +20978,9 @@ function ZCROSS_f() { return this.x; } ZCROSS_f.prototype.get = function ZCROSS_f() { + var options = { + } + return options; } ZCROSS_f.prototype.set = function ZCROSS_f() { this.in1 = parseFloat((arguments[0]["in1"])) diff --git a/js/Branching/CLKFROM.js b/js/Branching/CLKFROM.js index d4c061d5..74b34549 100644 --- a/js/Branching/CLKFROM.js +++ b/js/Branching/CLKFROM.js @@ -17,6 +17,9 @@ function CLKFROM() { return this.x; } CLKFROM.prototype.get = function CLKFROM() { + var options = { + } + return options; } CLKFROM.prototype.set = function CLKFROM() { this.tag = parseFloat((arguments[0]["tag"])) diff --git a/js/Branching/CLKGOTO.js b/js/Branching/CLKGOTO.js index 374ac9f4..a1e82830 100644 --- a/js/Branching/CLKGOTO.js +++ b/js/Branching/CLKGOTO.js @@ -18,6 +18,11 @@ function CLKGOTO() { return this.x; } CLKGOTO.prototype.get = function CLKGOTO() { + var options = { + tag:["Tag",this.tag], + tagvis:["Tag Visibility (1=Local 2=Scoped 3=Global)",this.tagvis], + } + return options; } CLKGOTO.prototype.set = function CLKGOTO() { this.tag = parseFloat((arguments[0]["tag"])) diff --git a/js/Branching/CLKGotoTagVisibility.js b/js/Branching/CLKGotoTagVisibility.js index aa59d2a5..56ef9617 100644 --- a/js/Branching/CLKGotoTagVisibility.js +++ b/js/Branching/CLKGotoTagVisibility.js @@ -23,6 +23,10 @@ function CLKGotoTagVisibility() { return this.x; } CLKGotoTagVisibility.prototype.get = function CLKGotoTagVisibility() { + var options = { + tag:["GotoTag",this.tag], + } + return options; } CLKGotoTagVisibility.prototype.set = function CLKGotoTagVisibility() { this.tag = parseFloat((arguments[0]["tag"])) diff --git a/js/Branching/DEMUX.js b/js/Branching/DEMUX.js index fdd03c3d..1df1efaa 100644 --- a/js/Branching/DEMUX.js +++ b/js/Branching/DEMUX.js @@ -19,6 +19,10 @@ function DEMUX() { return this.x; } DEMUX.prototype.get = function DEMUX() { + var options = { + out:["number of output ports or vector of sizes",this.out], + } + return options; } DEMUX.prototype.set = function DEMUX() { this.out = parseFloat((arguments[0]["out"])) diff --git a/js/Branching/DEMUX_f.js b/js/Branching/DEMUX_f.js index 5c119c84..f29ff646 100644 --- a/js/Branching/DEMUX_f.js +++ b/js/Branching/DEMUX_f.js @@ -19,6 +19,10 @@ function DEMUX_f() { return this.x; } DEMUX_f.prototype.get = function DEMUX_f() { + var options = { + out:["number of output ports or vector of sizes",this.out], + } + return options; } DEMUX_f.prototype.set = function DEMUX_f() { this.out = parseFloat((arguments[0]["out"])) diff --git a/js/Branching/ESELECT_f.js b/js/Branching/ESELECT_f.js index b14cfccf..85c98ad4 100644 --- a/js/Branching/ESELECT_f.js +++ b/js/Branching/ESELECT_f.js @@ -23,6 +23,12 @@ function ESELECT_f() { return this.x; } ESELECT_f.prototype.get = function ESELECT_f() { + var options = { + out:["number of output event ports",this.out], + inh:["Inherit (1: no, 0: yes)",this.inh], + nmod:["zero-crossing (0: no, 1: yes)",this.nmod], + } + return options; } ESELECT_f.prototype.set = function ESELECT_f() { this.out = parseFloat((arguments[0]["out"])) diff --git a/js/Branching/EXTRACTOR.js b/js/Branching/EXTRACTOR.js index e49f6001..c00eba54 100644 --- a/js/Branching/EXTRACTOR.js +++ b/js/Branching/EXTRACTOR.js @@ -18,6 +18,10 @@ function EXTRACTOR() { return this.x; } EXTRACTOR.prototype.get = function EXTRACTOR() { + var options = { + ind:["indices to extract",this.ind], + } + return options; } EXTRACTOR.prototype.set = function EXTRACTOR() { this.ind = parseFloat((arguments[0]["ind"])) diff --git a/js/Branching/FROM.js b/js/Branching/FROM.js index 1f8f9b25..d24038a3 100644 --- a/js/Branching/FROM.js +++ b/js/Branching/FROM.js @@ -23,6 +23,10 @@ function FROM() { return this.x; } FROM.prototype.get = function FROM() { + var options = { + tag:["Tag",this.tag], + } + return options; } FROM.prototype.set = function FROM() { this.tag = parseFloat((arguments[0]["tag"])) diff --git a/js/Branching/FROMMO.js b/js/Branching/FROMMO.js index e115ad8e..2c695023 100644 --- a/js/Branching/FROMMO.js +++ b/js/Branching/FROMMO.js @@ -26,6 +26,10 @@ function FROMMO() { return this.x; } FROMMO.prototype.get = function FROMMO() { + var options = { + tag:["Tag",this.tag], + } + return options; } FROMMO.prototype.set = function FROMMO() { this.tag = parseFloat((arguments[0]["tag"])) diff --git a/js/Branching/GOTO.js b/js/Branching/GOTO.js index e2ad0a6b..766a5206 100644 --- a/js/Branching/GOTO.js +++ b/js/Branching/GOTO.js @@ -23,6 +23,11 @@ function GOTO() { return this.x; } GOTO.prototype.get = function GOTO() { + var options = { + tag:["Tag",this.tag], + tagvis:["Tag Visibility(1=Local 2=scoped 3= global)",this.tagvis], + } + return options; } GOTO.prototype.set = function GOTO() { this.tag = parseFloat((arguments[0]["tag"])) diff --git a/js/Branching/GOTOMO.js b/js/Branching/GOTOMO.js index 8f07146f..91c5305b 100644 --- a/js/Branching/GOTOMO.js +++ b/js/Branching/GOTOMO.js @@ -26,6 +26,11 @@ function GOTOMO() { return this.x; } GOTOMO.prototype.get = function GOTOMO() { + var options = { + tag:["Tag",this.tag], + tagvis:["Tag Visibility(1=Local 2=scoped 3= global)",this.tagvis], + } + return options; } GOTOMO.prototype.set = function GOTOMO() { this.tag = parseFloat((arguments[0]["tag"])) diff --git a/js/Branching/GotoTagVisibility.js b/js/Branching/GotoTagVisibility.js index c3281e81..10491dd0 100644 --- a/js/Branching/GotoTagVisibility.js +++ b/js/Branching/GotoTagVisibility.js @@ -23,6 +23,10 @@ function GotoTagVisibility() { return this.x; } GotoTagVisibility.prototype.get = function GotoTagVisibility() { + var options = { + tag:["GotoTag",this.tag], + } + return options; } GotoTagVisibility.prototype.set = function GotoTagVisibility() { this.tag = parseFloat((arguments[0]["tag"])) diff --git a/js/Branching/GotoTagVisibilityMO.js b/js/Branching/GotoTagVisibilityMO.js index 2aa6313d..0dfb2150 100644 --- a/js/Branching/GotoTagVisibilityMO.js +++ b/js/Branching/GotoTagVisibilityMO.js @@ -23,6 +23,10 @@ function GotoTagVisibilityMO() { return this.x; } GotoTagVisibilityMO.prototype.get = function GotoTagVisibilityMO() { + var options = { + tag:["GotoTag",this.tag], + } + return options; } GotoTagVisibilityMO.prototype.set = function GotoTagVisibilityMO() { this.tag = parseFloat((arguments[0]["tag"])) diff --git a/js/Branching/ISELECT_f.js b/js/Branching/ISELECT_f.js index 75f6e8ab..4f4a796a 100644 --- a/js/Branching/ISELECT_f.js +++ b/js/Branching/ISELECT_f.js @@ -21,6 +21,11 @@ function ISELECT_f() { return this.x; } ISELECT_f.prototype.get = function ISELECT_f() { + var options = { + nout:["number of outputs",this.nout], + z0:["initial connected output",this.z0], + } + return options; } ISELECT_f.prototype.set = function ISELECT_f() { this.nout = parseFloat((arguments[0]["nout"])) diff --git a/js/Branching/ISELECT_m.js b/js/Branching/ISELECT_m.js index 79160d88..be6715a6 100644 --- a/js/Branching/ISELECT_m.js +++ b/js/Branching/ISELECT_m.js @@ -29,6 +29,12 @@ function ISELECT_m() { return this.x; } ISELECT_m.prototype.get = function ISELECT_m() { + var options = { + typ:["Datatype(1= real double 2=Complex 3=int32 ...)",this.typ], + nout:["number of outputs",this.nout], + z0:["initial connected output",this.z0], + } + return options; } ISELECT_m.prototype.set = function ISELECT_m() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/Branching/MUX.js b/js/Branching/MUX.js index 77e11ce7..60099a23 100644 --- a/js/Branching/MUX.js +++ b/js/Branching/MUX.js @@ -18,6 +18,9 @@ function MUX() { return this.x; } MUX.prototype.get = function MUX() { + var options = { + } + return options; } MUX.prototype.set = function MUX() { this.in1 = parseFloat((arguments[0]["in1"])) diff --git a/js/Branching/MUX_f.js b/js/Branching/MUX_f.js index aa468b8d..1d003c87 100644 --- a/js/Branching/MUX_f.js +++ b/js/Branching/MUX_f.js @@ -18,6 +18,9 @@ function MUX_f() { return this.x; } MUX_f.prototype.get = function MUX_f() { + var options = { + } + return options; } MUX_f.prototype.set = function MUX_f() { this.in1 = parseFloat((arguments[0]["in1"])) diff --git a/js/Branching/M_SWITCH.js b/js/Branching/M_SWITCH.js index eae88075..4c531d1b 100644 --- a/js/Branching/M_SWITCH.js +++ b/js/Branching/M_SWITCH.js @@ -20,6 +20,12 @@ function M_SWITCH() { return this.x; } M_SWITCH.prototype.get = function M_SWITCH() { + var options = { + nin:["number of inputs",this.nin], + base:["zero base indexing (0), otherwise 1",this.base], + rule:["rounding rule: int (0), round (1), ceil (2), floor (3)",this.rule], + } + return options; } M_SWITCH.prototype.set = function M_SWITCH() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/Branching/NRMSOM_f.js b/js/Branching/NRMSOM_f.js index b889425e..9878558c 100644 --- a/js/Branching/NRMSOM_f.js +++ b/js/Branching/NRMSOM_f.js @@ -18,6 +18,10 @@ function NRMSOM_f() { return this.x; } NRMSOM_f.prototype.get = function NRMSOM_f() { + var options = { + nin:["number of inputs",this.nin], + } + return options; } NRMSOM_f.prototype.set = function NRMSOM_f() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/Branching/RELAY_f.js b/js/Branching/RELAY_f.js index a052e002..190b4621 100644 --- a/js/Branching/RELAY_f.js +++ b/js/Branching/RELAY_f.js @@ -22,6 +22,11 @@ function RELAY_f() { return this.x; } RELAY_f.prototype.get = function RELAY_f() { + var options = { + nin:["number of inputs",this.nin], + z0:["initial connected input",this.z0], + } + return options; } RELAY_f.prototype.set = function RELAY_f() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/Branching/SCALAR2VECTOR.js b/js/Branching/SCALAR2VECTOR.js index aac90b54..71373eaf 100644 --- a/js/Branching/SCALAR2VECTOR.js +++ b/js/Branching/SCALAR2VECTOR.js @@ -17,6 +17,10 @@ function SCALAR2VECTOR() { return this.x; } SCALAR2VECTOR.prototype.get = function SCALAR2VECTOR() { + var options = { + nout:["size of output (-1: if don\'t know)",this.nout], + } + return options; } SCALAR2VECTOR.prototype.set = function SCALAR2VECTOR() { this.nout = parseFloat((arguments[0]["nout"])) diff --git a/js/Branching/SELECT_f.js b/js/Branching/SELECT_f.js index ce3023cc..3a64bc60 100644 --- a/js/Branching/SELECT_f.js +++ b/js/Branching/SELECT_f.js @@ -21,6 +21,11 @@ function SELECT_f() { return this.x; } SELECT_f.prototype.get = function SELECT_f() { + var options = { + nin:["number of inputs",this.nin], + z0:["initial connected input",this.z0], + } + return options; } SELECT_f.prototype.set = function SELECT_f() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/Branching/SELECT_m.js b/js/Branching/SELECT_m.js index 0e804219..142aa8b0 100644 --- a/js/Branching/SELECT_m.js +++ b/js/Branching/SELECT_m.js @@ -29,6 +29,12 @@ function SELECT_m() { return this.x; } SELECT_m.prototype.get = function SELECT_m() { + var options = { + typ:["Datatype(1= real double 2=Complex 3=int32 ..)",this.typ], + nin:["number of inputs",this.nin], + z0:["initial connected input",this.z0], + } + return options; } SELECT_m.prototype.set = function SELECT_m() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/Branching/SWITCH2.js b/js/Branching/SWITCH2.js index 8fb48bf5..3b338dc2 100644 --- a/js/Branching/SWITCH2.js +++ b/js/Branching/SWITCH2.js @@ -24,6 +24,12 @@ function SWITCH2() { return this.x; } SWITCH2.prototype.get = function SWITCH2() { + var options = { + rule:["pass first input if: u2>=a (0), u2>a (1), u2~=a (2)",this.rule], + thra:["threshold a",this.thra], + nzz:["use zero crossing: yes (1), no (0)",this.nzz], + } + return options; } SWITCH2.prototype.set = function SWITCH2() { this.rule = parseFloat((arguments[0]["rule"])) diff --git a/js/Branching/SWITCH2_m.js b/js/Branching/SWITCH2_m.js index ba08a2b6..c386ff62 100644 --- a/js/Branching/SWITCH2_m.js +++ b/js/Branching/SWITCH2_m.js @@ -27,6 +27,13 @@ function SWITCH2_m() { return this.x; } SWITCH2_m.prototype.get = function SWITCH2_m() { + var options = { + ot:["Datatype (1=real double 2=complex 3=int32 ...)",this.ot], + rule:["pass first input if: u2>=a (0), u2>a (1), u2~=a (2)",this.rule], + thra:["threshold a",this.thra], + nzz:["use zero crossing: yes (1), no (0)",this.nzz], + } + return options; } SWITCH2_m.prototype.set = function SWITCH2_m() { this.ot = parseFloat((arguments[0]["ot"])) diff --git a/js/Branching/SWITCH_f.js b/js/Branching/SWITCH_f.js index fff0ed00..61347cf2 100644 --- a/js/Branching/SWITCH_f.js +++ b/js/Branching/SWITCH_f.js @@ -21,6 +21,11 @@ function SWITCH_f() { return this.x; } SWITCH_f.prototype.get = function SWITCH_f() { + var options = { + nin:["number of inputs",this.nin], + z0:["connected input",this.z0], + } + return options; } SWITCH_f.prototype.set = function SWITCH_f() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/Electrical/CCS.js b/js/Electrical/CCS.js index 7617d008..6754b973 100644 --- a/js/Electrical/CCS.js +++ b/js/Electrical/CCS.js @@ -53,6 +53,9 @@ function CCS() { return this.x; } CCS.prototype.get = function CCS() { + var options = { + } + return options; } CCS.prototype.set = function CCS() { this.x = arg1; diff --git a/js/Electrical/CVS.js b/js/Electrical/CVS.js index c78c81f5..59ffbd03 100644 --- a/js/Electrical/CVS.js +++ b/js/Electrical/CVS.js @@ -53,6 +53,9 @@ function CVS() { return this.x; } CVS.prototype.get = function CVS() { + var options = { + } + return options; } CVS.prototype.set = function CVS() { this.x = arg1; diff --git a/js/Electrical/Capacitor.js b/js/Electrical/Capacitor.js index 66bb921b..478d4f5d 100644 --- a/js/Electrical/Capacitor.js +++ b/js/Electrical/Capacitor.js @@ -27,6 +27,11 @@ function Capacitor() { return this.x; } Capacitor.prototype.get = function Capacitor() { + var options = { + C:["C (F)",this.C], + v:["Initial Voltage",this.v], + } + return options; } Capacitor.prototype.set = function Capacitor() { this.C = parseFloat((arguments[0]["C"])) diff --git a/js/Electrical/ConstantVoltage.js b/js/Electrical/ConstantVoltage.js index afc8b40d..1d73e05d 100644 --- a/js/Electrical/ConstantVoltage.js +++ b/js/Electrical/ConstantVoltage.js @@ -26,6 +26,9 @@ function ConstantVoltage() { return this.x; } ConstantVoltage.prototype.get = function ConstantVoltage() { + var options = { + } + return options; } ConstantVoltage.prototype.set = function ConstantVoltage() { this.V = parseFloat((arguments[0]["V"])) diff --git a/js/Electrical/CurrentSensor.js b/js/Electrical/CurrentSensor.js index 3e14a6ee..e5beda39 100644 --- a/js/Electrical/CurrentSensor.js +++ b/js/Electrical/CurrentSensor.js @@ -23,6 +23,9 @@ function CurrentSensor() { return this.x; } CurrentSensor.prototype.get = function CurrentSensor() { + var options = { + } + return options; } CurrentSensor.prototype.set = function CurrentSensor() { this.x = arg1; diff --git a/js/Electrical/Diode.js b/js/Electrical/Diode.js index d8141b81..645cca15 100644 --- a/js/Electrical/Diode.js +++ b/js/Electrical/Diode.js @@ -29,6 +29,13 @@ function Diode() { return this.x; } Diode.prototype.get = function Diode() { + var options = { + Ids:["Saturation cuurent (A)",this.Ids], + Vt:["Voltage equivalent to temperature (Volt)",this.Vt], + Maxexp:["Max exponent for linear continuation",this.Maxexp], + R:["R (ohm)",this.R], + } + return options; } Diode.prototype.set = function Diode() { this.Ids = parseFloat((arguments[0]["Ids"])) diff --git a/js/Electrical/Ground.js b/js/Electrical/Ground.js index eb0de336..4818f2da 100644 --- a/js/Electrical/Ground.js +++ b/js/Electrical/Ground.js @@ -22,6 +22,9 @@ function Ground() { return this.x; } Ground.prototype.get = function Ground() { + var options = { + } + return options; } Ground.prototype.set = function Ground() { this.x = arg1; diff --git a/js/Electrical/Gyrator.js b/js/Electrical/Gyrator.js index 05d27e6f..0b0ec7dd 100644 --- a/js/Electrical/Gyrator.js +++ b/js/Electrical/Gyrator.js @@ -53,6 +53,11 @@ function Gyrator() { return this.x; } Gyrator.prototype.get = function Gyrator() { + var options = { + G1:["G1",this.G1], + G2:["G2",this.G2], + } + return options; } Gyrator.prototype.set = function Gyrator() { this.G1 = parseFloat((arguments[0]["G1"])) diff --git a/js/Electrical/IdealTransformer.js b/js/Electrical/IdealTransformer.js index 4da364af..f74a402d 100644 --- a/js/Electrical/IdealTransformer.js +++ b/js/Electrical/IdealTransformer.js @@ -53,6 +53,10 @@ function IdealTransformer() { return this.x; } IdealTransformer.prototype.get = function IdealTransformer() { + var options = { + N:["N",this.N], + } + return options; } IdealTransformer.prototype.set = function IdealTransformer() { this.N = parseFloat((arguments[0]["N"])) diff --git a/js/Electrical/Inductor.js b/js/Electrical/Inductor.js index 052b27ad..98ca66a8 100644 --- a/js/Electrical/Inductor.js +++ b/js/Electrical/Inductor.js @@ -26,6 +26,9 @@ function Inductor() { return this.x; } Inductor.prototype.get = function Inductor() { + var options = { + } + return options; } Inductor.prototype.set = function Inductor() { this.L = parseFloat((arguments[0]["L"])) diff --git a/js/Electrical/MOTOR.js b/js/Electrical/MOTOR.js index a8c1d4c2..c5b1a2c3 100644 --- a/js/Electrical/MOTOR.js +++ b/js/Electrical/MOTOR.js @@ -18,6 +18,9 @@ function MOTOR() { return this.x; } MOTOR.prototype.get = function MOTOR() { + var options = { + } + return options; } MOTOR.prototype.set = function MOTOR() { this.x = arg1; diff --git a/js/Electrical/NMOS.js b/js/Electrical/NMOS.js index f59e41fb..9d8acf42 100644 --- a/js/Electrical/NMOS.js +++ b/js/Electrical/NMOS.js @@ -33,6 +33,18 @@ function NMOS() { return this.x; } NMOS.prototype.get = function NMOS() { + var options = { + W:["Width [m]",this.W], + L:["Length [m]",this.L], + Beta:["Transconductance parameter [A/(V*V)]",this.Beta], + Vt:["Zero bias threshold voltage [V]",this.Vt], + K2:["Bulk threshold parameter",this.K2], + K5:["Reduction of pinch-off region",this.K5], + dW:["Narrowing of channel [m]",this.dW], + dL:["Shortening of channel [m]",this.dL], + RDS:["Drain-Source-Resistance [Ohm]",this.RDS], + } + return options; } NMOS.prototype.set = function NMOS() { this.W = parseFloat((arguments[0]["W"])) diff --git a/js/Electrical/NPN.js b/js/Electrical/NPN.js index a02e0de3..b54740fa 100644 --- a/js/Electrical/NPN.js +++ b/js/Electrical/NPN.js @@ -53,6 +53,26 @@ function NPN() { return this.x; } NPN.prototype.get = function NPN() { + var options = { + Bf:["Bf : Forward beta",this.Bf], + Br:["Br : Reverse beta",this.Br], + Is:["Is : Transport saturation current",this.Is], + Vak:["Vak : Early voltage (inverse), 1/Volt",this.Vak], + Tauf:["Tauf: Ideal forward transit time",this.Tauf], + Taur:["Taur: Ideal reverse transit time",this.Taur], + Ccs:["Ccs : Collector-substrat(ground) cap.",this.Ccs], + Cje:["Cje : Base-emitter zero bias depletion cap.",this.Cje], + Cjc:["Cjc : Base-coll. zero bias depletion cap.",this.Cjc], + Phie:["Phie: Base-emitter diffusion voltage",this.Phie], + Me:["Me : Base-emitter gradation exponent",this.Me], + Phic:["Phic: Base-collector diffusion voltage",this.Phic], + Mc:["Mc : Base-collector gradation exponent",this.Mc], + Gbc:["Gbc : Base-collector conductance",this.Gbc], + Gbe:["Gbe : Base-emitter conductance",this.Gbe], + Vt:["Vt : Voltage equivalent of temperature",this.Vt], + EMinMax:["EMinmax: if x > EMinMax, the exp(x) is linearized",this.EMinMax], + } + return options; } NPN.prototype.set = function NPN() { this.Bf = parseFloat((arguments[0]["Bf"])) diff --git a/js/Electrical/OpAmp.js b/js/Electrical/OpAmp.js index ffe642ac..b056b0b0 100644 --- a/js/Electrical/OpAmp.js +++ b/js/Electrical/OpAmp.js @@ -27,6 +27,12 @@ function OpAmp() { return this.x; } OpAmp.prototype.get = function OpAmp() { + var options = { + OLGain:["Open Loop Gain",this.OLGain], + SatH:["Positive saturation voltage",this.SatH], + SatL:["Negative saturation voltage",this.SatL], + } + return options; } OpAmp.prototype.set = function OpAmp() { this.OLGain = parseFloat((arguments[0]["OLGain"])) diff --git a/js/Electrical/PMOS.js b/js/Electrical/PMOS.js index 2f3579cf..103e399d 100644 --- a/js/Electrical/PMOS.js +++ b/js/Electrical/PMOS.js @@ -33,6 +33,18 @@ function PMOS() { return this.x; } PMOS.prototype.get = function PMOS() { + var options = { + W:["Width [m]",this.W], + L:["Length [m]",this.L], + Beta:["Transconductance parameter [A/(V*V)]",this.Beta], + Vt:["Zero bias threshold voltage [V]",this.Vt], + K2:["Bulk threshold parameter",this.K2], + K5:["Reduction of pinch-off region",this.K5], + dW:["Narrowing of channel [m]",this.dW], + dL:["Shortening of channel [m]",this.dL], + RDS:["Drain-Source-Resistance [Ohm]",this.RDS], + } + return options; } PMOS.prototype.set = function PMOS() { this.W = parseFloat((arguments[0]["W"])) diff --git a/js/Electrical/PNP.js b/js/Electrical/PNP.js index 3f03ceda..088914ec 100644 --- a/js/Electrical/PNP.js +++ b/js/Electrical/PNP.js @@ -53,6 +53,26 @@ function PNP() { return this.x; } PNP.prototype.get = function PNP() { + var options = { + Bf:["Bf : Forward beta",this.Bf], + Br:["Br : Reverse beta",this.Br], + Is:["Is : Transport saturation current",this.Is], + Vak:["Vak : Early voltage (inverse), 1/Volt",this.Vak], + Tauf:["Tauf: Ideal forward transit time",this.Tauf], + Taur:["Taur: Ideal reverse transit time",this.Taur], + Ccs:["Ccs : Collector-substrat(ground) cap.",this.Ccs], + Cje:["Cje : Base-emitter zero bias depletion cap.",this.Cje], + Cjc:["Cjc : Base-coll. zero bias depletion cap.",this.Cjc], + Phie:["Phie: Base-emitter diffusion voltage",this.Phie], + Me:["Me : Base-emitter gradation exponent",this.Me], + Phic:["Phic: Base-collector diffusion voltage",this.Phic], + Mc:["Mc : Base-collector gradation exponent",this.Mc], + Gbc:["Gbc : Base-collector conductance",this.Gbc], + Gbe:["Gbe : Base-emitter conductance",this.Gbe], + Vt:["Vt : Voltage equivalent of temperature",this.Vt], + EMinMax:["EMinMax: if x > EMinMax, the exp(x) function is linearized",this.EMinMax], + } + return options; } PNP.prototype.set = function PNP() { this.Bf = parseFloat((arguments[0]["Bf"])) diff --git a/js/Electrical/PotentialSensor.js b/js/Electrical/PotentialSensor.js index b2a6dc22..9ef7202b 100644 --- a/js/Electrical/PotentialSensor.js +++ b/js/Electrical/PotentialSensor.js @@ -23,6 +23,9 @@ function PotentialSensor() { return this.x; } PotentialSensor.prototype.get = function PotentialSensor() { + var options = { + } + return options; } PotentialSensor.prototype.set = function PotentialSensor() { this.x = arg1; diff --git a/js/Electrical/Resistor.js b/js/Electrical/Resistor.js index fb284839..7c6147d6 100644 --- a/js/Electrical/Resistor.js +++ b/js/Electrical/Resistor.js @@ -26,6 +26,9 @@ function Resistor() { return this.x; } Resistor.prototype.get = function Resistor() { + var options = { + } + return options; } Resistor.prototype.set = function Resistor() { this.R = parseFloat((arguments[0]["R"])) diff --git a/js/Electrical/SineVoltage.js b/js/Electrical/SineVoltage.js index d3997f59..c92aeefc 100644 --- a/js/Electrical/SineVoltage.js +++ b/js/Electrical/SineVoltage.js @@ -30,6 +30,14 @@ function SineVoltage() { return this.x; } SineVoltage.prototype.get = function SineVoltage() { + var options = { + V:["Amplitude (Volt)",this.V], + ph:["phase (rad)",this.ph], + frq:["Frequency (Hz)",this.frq], + offset:["Voltageoffset (V)",this.offset], + start:["Timeoffset (s)",this.start], + } + return options; } SineVoltage.prototype.set = function SineVoltage() { this.V = parseFloat((arguments[0]["V"])) diff --git a/js/Electrical/Switch.js b/js/Electrical/Switch.js index ad7ed43d..46e66473 100644 --- a/js/Electrical/Switch.js +++ b/js/Electrical/Switch.js @@ -29,6 +29,11 @@ function Switch() { return this.x; } Switch.prototype.get = function Switch() { + var options = { + Ron:["Resistance in On state (Ohm)",this.Ron], + Roff:["Resistance in Off state (Ohm)",this.Roff], + } + return options; } Switch.prototype.set = function Switch() { this.Ron = parseFloat((arguments[0]["Ron"])) diff --git a/js/Electrical/VVsourceAC.js b/js/Electrical/VVsourceAC.js index 3c733b2b..8b56a29e 100644 --- a/js/Electrical/VVsourceAC.js +++ b/js/Electrical/VVsourceAC.js @@ -27,6 +27,10 @@ function VVsourceAC() { return this.x; } VVsourceAC.prototype.get = function VVsourceAC() { + var options = { + FR:["Frequency (Hz)",this.FR], + } + return options; } VVsourceAC.prototype.set = function VVsourceAC() { this.FR = parseFloat((arguments[0]["FR"])) diff --git a/js/Electrical/VariableResistor.js b/js/Electrical/VariableResistor.js index f9011e10..2244df08 100644 --- a/js/Electrical/VariableResistor.js +++ b/js/Electrical/VariableResistor.js @@ -23,6 +23,9 @@ function VariableResistor() { return this.x; } VariableResistor.prototype.get = function VariableResistor() { + var options = { + } + return options; } VariableResistor.prototype.set = function VariableResistor() { this.x = arg1; diff --git a/js/Electrical/VoltageSensor.js b/js/Electrical/VoltageSensor.js index 1d463e44..74af23d8 100644 --- a/js/Electrical/VoltageSensor.js +++ b/js/Electrical/VoltageSensor.js @@ -23,6 +23,9 @@ function VoltageSensor() { return this.x; } VoltageSensor.prototype.get = function VoltageSensor() { + var options = { + } + return options; } VoltageSensor.prototype.set = function VoltageSensor() { this.x = arg1; diff --git a/js/Electrical/VsourceAC.js b/js/Electrical/VsourceAC.js index 333da4eb..527a1bfd 100644 --- a/js/Electrical/VsourceAC.js +++ b/js/Electrical/VsourceAC.js @@ -27,6 +27,11 @@ function VsourceAC() { return this.x; } VsourceAC.prototype.get = function VsourceAC() { + var options = { + VA:["Amplitude (Volt)",this.VA], + FR:["Frequency (Hz)",this.FR], + } + return options; } VsourceAC.prototype.set = function VsourceAC() { this.VA = parseFloat((arguments[0]["VA"])) diff --git a/js/Events/ANDBLK.js b/js/Events/ANDBLK.js index 440702c1..cfe72604 100644 --- a/js/Events/ANDBLK.js +++ b/js/Events/ANDBLK.js @@ -71,6 +71,9 @@ function ANDBLK() { return this.x; } ANDBLK.prototype.get = function ANDBLK() { + var options = { + } + return options; } ANDBLK.prototype.set = function ANDBLK() { this.x = arg1; diff --git a/js/Events/ANDLOG_f.js b/js/Events/ANDLOG_f.js index 3c7e4366..8e71e1d9 100644 --- a/js/Events/ANDLOG_f.js +++ b/js/Events/ANDLOG_f.js @@ -16,6 +16,9 @@ function ANDLOG_f() { return this.x; } ANDLOG_f.prototype.get = function ANDLOG_f() { + var options = { + } + return options; } ANDLOG_f.prototype.set = function ANDLOG_f() { this.x = arg1; diff --git a/js/Events/CLKSOMV_f.js b/js/Events/CLKSOMV_f.js index 58fd04e9..baea70e3 100644 --- a/js/Events/CLKSOMV_f.js +++ b/js/Events/CLKSOMV_f.js @@ -16,6 +16,9 @@ function CLKSOMV_f() { return this.x; } CLKSOMV_f.prototype.get = function CLKSOMV_f() { + var options = { + } + return options; } CLKSOMV_f.prototype.set = function CLKSOMV_f() { this.x = arg1; diff --git a/js/Events/CLKSOM_f.js b/js/Events/CLKSOM_f.js index 432fa19a..74a102a3 100644 --- a/js/Events/CLKSOM_f.js +++ b/js/Events/CLKSOM_f.js @@ -16,6 +16,9 @@ function CLKSOM_f() { return this.x; } CLKSOM_f.prototype.get = function CLKSOM_f() { + var options = { + } + return options; } CLKSOM_f.prototype.set = function CLKSOM_f() { this.x = arg1; diff --git a/js/Events/CLKSPLIT_f.js b/js/Events/CLKSPLIT_f.js index bc85c84b..b16b6b61 100644 --- a/js/Events/CLKSPLIT_f.js +++ b/js/Events/CLKSPLIT_f.js @@ -15,6 +15,9 @@ function CLKSPLIT_f() { return this.x; } CLKSPLIT_f.prototype.get = function CLKSPLIT_f() { + var options = { + } + return options; } CLKSPLIT_f.prototype.set = function CLKSPLIT_f() { this.x = arg1; diff --git a/js/Events/END_c.js b/js/Events/END_c.js index 1dbf3c9c..0d48613d 100644 --- a/js/Events/END_c.js +++ b/js/Events/END_c.js @@ -18,6 +18,10 @@ function END_c() { return this.x; } END_c.prototype.get = function END_c() { + var options = { + tf:["Final simulation time",this.tf], + } + return options; } END_c.prototype.set = function END_c() { this.tf = parseFloat((arguments[0]["tf"])) diff --git a/js/Events/EVTDLY_c.js b/js/Events/EVTDLY_c.js index eda7037f..43dcfa92 100644 --- a/js/Events/EVTDLY_c.js +++ b/js/Events/EVTDLY_c.js @@ -20,6 +20,11 @@ function EVTDLY_c() { return this.x; } EVTDLY_c.prototype.get = function EVTDLY_c() { + var options = { + dt:["Delay",this.dt], + ff:["Date of initial output event",this.ff], + } + return options; } EVTDLY_c.prototype.set = function EVTDLY_c() { this.dt = parseFloat((arguments[0]["dt"])) diff --git a/js/Events/EVTDLY_f.js b/js/Events/EVTDLY_f.js index 4d64f615..9163c489 100644 --- a/js/Events/EVTDLY_f.js +++ b/js/Events/EVTDLY_f.js @@ -20,6 +20,11 @@ function EVTDLY_f() { return this.x; } EVTDLY_f.prototype.get = function EVTDLY_f() { + var options = { + dt:["Delay",this.dt], + ff:["Date of initial output event",this.ff], + } + return options; } EVTDLY_f.prototype.set = function EVTDLY_f() { this.dt = parseFloat((arguments[0]["dt"])) diff --git a/js/Events/EVTGEN_f.js b/js/Events/EVTGEN_f.js index 935034b5..78b69440 100644 --- a/js/Events/EVTGEN_f.js +++ b/js/Events/EVTGEN_f.js @@ -17,6 +17,10 @@ function EVTGEN_f() { return this.x; } EVTGEN_f.prototype.get = function EVTGEN_f() { + var options = { + tt:["Event Time",this.tt], + } + return options; } EVTGEN_f.prototype.set = function EVTGEN_f() { this.tt = parseFloat((arguments[0]["tt"])) diff --git a/js/Events/EVTVARDLY.js b/js/Events/EVTVARDLY.js index 3a6b2442..09f064a8 100644 --- a/js/Events/EVTVARDLY.js +++ b/js/Events/EVTVARDLY.js @@ -19,6 +19,9 @@ function EVTVARDLY() { return this.x; } EVTVARDLY.prototype.get = function EVTVARDLY() { + var options = { + } + return options; } EVTVARDLY.prototype.set = function EVTVARDLY() { this.fir = parseFloat((arguments[0]["fir"])) diff --git a/js/Events/HALT_f.js b/js/Events/HALT_f.js index d5ee03d8..053e461c 100644 --- a/js/Events/HALT_f.js +++ b/js/Events/HALT_f.js @@ -18,6 +18,10 @@ function HALT_f() { return this.x; } HALT_f.prototype.get = function HALT_f() { + var options = { + n:["State on halt",this.n], + } + return options; } HALT_f.prototype.set = function HALT_f() { this.n = parseFloat((arguments[0]["n"])) diff --git a/js/Events/IFTHEL_f.js b/js/Events/IFTHEL_f.js index 362abccb..79a67276 100644 --- a/js/Events/IFTHEL_f.js +++ b/js/Events/IFTHEL_f.js @@ -22,6 +22,11 @@ function IFTHEL_f() { return this.x; } IFTHEL_f.prototype.get = function IFTHEL_f() { + var options = { + inh:["Inherit (1: no, 0: yes)",this.inh], + nmod:["zero-crossing (0: no, 1: yes)",this.nmod], + } + return options; } IFTHEL_f.prototype.set = function IFTHEL_f() { this.inh = parseFloat((arguments[0]["inh"])) diff --git a/js/Events/MCLOCK_f.js b/js/Events/MCLOCK_f.js index 48fff47b..95bed535 100644 --- a/js/Events/MCLOCK_f.js +++ b/js/Events/MCLOCK_f.js @@ -73,6 +73,9 @@ function MCLOCK_f() { return this.x; } MCLOCK_f.prototype.get = function MCLOCK_f() { + var options = { + } + return options; } MCLOCK_f.prototype.set = function MCLOCK_f() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { diff --git a/js/Events/MFCLCK_f.js b/js/Events/MFCLCK_f.js index e352368c..628444f9 100644 --- a/js/Events/MFCLCK_f.js +++ b/js/Events/MFCLCK_f.js @@ -22,6 +22,11 @@ function MFCLCK_f() { return this.x; } MFCLCK_f.prototype.get = function MFCLCK_f() { + var options = { + dt:["basic period (1/f)",this.dt], + nn:["multiply by (n)",this.nn], + } + return options; } MFCLCK_f.prototype.set = function MFCLCK_f() { this.dt = parseFloat((arguments[0]["dt"])) diff --git a/js/Events/M_freq.js b/js/Events/M_freq.js index 95388ba5..437e100b 100644 --- a/js/Events/M_freq.js +++ b/js/Events/M_freq.js @@ -19,6 +19,11 @@ function M_freq() { return this.x; } M_freq.prototype.get = function M_freq() { + var options = { + frequ:["Sample time",this.frequ], + offset:["Offset",this.offset], + } + return options; } M_freq.prototype.set = function M_freq() { this.frequ = parseFloat((arguments[0]["frequ"])) diff --git a/js/Events/VirtualCLK0.js b/js/Events/VirtualCLK0.js index 6ceb82fa..15757f71 100644 --- a/js/Events/VirtualCLK0.js +++ b/js/Events/VirtualCLK0.js @@ -17,6 +17,9 @@ function VirtualCLK0() { return this.x; } VirtualCLK0.prototype.get = function VirtualCLK0() { + var options = { + } + return options; } VirtualCLK0.prototype.set = function VirtualCLK0() { this.x = arg1; diff --git a/js/Events/freq_div.js b/js/Events/freq_div.js index 3aadb372..e034bb84 100644 --- a/js/Events/freq_div.js +++ b/js/Events/freq_div.js @@ -111,6 +111,11 @@ function freq_div() { return this.x; } freq_div.prototype.get = function freq_div() { + var options = { + %ph:["Phase (0 to division factor -1)",%ph], + %df:["Division factor",%df], + } + return options; } freq_div.prototype.set = function freq_div() { %ph = parseFloat((arguments[0]["%ph"])) diff --git a/js/Hydraulics/Bache.js b/js/Hydraulics/Bache.js index e96d187f..ca4d4bdb 100644 --- a/js/Hydraulics/Bache.js +++ b/js/Hydraulics/Bache.js @@ -38,6 +38,18 @@ function Bache() { return this.x; } Bache.prototype.get = function Bache() { + var options = { + Patm:["Pression dans le ciel de la bache : Patm (Pa)",this.Patm], + A:["Section de la bache : A (m2)",this.A], + ze1:["Altitude du piquage d entrée 1: ze1 (m)",this.ze1], + ze2:["Altitude du piquage d entrée 2: ze2 (m)",this.ze2], + zs1:["Altitude du piquage de sortie 1: zs1 (m)",this.zs1], + zs2:["Altitude du piquage de sortie 2: zs2 (m)",this.zs2], + z0:["Altitude initiale du fluide : z0 (m)",this.z0], + T0:["Température initiale du fluide : T0 (K)",this.T0], + p_rho:["Si >0, masse volumique imposée du fluide : p_rho (kg/m3)",this.p_rho], + } + return options; } Bache.prototype.set = function Bache() { this.Patm = parseFloat((arguments[0]["Patm"])) diff --git a/js/Hydraulics/Flowmeter.js b/js/Hydraulics/Flowmeter.js index 0a2d7496..80a54bca 100644 --- a/js/Hydraulics/Flowmeter.js +++ b/js/Hydraulics/Flowmeter.js @@ -53,6 +53,9 @@ function Flowmeter() { return this.x; } Flowmeter.prototype.get = function Flowmeter() { + var options = { + } + return options; } Flowmeter.prototype.set = function Flowmeter() { this.Qini = parseFloat((arguments[0]["Qini"])) diff --git a/js/Hydraulics/PerteDP.js b/js/Hydraulics/PerteDP.js index bfb2ac04..8f5b9b40 100644 --- a/js/Hydraulics/PerteDP.js +++ b/js/Hydraulics/PerteDP.js @@ -33,6 +33,15 @@ function PerteDP() { return this.x; } PerteDP.prototype.get = function PerteDP() { + var options = { + L:["Longueur du tube : L (m)",this.L], + D:["Diamètre interne du tube : D (m)",this.D], + lambda:["Coefficient de perte de charge-frottement(S.U) : lambda",this.lambda], + z1:["Altitude entrée tuyauterie : z1 (m)",this.z1], + z2:["Altitude sortie tuyauterie : z2 (m)",this.z2], + p_rho:["Si >0, masse volumique imposée fu fluide : p_rho (kg/m3)",this.p_rho], + } + return options; } PerteDP.prototype.set = function PerteDP() { this.L = parseFloat((arguments[0]["L"])) diff --git a/js/Hydraulics/PuitsP.js b/js/Hydraulics/PuitsP.js index 57577f11..267c236d 100644 --- a/js/Hydraulics/PuitsP.js +++ b/js/Hydraulics/PuitsP.js @@ -26,6 +26,13 @@ function PuitsP() { return this.x; } PuitsP.prototype.get = function PuitsP() { + var options = { + P0:["Pression de la source : P0 (Pa)",this.P0], + T0:["Temperature de la source : T0 (K)",this.T0], + H0:["Enthalpie spécifique de la source : H0 (J/kg)",this.H0], + option_temperature:["1:température fixée - 2:enthalpie fixée : option_temperature",this.option_temperature], + } + return options; } PuitsP.prototype.set = function PuitsP() { this.P0 = parseFloat((arguments[0]["P0"])) diff --git a/js/Hydraulics/SourceP.js b/js/Hydraulics/SourceP.js index d8244a8a..e51873da 100644 --- a/js/Hydraulics/SourceP.js +++ b/js/Hydraulics/SourceP.js @@ -28,6 +28,13 @@ function SourceP() { return this.x; } SourceP.prototype.get = function SourceP() { + var options = { + P0:["Pression de la source : P0 (Pa)",this.P0], + T0:["Temperature de la source : T0 (K)",this.T0], + H0:["Enthalpie spécifique de la source : H0 (J/kg)",this.H0], + option_temperature:["1:température fixée - 2:enthalpie fixée : option_temperature",this.option_temperature], + } + return options; } SourceP.prototype.set = function SourceP() { this.P0 = parseFloat((arguments[0]["P0"])) diff --git a/js/Hydraulics/VanneReglante.js b/js/Hydraulics/VanneReglante.js index 1822b4bd..f7dd1c71 100644 --- a/js/Hydraulics/VanneReglante.js +++ b/js/Hydraulics/VanneReglante.js @@ -29,6 +29,11 @@ function VanneReglante() { return this.x; } VanneReglante.prototype.get = function VanneReglante() { + var options = { + Cvmax:["Cvmax",this.Cvmax], + p_rho:["p_rho",this.p_rho], + } + return options; } VanneReglante.prototype.set = function VanneReglante() { this.Cvmax = parseFloat((arguments[0]["Cvmax"])) diff --git a/js/IntegerOp/BITCLEAR.js b/js/IntegerOp/BITCLEAR.js index 8e73efc6..8ac5590d 100644 --- a/js/IntegerOp/BITCLEAR.js +++ b/js/IntegerOp/BITCLEAR.js @@ -21,6 +21,11 @@ function BITCLEAR() { return this.x; } BITCLEAR.prototype.get = function BITCLEAR() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + bit:["Index of Bit (0 is least significant)",this.bit], + } + return options; } BITCLEAR.prototype.set = function BITCLEAR() { this.Datatype = parseFloat((arguments[0]["Datatype"])) diff --git a/js/IntegerOp/BITSET.js b/js/IntegerOp/BITSET.js index bbd4b339..377c9df6 100644 --- a/js/IntegerOp/BITSET.js +++ b/js/IntegerOp/BITSET.js @@ -21,6 +21,11 @@ function BITSET() { return this.x; } BITSET.prototype.get = function BITSET() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + bit:["Index of Bit (0 is least significant)",this.bit], + } + return options; } BITSET.prototype.set = function BITSET() { this.Datatype = parseFloat((arguments[0]["Datatype"])) diff --git a/js/IntegerOp/CONVERT.js b/js/IntegerOp/CONVERT.js index 1e3a7ff9..911af957 100644 --- a/js/IntegerOp/CONVERT.js +++ b/js/IntegerOp/CONVERT.js @@ -23,6 +23,12 @@ function CONVERT() { return this.x; } CONVERT.prototype.get = function CONVERT() { + var options = { + it:["Input Type (1:double, 3:int32, 4:int16, 5:int8, ...)",this.it], + ot:["Output Type (1:double, 3:int32, 4:int16, 5:int8, ...)",this.ot], + np:["Do on Overflow (0:Nothing, 1:Saturate, 2:Error)",this.np], + } + return options; } CONVERT.prototype.set = function CONVERT() { this.it = parseFloat((arguments[0]["it"])) diff --git a/js/IntegerOp/DFLIPFLOP.js b/js/IntegerOp/DFLIPFLOP.js index 944bddc4..4504f55d 100644 --- a/js/IntegerOp/DFLIPFLOP.js +++ b/js/IntegerOp/DFLIPFLOP.js @@ -96,6 +96,9 @@ function DFLIPFLOP() { return this.x; } DFLIPFLOP.prototype.get = function DFLIPFLOP() { + var options = { + } + return options; } DFLIPFLOP.prototype.set = function DFLIPFLOP() { this.x = arg1; diff --git a/js/IntegerOp/DLATCH.js b/js/IntegerOp/DLATCH.js index 130e2534..2ee55465 100644 --- a/js/IntegerOp/DLATCH.js +++ b/js/IntegerOp/DLATCH.js @@ -41,6 +41,9 @@ function DLATCH() { return this.x; } DLATCH.prototype.get = function DLATCH() { + var options = { + } + return options; } DLATCH.prototype.set = function DLATCH() { this.x = arg1; diff --git a/js/IntegerOp/EXTRACTBITS.js b/js/IntegerOp/EXTRACTBITS.js index d691751c..737e5acb 100644 --- a/js/IntegerOp/EXTRACTBITS.js +++ b/js/IntegerOp/EXTRACTBITS.js @@ -22,6 +22,13 @@ function EXTRACTBITS() { return this.x; } EXTRACTBITS.prototype.get = function EXTRACTBITS() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + rule:["Bits to extract",this.rule], + bit:["Number of Bits or Index of Bit",this.bit], + scal:["Treat Bit Field as an Integer (0:No, 1:Yes)",this.scal], + } + return options; } EXTRACTBITS.prototype.set = function EXTRACTBITS() { this.Datatype = parseFloat((arguments[0]["Datatype"])) diff --git a/js/IntegerOp/INTMUL.js b/js/IntegerOp/INTMUL.js index b9dd84c9..04a6c6d0 100644 --- a/js/IntegerOp/INTMUL.js +++ b/js/IntegerOp/INTMUL.js @@ -23,6 +23,11 @@ function INTMUL() { return this.x; } INTMUL.prototype.get = function INTMUL() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + np:["Do on Overflow (0:Nothing, 1:Saturate, 2:Error)",this.np], + } + return options; } INTMUL.prototype.set = function INTMUL() { this.Datatype = parseFloat((arguments[0]["Datatype"])) diff --git a/js/IntegerOp/JKFLIPFLOP.js b/js/IntegerOp/JKFLIPFLOP.js index 1b30589e..793a4620 100644 --- a/js/IntegerOp/JKFLIPFLOP.js +++ b/js/IntegerOp/JKFLIPFLOP.js @@ -52,6 +52,9 @@ function JKFLIPFLOP() { return this.x; } JKFLIPFLOP.prototype.get = function JKFLIPFLOP() { + var options = { + } + return options; } JKFLIPFLOP.prototype.set = function JKFLIPFLOP() { this.init = parseFloat((arguments[0]["init"])) diff --git a/js/IntegerOp/LOGIC.js b/js/IntegerOp/LOGIC.js index 20da4fc3..e06ea999 100644 --- a/js/IntegerOp/LOGIC.js +++ b/js/IntegerOp/LOGIC.js @@ -24,6 +24,11 @@ function LOGIC() { return this.x; } LOGIC.prototype.get = function LOGIC() { + var options = { + mat:["Truth Table (matrix of outputs)",this.mat], + herit:["Accepts Inherited Events (0:No, 1:Yes)",this.herit], + } + return options; } LOGIC.prototype.set = function LOGIC() { this.mat = parseFloat((arguments[0]["mat"])) diff --git a/js/IntegerOp/SHIFT.js b/js/IntegerOp/SHIFT.js index 1006fe5f..6312368d 100644 --- a/js/IntegerOp/SHIFT.js +++ b/js/IntegerOp/SHIFT.js @@ -24,6 +24,12 @@ function SHIFT() { return this.x; } SHIFT.prototype.get = function SHIFT() { + var options = { + Datatype:[msprintf("Data Type %s","(3:int32, 4:int16, 5:int8, ...)"),this.Datatype], + nb:["Number of Bits to Shift Left (Negative number to shift right)",this.nb], + np:["Shift Type (0:Arithmetic, 1:Circular)",this.np], + } + return options; } SHIFT.prototype.set = function SHIFT() { this.Datatype = parseFloat((arguments[0]["Datatype"])) diff --git a/js/IntegerOp/SRFLIPFLOP.js b/js/IntegerOp/SRFLIPFLOP.js index d00d54cb..83b5aee6 100644 --- a/js/IntegerOp/SRFLIPFLOP.js +++ b/js/IntegerOp/SRFLIPFLOP.js @@ -36,6 +36,9 @@ function SRFLIPFLOP() { return this.x; } SRFLIPFLOP.prototype.get = function SRFLIPFLOP() { + var options = { + } + return options; } SRFLIPFLOP.prototype.set = function SRFLIPFLOP() { this.init = parseFloat((arguments[0]["init"])) 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"])) diff --git a/js/MatrixOp/CUMSUM.js b/js/MatrixOp/CUMSUM.js index a940d7bb..b03ea3f0 100644 --- a/js/MatrixOp/CUMSUM.js +++ b/js/MatrixOp/CUMSUM.js @@ -29,6 +29,11 @@ function CUMSUM() { return this.x; } CUMSUM.prototype.get = function CUMSUM() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["Sum along (0=the first non singleton dimension 1=Rows 2=Columns)",this.decomptyp], + } + return options; } CUMSUM.prototype.set = function CUMSUM() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/EXTRACT.js b/js/MatrixOp/EXTRACT.js index 763e84fc..eb76f9c2 100644 --- a/js/MatrixOp/EXTRACT.js +++ b/js/MatrixOp/EXTRACT.js @@ -29,6 +29,12 @@ function EXTRACT() { return this.x; } EXTRACT.prototype.get = function EXTRACT() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + a:["Lines to extract",this.a], + b:["Columns to extract",this.b], + } + return options; } EXTRACT.prototype.set = function EXTRACT() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/EXTTRI.js b/js/MatrixOp/EXTTRI.js index 385c22d3..b7a48aca 100644 --- a/js/MatrixOp/EXTTRI.js +++ b/js/MatrixOp/EXTTRI.js @@ -29,6 +29,11 @@ function EXTTRI() { return this.x; } EXTTRI.prototype.get = function EXTTRI() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["extraction type (1=lower 2=upper 3=diagonal)",this.decomptyp], + } + return options; } EXTTRI.prototype.set = function EXTTRI() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATBKSL.js b/js/MatrixOp/MATBKSL.js index cd80d57f..2b1b613f 100644 --- a/js/MatrixOp/MATBKSL.js +++ b/js/MatrixOp/MATBKSL.js @@ -29,6 +29,10 @@ function MATBKSL() { return this.x; } MATBKSL.prototype.get = function MATBKSL() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + } + return options; } MATBKSL.prototype.set = function MATBKSL() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATCATH.js b/js/MatrixOp/MATCATH.js index 093ec5c4..945141bf 100644 --- a/js/MatrixOp/MATCATH.js +++ b/js/MatrixOp/MATCATH.js @@ -29,6 +29,10 @@ function MATCATH() { return this.x; } MATCATH.prototype.get = function MATCATH() { + var options = { + nin:["Number of input",this.nin], + } + return options; } MATCATH.prototype.set = function MATCATH() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/MatrixOp/MATCATV.js b/js/MatrixOp/MATCATV.js index b7f9a118..5a82ef49 100644 --- a/js/MatrixOp/MATCATV.js +++ b/js/MatrixOp/MATCATV.js @@ -30,6 +30,10 @@ function MATCATV() { return this.x; } MATCATV.prototype.get = function MATCATV() { + var options = { + nin:["Number od inputs",this.nin], + } + return options; } MATCATV.prototype.set = function MATCATV() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/MatrixOp/MATDET.js b/js/MatrixOp/MATDET.js index eb58d2a8..ebb0cef5 100644 --- a/js/MatrixOp/MATDET.js +++ b/js/MatrixOp/MATDET.js @@ -29,6 +29,10 @@ function MATDET() { return this.x; } MATDET.prototype.get = function MATDET() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATDET.prototype.set = function MATDET() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATDIAG.js b/js/MatrixOp/MATDIAG.js index ce4df9c6..5fe82b25 100644 --- a/js/MatrixOp/MATDIAG.js +++ b/js/MatrixOp/MATDIAG.js @@ -29,6 +29,10 @@ function MATDIAG() { return this.x; } MATDIAG.prototype.get = function MATDIAG() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + } + return options; } MATDIAG.prototype.set = function MATDIAG() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATDIV.js b/js/MatrixOp/MATDIV.js index 45fb81e3..113a3369 100644 --- a/js/MatrixOp/MATDIV.js +++ b/js/MatrixOp/MATDIV.js @@ -29,6 +29,10 @@ function MATDIV() { return this.x; } MATDIV.prototype.get = function MATDIV() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATDIV.prototype.set = function MATDIV() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATEIG.js b/js/MatrixOp/MATEIG.js index 2a365fe8..87568249 100644 --- a/js/MatrixOp/MATEIG.js +++ b/js/MatrixOp/MATEIG.js @@ -29,6 +29,11 @@ function MATEIG() { return this.x; } MATEIG.prototype.get = function MATEIG() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["decomposition type (1=eig values 2=eig values+eig vectors",this.decomptyp], + } + return options; } MATEIG.prototype.set = function MATEIG() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATEXPM.js b/js/MatrixOp/MATEXPM.js index cb40e3cd..02ba3c6b 100644 --- a/js/MatrixOp/MATEXPM.js +++ b/js/MatrixOp/MATEXPM.js @@ -29,6 +29,10 @@ function MATEXPM() { return this.x; } MATEXPM.prototype.get = function MATEXPM() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATEXPM.prototype.set = function MATEXPM() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATINV.js b/js/MatrixOp/MATINV.js index 74a32218..57d4987b 100644 --- a/js/MatrixOp/MATINV.js +++ b/js/MatrixOp/MATINV.js @@ -29,6 +29,10 @@ function MATINV() { return this.x; } MATINV.prototype.get = function MATINV() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATINV.prototype.set = function MATINV() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATLU.js b/js/MatrixOp/MATLU.js index 36497759..ff5564f2 100644 --- a/js/MatrixOp/MATLU.js +++ b/js/MatrixOp/MATLU.js @@ -29,6 +29,10 @@ function MATLU() { return this.x; } MATLU.prototype.get = function MATLU() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATLU.prototype.set = function MATLU() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATMAGPHI.js b/js/MatrixOp/MATMAGPHI.js index 25688e97..5ae544ac 100644 --- a/js/MatrixOp/MATMAGPHI.js +++ b/js/MatrixOp/MATMAGPHI.js @@ -29,6 +29,10 @@ function MATMAGPHI() { return this.x; } MATMAGPHI.prototype.get = function MATMAGPHI() { + var options = { + decomptyp:["decomposition type (1=Complex2MAG&PHI 2=MAG&PHI2Complex)",this.decomptyp], + } + return options; } MATMAGPHI.prototype.set = function MATMAGPHI() { this.decomptyp = parseFloat((arguments[0]["decomptyp"])) diff --git a/js/MatrixOp/MATMUL.js b/js/MatrixOp/MATMUL.js index a9e39de4..00e69390 100644 --- a/js/MatrixOp/MATMUL.js +++ b/js/MatrixOp/MATMUL.js @@ -18,6 +18,12 @@ function MATMUL() { return this.x; } MATMUL.prototype.get = function MATMUL() { + var options = { + dtype:["Datatype(1=real double 2=Complex 3=int32 ...)",this.dtype], + rule:["Multiplication rule",this.rule], + np:["Do on Overflow(0=Nothing 1=Saturate 2=Error)",this.np], + } + return options; } MATMUL.prototype.set = function MATMUL() { this.dtype = parseFloat((arguments[0]["dtype"])) diff --git a/js/MatrixOp/MATPINV.js b/js/MatrixOp/MATPINV.js index fd8ca1bd..ca3083a9 100644 --- a/js/MatrixOp/MATPINV.js +++ b/js/MatrixOp/MATPINV.js @@ -29,6 +29,10 @@ function MATPINV() { return this.x; } MATPINV.prototype.get = function MATPINV() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } MATPINV.prototype.set = function MATPINV() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATRESH.js b/js/MatrixOp/MATRESH.js index 1a44ec6d..f88b73ea 100644 --- a/js/MatrixOp/MATRESH.js +++ b/js/MatrixOp/MATRESH.js @@ -29,6 +29,12 @@ function MATRESH() { return this.x; } MATRESH.prototype.get = function MATRESH() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + l1:["input size",this.l1], + out:["output size desired",this.out], + } + return options; } MATRESH.prototype.set = function MATRESH() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATSING.js b/js/MatrixOp/MATSING.js index edeaf552..1d1aac24 100644 --- a/js/MatrixOp/MATSING.js +++ b/js/MatrixOp/MATSING.js @@ -29,6 +29,11 @@ function MATSING() { return this.x; } MATSING.prototype.get = function MATSING() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["decomposition type (1=singular values 2=sing values+matrix U & V)",this.decomptyp], + } + return options; } MATSING.prototype.set = function MATSING() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATSUM.js b/js/MatrixOp/MATSUM.js index 8200c76d..3d10db3c 100644 --- a/js/MatrixOp/MATSUM.js +++ b/js/MatrixOp/MATSUM.js @@ -29,6 +29,11 @@ function MATSUM() { return this.x; } MATSUM.prototype.get = function MATSUM() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + decomptyp:["Sum along (0=all 1=lines 2=Columns)",this.decomptyp], + } + return options; } MATSUM.prototype.set = function MATSUM() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATTRAN.js b/js/MatrixOp/MATTRAN.js index 7f06522c..a983ea27 100644 --- a/js/MatrixOp/MATTRAN.js +++ b/js/MatrixOp/MATTRAN.js @@ -17,6 +17,11 @@ function MATTRAN() { return this.x; } MATTRAN.prototype.get = function MATTRAN() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + rule:["rule (1=.\' 2=\')",this.rule], + } + return options; } MATTRAN.prototype.set = function MATTRAN() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/MATZCONJ.js b/js/MatrixOp/MATZCONJ.js index 438500e2..f2a49d4d 100644 --- a/js/MatrixOp/MATZCONJ.js +++ b/js/MatrixOp/MATZCONJ.js @@ -29,6 +29,9 @@ function MATZCONJ() { return this.x; } MATZCONJ.prototype.get = function MATZCONJ() { + var options = { + } + return options; } MATZCONJ.prototype.set = function MATZCONJ() { this.x = arg1; diff --git a/js/MatrixOp/MATZREIM.js b/js/MatrixOp/MATZREIM.js index 66eb87c5..9cee64b3 100644 --- a/js/MatrixOp/MATZREIM.js +++ b/js/MatrixOp/MATZREIM.js @@ -29,6 +29,10 @@ function MATZREIM() { return this.x; } MATZREIM.prototype.get = function MATZREIM() { + var options = { + decomptyp:["decomposition type (1=Complex2Real&Imag 2=Real&Imag2Complex)",this.decomptyp], + } + return options; } MATZREIM.prototype.set = function MATZREIM() { this.decomptyp = parseFloat((arguments[0]["decomptyp"])) diff --git a/js/MatrixOp/RICC.js b/js/MatrixOp/RICC.js index 8e2b989d..7c8b496d 100644 --- a/js/MatrixOp/RICC.js +++ b/js/MatrixOp/RICC.js @@ -29,6 +29,11 @@ function RICC() { return this.x; } RICC.prototype.get = function RICC() { + var options = { + tpe:["Type (1=Cont 2=Disc)",this.tpe], + mod:["Model(1=Schr 2=sign(cont) inv(disc))",this.mod], + } + return options; } RICC.prototype.set = function RICC() { this.tpe = parseFloat((arguments[0]["tpe"])) diff --git a/js/MatrixOp/ROOTCOEF.js b/js/MatrixOp/ROOTCOEF.js index 9e84d04a..51c5f758 100644 --- a/js/MatrixOp/ROOTCOEF.js +++ b/js/MatrixOp/ROOTCOEF.js @@ -29,6 +29,11 @@ function ROOTCOEF() { return this.x; } ROOTCOEF.prototype.get = function ROOTCOEF() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + inp:["input row size",this.inp], + } + return options; } ROOTCOEF.prototype.set = function ROOTCOEF() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/SQRT.js b/js/MatrixOp/SQRT.js index 24d5f40d..d10eabdc 100644 --- a/js/MatrixOp/SQRT.js +++ b/js/MatrixOp/SQRT.js @@ -19,6 +19,10 @@ function SQRT() { return this.x; } SQRT.prototype.get = function SQRT() { + var options = { + typ:["Datatype(1=real double 2=Complex)",this.typ], + } + return options; } SQRT.prototype.set = function SQRT() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/MatrixOp/SUBMAT.js b/js/MatrixOp/SUBMAT.js index 09ee6391..c613a1fd 100644 --- a/js/MatrixOp/SUBMAT.js +++ b/js/MatrixOp/SUBMAT.js @@ -29,6 +29,15 @@ function SUBMAT() { return this.x; } SUBMAT.prototype.get = function SUBMAT() { + var options = { + typ:["Datatype (1=real double 2=Complex)",this.typ], + a:["Starting Row Index",this.a], + b:["Ending Row Index",this.b], + c:["Starting Column Index",this.c], + d:["Ending Column Index",this.d], + inp:["Input Dimensions",this.inp], + } + return options; } SUBMAT.prototype.set = function SUBMAT() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/Misc/AUTOMAT.js b/js/Misc/AUTOMAT.js index c2f59ffb..d4305671 100644 --- a/js/Misc/AUTOMAT.js +++ b/js/Misc/AUTOMAT.js @@ -31,6 +31,9 @@ function AUTOMAT() { return this.x; } AUTOMAT.prototype.get = function AUTOMAT() { + var options = { + } + return options; } AUTOMAT.prototype.set = function AUTOMAT() { this.x = arg1; diff --git a/js/Misc/BACKLASH.js b/js/Misc/BACKLASH.js index b02a3366..e7819b8e 100644 --- a/js/Misc/BACKLASH.js +++ b/js/Misc/BACKLASH.js @@ -18,6 +18,12 @@ function BACKLASH() { return this.x; } BACKLASH.prototype.get = function BACKLASH() { + var options = { + ini:["initial output",this.ini], + gap:["gap",this.gap], + zcr:["use zero-crossing (0:no, 1:yes)",this.zcr], + } + return options; } BACKLASH.prototype.set = function BACKLASH() { this.ini = parseFloat((arguments[0]["ini"])) diff --git a/js/Misc/BOUNCE.js b/js/Misc/BOUNCE.js index 05e4a011..0aa04885 100644 --- a/js/Misc/BOUNCE.js +++ b/js/Misc/BOUNCE.js @@ -42,6 +42,18 @@ function BOUNCE() { return this.x; } BOUNCE.prototype.get = function BOUNCE() { + var options = { + rpar1:["Mass",this.rpar1], + rpar2:["Radius",this.rpar2], + walls:["[xmin,xmax,ymin,ymax]",this.walls], + xt:["xpos",this.xt], + xd:["xdpos",this.xd], + y:["ypos",this.y], + yd:["ydpos",this.yd], + g:["g (gravity)",this.g], + C:["C (aerodynamic coeff",this.C], + } + return options; } BOUNCE.prototype.set = function BOUNCE() { this.rpar1 = parseFloat((arguments[0]["rpar1"])) diff --git a/js/Misc/BOUNCEXY.js b/js/Misc/BOUNCEXY.js index 459f5f13..009df1f2 100644 --- a/js/Misc/BOUNCEXY.js +++ b/js/Misc/BOUNCEXY.js @@ -39,6 +39,17 @@ function BOUNCEXY() { return this.x; } BOUNCEXY.prototype.get = function BOUNCEXY() { + var options = { + clrs:["colors",this.clrs], + siz:["radii",this.siz], + win:["window number (-1 for automatic)",this.win], + imode:["animation mode (0,1)",this.imode], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + } + return options; } BOUNCEXY.prototype.set = function BOUNCEXY() { this.clrs = parseFloat((arguments[0]["clrs"])) diff --git a/js/Misc/BPLATFORM.js b/js/Misc/BPLATFORM.js index 943be74d..3f29cbfc 100644 --- a/js/Misc/BPLATFORM.js +++ b/js/Misc/BPLATFORM.js @@ -25,6 +25,16 @@ function BPLATFORM() { return this.x; } BPLATFORM.prototype.get = function BPLATFORM() { + var options = { + plen:["pendulum length",this.plen], + csiz:["cart size (square side)",this.csiz], + phi:["slope",this.phi], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + } + return options; } BPLATFORM.prototype.set = function BPLATFORM() { this.plen = parseFloat((arguments[0]["plen"])) diff --git a/js/Misc/CBLOCK.js b/js/Misc/CBLOCK.js index abad4da3..3bb0b78d 100644 --- a/js/Misc/CBLOCK.js +++ b/js/Misc/CBLOCK.js @@ -36,6 +36,23 @@ function CBLOCK() { return this.x; } CBLOCK.prototype.get = function CBLOCK() { + var options = { + function_name:["simulation function",this.function_name], + impli:["is block implicit? (y,n)",this.impli], + i:["input ports sizes",this.i], + o:["output ports sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + ng:["number of zero crossing surfaces",this.ng], + z:["initial discrete state",this.z], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + depu:["direct feedthrough (y or n)",this.depu], + dept:["time dependence (y or n)",this.dept], + } + return options; } CBLOCK.prototype.set = function CBLOCK() { this.function_name = parseFloat((arguments[0]["function_name"])) diff --git a/js/Misc/CBLOCK4.js b/js/Misc/CBLOCK4.js index 1370002b..d86f6499 100644 --- a/js/Misc/CBLOCK4.js +++ b/js/Misc/CBLOCK4.js @@ -20,6 +20,28 @@ function CBLOCK4() { return this.x; } CBLOCK4.prototype.get = function CBLOCK4() { + var options = { + function_name:["Simulation function",this.function_name], + impli:["Is block implicit? (y,n)",this.impli], + in1:["Input ports sizes",this.in1], + it:["Input ports type",this.it], + out:["Output port sizes",this.out], + ot:["Output ports type",this.ot], + ci:["Input event ports sizes",this.ci], + co:["Output events ports sizes",this.co], + xx:["Initial continuous state",this.xx], + z:["Initial discrete state",this.z], + oz:["Initial object state",this.oz], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + opar:["Object parameters list",this.opar], + nmode:["Number of modes",this.nmode], + nzcr:["Number of zero crossings",this.nzcr], + auto0:["Initial firing vector (<0 for no firing)",this.auto0], + depu:["Direct feedthrough (y or n)",this.depu], + dept:["Time dependence (y or n)",this.dept], + } + return options; } CBLOCK4.prototype.set = function CBLOCK4() { this.function_name = parseFloat((arguments[0]["function_name"])) diff --git a/js/Misc/CONSTRAINT2_c.js b/js/Misc/CONSTRAINT2_c.js index b30bdd95..62c3ae4e 100644 --- a/js/Misc/CONSTRAINT2_c.js +++ b/js/Misc/CONSTRAINT2_c.js @@ -21,6 +21,12 @@ function CONSTRAINT2_c() { return this.x; } CONSTRAINT2_c.prototype.get = function CONSTRAINT2_c() { + var options = { + x0:["Initial guess values of states x",this.x0], + xd0:["Initial guess values of derivative x\'",this.xd0], + id:["Id(i)=1: if x\'(i) is present in the feedback, else Id(i)=0",this.id], + } + return options; } CONSTRAINT2_c.prototype.set = function CONSTRAINT2_c() { this.x0 = parseFloat((arguments[0]["x0"])) diff --git a/js/Misc/CONSTRAINT_c.js b/js/Misc/CONSTRAINT_c.js index 57a6d9b2..cc86e346 100644 --- a/js/Misc/CONSTRAINT_c.js +++ b/js/Misc/CONSTRAINT_c.js @@ -19,6 +19,9 @@ function CONSTRAINT_c() { return this.x; } CONSTRAINT_c.prototype.get = function CONSTRAINT_c() { + var options = { + } + return options; } CONSTRAINT_c.prototype.set = function CONSTRAINT_c() { this.x0 = parseFloat((arguments[0]["x0"])) diff --git a/js/Misc/DEADBAND.js b/js/Misc/DEADBAND.js index d42e8858..7b67acd9 100644 --- a/js/Misc/DEADBAND.js +++ b/js/Misc/DEADBAND.js @@ -22,6 +22,12 @@ function DEADBAND() { return this.x; } DEADBAND.prototype.get = function DEADBAND() { + var options = { + maxp:["End of dead band",this.maxp], + minp:["Start of dead band",this.minp], + zeroc:["zero crossing (0:no, 1:yes)",this.zeroc], + } + return options; } DEADBAND.prototype.set = function DEADBAND() { this.maxp = parseFloat((arguments[0]["maxp"])) diff --git a/js/Misc/DEBUG.js b/js/Misc/DEBUG.js index 70f7ce11..eb8969d4 100644 --- a/js/Misc/DEBUG.js +++ b/js/Misc/DEBUG.js @@ -13,6 +13,9 @@ function DEBUG() { return this.x; } DEBUG.prototype.get = function DEBUG() { + var options = { + } + return options; } DEBUG.prototype.set = function DEBUG() { this.x = arg1; diff --git a/js/Misc/DEBUG_SCICOS.js b/js/Misc/DEBUG_SCICOS.js index 48e93ccc..28944332 100644 --- a/js/Misc/DEBUG_SCICOS.js +++ b/js/Misc/DEBUG_SCICOS.js @@ -8,6 +8,9 @@ function DEBUG_SCICOS() { return this.x; } DEBUG_SCICOS.prototype.get = function DEBUG_SCICOS() { + var options = { + } + return options; } DEBUG_SCICOS.prototype.set = function DEBUG_SCICOS() { arg1.gui = "DEBUG"; diff --git a/js/Misc/DIFF_f.js b/js/Misc/DIFF_f.js index cbc9619d..793fc9a2 100644 --- a/js/Misc/DIFF_f.js +++ b/js/Misc/DIFF_f.js @@ -18,6 +18,11 @@ function DIFF_f() { return this.x; } DIFF_f.prototype.get = function DIFF_f() { + var options = { + x0:["Initial state",this.x0], + xd0:["Initial Derivative",this.xd0], + } + return options; } DIFF_f.prototype.set = function DIFF_f() { this.x0 = parseFloat((arguments[0]["x0"])) diff --git a/js/Misc/DSUPER.js b/js/Misc/DSUPER.js index 3f1bcc1b..4d36f641 100644 --- a/js/Misc/DSUPER.js +++ b/js/Misc/DSUPER.js @@ -7,6 +7,9 @@ function DSUPER() { return this.x; } DSUPER.prototype.get = function DSUPER() { + var options = { + } + return options; } DSUPER.prototype.set = function DSUPER() { y = this.needcompile; diff --git a/js/Misc/EDGETRIGGER.js b/js/Misc/EDGETRIGGER.js index c7ee1a2e..cf2fe414 100644 --- a/js/Misc/EDGETRIGGER.js +++ b/js/Misc/EDGETRIGGER.js @@ -20,6 +20,10 @@ function EDGETRIGGER() { return this.x; } EDGETRIGGER.prototype.get = function EDGETRIGGER() { + var options = { + edge:["rising (1), falling (-1), both (0)",this.edge], + } + return options; } EDGETRIGGER.prototype.set = function EDGETRIGGER() { this.edge = parseFloat((arguments[0]["edge"])) diff --git a/js/Misc/EDGE_TRIGGER.js b/js/Misc/EDGE_TRIGGER.js index ad159da5..452ad747 100644 --- a/js/Misc/EDGE_TRIGGER.js +++ b/js/Misc/EDGE_TRIGGER.js @@ -85,6 +85,9 @@ function EDGE_TRIGGER() { return this.x; } EDGE_TRIGGER.prototype.get = function EDGE_TRIGGER() { + var options = { + } + return options; } EDGE_TRIGGER.prototype.set = function EDGE_TRIGGER() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { diff --git a/js/Misc/ENDBLK.js b/js/Misc/ENDBLK.js index 384c2020..c28cda3b 100644 --- a/js/Misc/ENDBLK.js +++ b/js/Misc/ENDBLK.js @@ -13,6 +13,9 @@ function ENDBLK() { return this.x; } ENDBLK.prototype.get = function ENDBLK() { + var options = { + } + return options; } ENDBLK.prototype.set = function ENDBLK() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { diff --git a/js/Misc/Extract_Activation.js b/js/Misc/Extract_Activation.js index fcb729d6..f6e70284 100644 --- a/js/Misc/Extract_Activation.js +++ b/js/Misc/Extract_Activation.js @@ -90,6 +90,9 @@ function Extract_Activation() { return this.x; } Extract_Activation.prototype.get = function Extract_Activation() { + var options = { + } + return options; } Extract_Activation.prototype.set = function Extract_Activation() { this.x = arg1; diff --git a/js/Misc/HYSTHERESIS.js b/js/Misc/HYSTHERESIS.js index 246ce23c..3f94c918 100644 --- a/js/Misc/HYSTHERESIS.js +++ b/js/Misc/HYSTHERESIS.js @@ -23,6 +23,14 @@ function HYSTHERESIS() { return this.x; } HYSTHERESIS.prototype.get = function HYSTHERESIS() { + var options = { + high_lim:["switch on at",this.high_lim], + low_lim:["switch off at",this.low_lim], + out_high:["output when on",this.out_high], + out_low:["output when off",this.out_low], + nzz:["use zero crossing: yes (1), no (0)",this.nzz], + } + return options; } HYSTHERESIS.prototype.set = function HYSTHERESIS() { this.high_lim = parseFloat((arguments[0]["high_lim"])) diff --git a/js/Misc/IMPSPLIT_f.js b/js/Misc/IMPSPLIT_f.js index ddbc3450..11ad9e4c 100644 --- a/js/Misc/IMPSPLIT_f.js +++ b/js/Misc/IMPSPLIT_f.js @@ -19,6 +19,9 @@ function IMPSPLIT_f() { return this.x; } IMPSPLIT_f.prototype.get = function IMPSPLIT_f() { + var options = { + } + return options; } IMPSPLIT_f.prototype.set = function IMPSPLIT_f() { this.x = arg1; diff --git a/js/Misc/LOGICAL_OP.js b/js/Misc/LOGICAL_OP.js index ec4b80b9..34892534 100644 --- a/js/Misc/LOGICAL_OP.js +++ b/js/Misc/LOGICAL_OP.js @@ -20,6 +20,13 @@ function LOGICAL_OP() { return this.x; } LOGICAL_OP.prototype.get = function LOGICAL_OP() { + var options = { + nin:["number of inputs",this.nin], + rule:["Operator: AND (0), OR (1), NAND (2), NOR (3), XOR (4), NOT (5)",this.rule], + Datatype:["Datatype (1=double 3=int32 ...)",this.Datatype], + tp:["Bitwise Rule(0=No 1=yes)",this.tp], + } + return options; } LOGICAL_OP.prototype.set = function LOGICAL_OP() { this.nin = parseFloat((arguments[0]["nin"])) diff --git a/js/Misc/MBLOCK.js b/js/Misc/MBLOCK.js index ae8d0cb9..ba9db08e 100644 --- a/js/Misc/MBLOCK.js +++ b/js/Misc/MBLOCK.js @@ -36,6 +36,16 @@ function MBLOCK() { return this.x; } MBLOCK.prototype.get = function MBLOCK() { + var options = { + Tin:["Input variables: ",this.Tin], + Tintype:["Input variables types: ",this.Tintype], + Tout:["Output variables: ",this.Tout], + Touttype:["Output variables types:",this.Touttype], + Tparam:["Parameters in Modelica:",this.Tparam], + pprop:["Parameters properties: ",this.pprop], + Tfunam:["Function name: ",this.Tfunam], + } + return options; } MBLOCK.prototype.set = function MBLOCK() { this.Tin = parseFloat((arguments[0]["Tin"])) diff --git a/js/Misc/MEMORY_f.js b/js/Misc/MEMORY_f.js index e6b70b35..fbe66f83 100644 --- a/js/Misc/MEMORY_f.js +++ b/js/Misc/MEMORY_f.js @@ -21,6 +21,11 @@ function MEMORY_f() { return this.x; } MEMORY_f.prototype.get = function MEMORY_f() { + var options = { + a:["initial condition",this.a], + inh:["Inherit (1: no, 0: yes)",this.inh], + } + return options; } MEMORY_f.prototype.set = function MEMORY_f() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/Misc/MPBLOCK.js b/js/Misc/MPBLOCK.js index 911a19d7..9d7de2f0 100644 --- a/js/Misc/MPBLOCK.js +++ b/js/Misc/MPBLOCK.js @@ -36,6 +36,9 @@ function MPBLOCK() { return this.x; } MPBLOCK.prototype.get = function MPBLOCK() { + var options = { + } + return options; } MPBLOCK.prototype.set = function MPBLOCK() { this.x = arg1; diff --git a/js/Misc/PAL_f.js b/js/Misc/PAL_f.js index f325c8c6..acb871f7 100644 --- a/js/Misc/PAL_f.js +++ b/js/Misc/PAL_f.js @@ -19,6 +19,9 @@ function PAL_f() { return this.x; } PAL_f.prototype.get = function PAL_f() { + var options = { + } + return options; } PAL_f.prototype.set = function PAL_f() { [this.x,newparameters,needcompile,edited] = scicos(arg1.model.rpar); diff --git a/js/Misc/PENDULUM_ANIM.js b/js/Misc/PENDULUM_ANIM.js index 73b79503..b0a2d933 100644 --- a/js/Misc/PENDULUM_ANIM.js +++ b/js/Misc/PENDULUM_ANIM.js @@ -25,6 +25,16 @@ function PENDULUM_ANIM() { return this.x; } PENDULUM_ANIM.prototype.get = function PENDULUM_ANIM() { + var options = { + plen:["pendulum length",this.plen], + csiz:["cart size (square side)",this.csiz], + phi:["slope",this.phi], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + } + return options; } PENDULUM_ANIM.prototype.set = function PENDULUM_ANIM() { this.plen = parseFloat((arguments[0]["plen"])) diff --git a/js/Misc/RATELIMITER.js b/js/Misc/RATELIMITER.js index 307ca34c..5a26ef56 100644 --- a/js/Misc/RATELIMITER.js +++ b/js/Misc/RATELIMITER.js @@ -20,6 +20,11 @@ function RATELIMITER() { return this.x; } RATELIMITER.prototype.get = function RATELIMITER() { + var options = { + maxp:["max slope",this.maxp], + minp:["min slope",this.minp], + } + return options; } RATELIMITER.prototype.set = function RATELIMITER() { this.maxp = parseFloat((arguments[0]["maxp"])) diff --git a/js/Misc/RELATIONALOP.js b/js/Misc/RELATIONALOP.js index 2d8fbe24..588397bb 100644 --- a/js/Misc/RELATIONALOP.js +++ b/js/Misc/RELATIONALOP.js @@ -20,6 +20,12 @@ function RELATIONALOP() { return this.x; } RELATIONALOP.prototype.get = function RELATIONALOP() { + var options = { + rule:["Operator: == (0), ~= (1), < (2), <= (3), > (4), >= (5)",this.rule], + zcr:["Use zero crossing (no: 0), (yes: 1)",this.zcr], + Datatype:["Datatype (1=double 3=int32 ...)",this.Datatype], + } + return options; } RELATIONALOP.prototype.set = function RELATIONALOP() { this.rule = parseFloat((arguments[0]["rule"])) diff --git a/js/Misc/SPLIT_f.js b/js/Misc/SPLIT_f.js index ba8449cc..cb64d887 100644 --- a/js/Misc/SPLIT_f.js +++ b/js/Misc/SPLIT_f.js @@ -14,6 +14,9 @@ function SPLIT_f() { return this.x; } SPLIT_f.prototype.get = function SPLIT_f() { + var options = { + } + return options; } SPLIT_f.prototype.set = function SPLIT_f() { this.x = arg1; diff --git a/js/Misc/SUPER_f.js b/js/Misc/SUPER_f.js index 96598262..5aab1088 100644 --- a/js/Misc/SUPER_f.js +++ b/js/Misc/SUPER_f.js @@ -26,6 +26,9 @@ function SUPER_f() { return this.x; } SUPER_f.prototype.get = function SUPER_f() { + var options = { + } + return options; } SUPER_f.prototype.set = function SUPER_f() { xcos(arg1.model.rpar); diff --git a/js/Misc/TEXT_f.js b/js/Misc/TEXT_f.js index ff33543c..8b4b2fbc 100644 --- a/js/Misc/TEXT_f.js +++ b/js/Misc/TEXT_f.js @@ -19,6 +19,12 @@ function TEXT_f() { return this.x; } TEXT_f.prototype.get = function TEXT_f() { + var options = { + txt:["Text",this.txt], + font:["Font number",this.font], + siz:["Font size",this.siz], + } + return options; } TEXT_f.prototype.set = function TEXT_f() { this.txt = parseFloat((arguments[0]["txt"])) diff --git a/js/Misc/c_block.js b/js/Misc/c_block.js index e47820c6..758e255f 100644 --- a/js/Misc/c_block.js +++ b/js/Misc/c_block.js @@ -33,6 +33,13 @@ function c_block() { return this.x; } c_block.prototype.get = function c_block() { + var options = { + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + rpar:["System parameters vector",this.rpar], + funam:["function name",this.funam], + } + return options; } c_block.prototype.set = function c_block() { this.i = parseFloat((arguments[0]["i"])) diff --git a/js/Misc/fortran_block.js b/js/Misc/fortran_block.js index c6e76965..4b138b9d 100644 --- a/js/Misc/fortran_block.js +++ b/js/Misc/fortran_block.js @@ -24,6 +24,13 @@ function fortran_block() { return this.x; } fortran_block.prototype.get = function fortran_block() { + var options = { + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + rpar:["System parameters vector",this.rpar], + funam:["function name",this.funam], + } + return options; } fortran_block.prototype.set = function fortran_block() { this.i = parseFloat((arguments[0]["i"])) diff --git a/js/Misc/func_block.js b/js/Misc/func_block.js index f66d74a6..e275af9e 100644 --- a/js/Misc/func_block.js +++ b/js/Misc/func_block.js @@ -16,6 +16,9 @@ function func_block() { return this.x; } func_block.prototype.get = function func_block() { + var options = { + } + return options; } func_block.prototype.set = function func_block() { model = arg1.model; diff --git a/js/Misc/generic_block.js b/js/Misc/generic_block.js index eab48a00..6c774b38 100644 --- a/js/Misc/generic_block.js +++ b/js/Misc/generic_block.js @@ -25,6 +25,22 @@ function generic_block() { return this.x; } generic_block.prototype.get = function generic_block() { + var options = { + function_name:["simulation function",this.function_name], + funtyp:["function type (0,1,2,..)",this.funtyp], + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + z:["initial discrete state",this.z], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + depu:["direct feedthrough (y or n)",this.depu], + dept:["time dependence (y or n)",this.dept], + } + return options; } generic_block.prototype.set = function generic_block() { this.function_name = parseFloat((arguments[0]["function_name"])) diff --git a/js/Misc/generic_block2.js b/js/Misc/generic_block2.js index 1e9b0ca2..6e84a782 100644 --- a/js/Misc/generic_block2.js +++ b/js/Misc/generic_block2.js @@ -25,6 +25,24 @@ function generic_block2() { return this.x; } generic_block2.prototype.get = function generic_block2() { + var options = { + function_name:["simulation function",this.function_name], + funtyp:["function type (0,1,2,..)",this.funtyp], + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + z:["initial discrete state",this.z], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + nmode:["number of modes",this.nmode], + nzcr:["number of zero_crossings",this.nzcr], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + depu:["direct feedthrough (y or n)",this.depu], + dept:["time dependence (y or n)",this.dept], + } + return options; } generic_block2.prototype.set = function generic_block2() { this.function_name = parseFloat((arguments[0]["function_name"])) diff --git a/js/Misc/generic_block3.js b/js/Misc/generic_block3.js index 0e53bef7..4a90073a 100644 --- a/js/Misc/generic_block3.js +++ b/js/Misc/generic_block3.js @@ -21,6 +21,28 @@ function generic_block3() { return this.x; } generic_block3.prototype.get = function generic_block3() { + var options = { + function_name:["Simulation function",this.function_name], + funtyp:["Function type (0,1,2,..)",this.funtyp], + in1:["Input ports sizes",this.in1], + it:["Input ports type",this.it], + out:["Output port sizes",this.out], + ot:["Output ports type",this.ot], + ci:["Input event ports sizes",this.ci], + co:["Output events ports sizes",this.co], + xx:["Initial continuous state",this.xx], + z:["Initial discrete state",this.z], + oz:["Initial object state",this.oz], + rpar:["Real parameters vector",this.rpar], + ipar:["Integer parameters vector",this.ipar], + opar:["Object parameters list",this.opar], + nmode:["Number of modes",this.nmode], + nzcr:["Number of zero crossings",this.nzcr], + auto0:["Initial firing vector (<0 for no firing)",this.auto0], + depu:["Direct feedthrough (y or n)",this.depu], + dept:["Time dependence (y or n)",this.dept], + } + return options; } generic_block3.prototype.set = function generic_block3() { this.function_name = parseFloat((arguments[0]["function_name"])) diff --git a/js/Misc/scifunc_block.js b/js/Misc/scifunc_block.js index 783ab8f9..1fe2522c 100644 --- a/js/Misc/scifunc_block.js +++ b/js/Misc/scifunc_block.js @@ -33,6 +33,18 @@ function scifunc_block() { return this.x; } scifunc_block.prototype.get = function scifunc_block() { + var options = { + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + z:["initial discrete state",this.z], + rpar:["System parameters vector",this.rpar], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + deptime:["is block always active (0:no, 1:yes)",this.deptime], + } + return options; } scifunc_block.prototype.set = function scifunc_block() { this.i = parseFloat((arguments[0]["i"])) diff --git a/js/Misc/scifunc_block_m.js b/js/Misc/scifunc_block_m.js index b96f422c..ddfb8bbb 100644 --- a/js/Misc/scifunc_block_m.js +++ b/js/Misc/scifunc_block_m.js @@ -38,6 +38,18 @@ function scifunc_block_m() { return this.x; } scifunc_block_m.prototype.get = function scifunc_block_m() { + var options = { + i:["input ports sizes",this.i], + o:["output port sizes",this.o], + ci:["input event ports sizes",this.ci], + co:["output events ports sizes",this.co], + xx:["initial continuous state",this.xx], + z:["initial discrete state",this.z], + rpar:["System parameters vector",this.rpar], + auto0:["initial firing vector (<0 for no firing)",this.auto0], + deptime:["is block always active (0:no, 1:yes)",this.deptime], + } + return options; } scifunc_block_m.prototype.set = function scifunc_block_m() { this.i = parseFloat((arguments[0]["i"])) diff --git a/js/NonLinear/ABSBLK_f.js b/js/NonLinear/ABSBLK_f.js index a33ee869..058d4895 100644 --- a/js/NonLinear/ABSBLK_f.js +++ b/js/NonLinear/ABSBLK_f.js @@ -15,6 +15,9 @@ function ABSBLK_f() { return this.x; } ABSBLK_f.prototype.get = function ABSBLK_f() { + var options = { + } + return options; } ABSBLK_f.prototype.set = function ABSBLK_f() { this.x = arg1; diff --git a/js/NonLinear/ABS_VALUE.js b/js/NonLinear/ABS_VALUE.js index 1002b0ea..da4d3854 100644 --- a/js/NonLinear/ABS_VALUE.js +++ b/js/NonLinear/ABS_VALUE.js @@ -19,6 +19,10 @@ function ABS_VALUE() { return this.x; } ABS_VALUE.prototype.get = function ABS_VALUE() { + var options = { + zcr:["use zero_crossing (1: yes) (0:no)",this.zcr], + } + return options; } ABS_VALUE.prototype.set = function ABS_VALUE() { this.zcr = parseFloat((arguments[0]["zcr"])) diff --git a/js/NonLinear/COSBLK_f.js b/js/NonLinear/COSBLK_f.js index f39985a3..0b510327 100644 --- a/js/NonLinear/COSBLK_f.js +++ b/js/NonLinear/COSBLK_f.js @@ -16,6 +16,9 @@ function COSBLK_f() { return this.x; } COSBLK_f.prototype.get = function COSBLK_f() { + var options = { + } + return options; } COSBLK_f.prototype.set = function COSBLK_f() { this.x = arg1; diff --git a/js/NonLinear/DLRADAPT_f.js b/js/NonLinear/DLRADAPT_f.js index b8018d7b..3bb3e9bd 100644 --- a/js/NonLinear/DLRADAPT_f.js +++ b/js/NonLinear/DLRADAPT_f.js @@ -27,6 +27,15 @@ function DLRADAPT_f() { return this.x; } DLRADAPT_f.prototype.get = function DLRADAPT_f() { + var options = { + p:["Vector of p mesh points",this.p], + rn:["Numerator roots (one line for each mesh)",this.rn], + rd:["Denominator roots (one line for each mesh)",this.rd], + g:["Vector of gain at mesh points",this.g], + last_u:["past inputs (Num degree values)",this.last_u], + last_y:["past outputs (Den degree values)",this.last_y], + } + return options; } DLRADAPT_f.prototype.set = function DLRADAPT_f() { this.p = parseFloat((arguments[0]["p"])) diff --git a/js/NonLinear/EXPBLK_f.js b/js/NonLinear/EXPBLK_f.js index 656447a9..1a47f639 100644 --- a/js/NonLinear/EXPBLK_f.js +++ b/js/NonLinear/EXPBLK_f.js @@ -19,6 +19,9 @@ function EXPBLK_f() { return this.x; } EXPBLK_f.prototype.get = function EXPBLK_f() { + var options = { + } + return options; } EXPBLK_f.prototype.set = function EXPBLK_f() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/NonLinear/EXPBLK_m.js b/js/NonLinear/EXPBLK_m.js index 7b792a21..fa981dc4 100644 --- a/js/NonLinear/EXPBLK_m.js +++ b/js/NonLinear/EXPBLK_m.js @@ -23,6 +23,9 @@ function EXPBLK_m() { return this.x; } EXPBLK_m.prototype.get = function EXPBLK_m() { + var options = { + } + return options; } EXPBLK_m.prototype.set = function EXPBLK_m() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/NonLinear/FSV_f.js b/js/NonLinear/FSV_f.js index 2754cca1..d29bcb9e 100644 --- a/js/NonLinear/FSV_f.js +++ b/js/NonLinear/FSV_f.js @@ -17,6 +17,9 @@ function FSV_f() { return this.x; } FSV_f.prototype.get = function FSV_f() { + var options = { + } + return options; } FSV_f.prototype.set = function FSV_f() { this.x = arg1; diff --git a/js/NonLinear/INTRP2BLK_f.js b/js/NonLinear/INTRP2BLK_f.js index b5eb2a08..792d9598 100644 --- a/js/NonLinear/INTRP2BLK_f.js +++ b/js/NonLinear/INTRP2BLK_f.js @@ -21,6 +21,12 @@ function INTRP2BLK_f() { return this.x; } INTRP2BLK_f.prototype.get = function INTRP2BLK_f() { + var options = { + a:["X coord.",this.a], + b:["Y coord.",this.b], + c:["Z values",this.c], + } + return options; } INTRP2BLK_f.prototype.set = function INTRP2BLK_f() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/NonLinear/INTRPLBLK_f.js b/js/NonLinear/INTRPLBLK_f.js index 624cd5be..17a4d514 100644 --- a/js/NonLinear/INTRPLBLK_f.js +++ b/js/NonLinear/INTRPLBLK_f.js @@ -19,6 +19,11 @@ function INTRPLBLK_f() { return this.x; } INTRPLBLK_f.prototype.get = function INTRPLBLK_f() { + var options = { + a:["X coord.",this.a], + b:["Y coord.",this.b], + } + return options; } INTRPLBLK_f.prototype.set = function INTRPLBLK_f() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/NonLinear/INVBLK.js b/js/NonLinear/INVBLK.js index 8c6911f1..5d8b700c 100644 --- a/js/NonLinear/INVBLK.js +++ b/js/NonLinear/INVBLK.js @@ -17,6 +17,9 @@ function INVBLK() { return this.x; } INVBLK.prototype.get = function INVBLK() { + var options = { + } + return options; } INVBLK.prototype.set = function INVBLK() { this.x = arg1; diff --git a/js/NonLinear/INVBLK_f.js b/js/NonLinear/INVBLK_f.js index 4a4facc4..9cde7bbb 100644 --- a/js/NonLinear/INVBLK_f.js +++ b/js/NonLinear/INVBLK_f.js @@ -17,6 +17,9 @@ function INVBLK_f() { return this.x; } INVBLK_f.prototype.get = function INVBLK_f() { + var options = { + } + return options; } INVBLK_f.prototype.set = function INVBLK_f() { this.x = arg1; diff --git a/js/NonLinear/LOGBLK_f.js b/js/NonLinear/LOGBLK_f.js index b969d220..85bd7db0 100644 --- a/js/NonLinear/LOGBLK_f.js +++ b/js/NonLinear/LOGBLK_f.js @@ -19,6 +19,9 @@ function LOGBLK_f() { return this.x; } LOGBLK_f.prototype.get = function LOGBLK_f() { + var options = { + } + return options; } LOGBLK_f.prototype.set = function LOGBLK_f() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/NonLinear/LOOKUP2D.js b/js/NonLinear/LOOKUP2D.js index 23558d4a..3307c02b 100644 --- a/js/NonLinear/LOOKUP2D.js +++ b/js/NonLinear/LOOKUP2D.js @@ -25,6 +25,14 @@ function LOOKUP2D() { return this.x; } LOOKUP2D.prototype.get = function LOOKUP2D() { + var options = { + xx:["Row index input values",this.xx], + yy:["Column index input values",this.yy], + zz:["Table data",this.zz], + Method:["Lookup method(1..5)",this.Method], + graf:["Launch graphic window(y/n)?",this.graf], + } + return options; } LOOKUP2D.prototype.set = function LOOKUP2D() { this.xx = parseFloat((arguments[0]["xx"])) diff --git a/js/NonLinear/LOOKUP_f.js b/js/NonLinear/LOOKUP_f.js index 0698e536..287cd87d 100644 --- a/js/NonLinear/LOOKUP_f.js +++ b/js/NonLinear/LOOKUP_f.js @@ -16,6 +16,9 @@ function LOOKUP_f() { return this.x; } LOOKUP_f.prototype.get = function LOOKUP_f() { + var options = { + } + return options; } LOOKUP_f.prototype.set = function LOOKUP_f() { this.x = arg1; diff --git a/js/NonLinear/MAXMIN.js b/js/NonLinear/MAXMIN.js index 4db80f20..1391dd7a 100644 --- a/js/NonLinear/MAXMIN.js +++ b/js/NonLinear/MAXMIN.js @@ -18,6 +18,12 @@ function MAXMIN() { return this.x; } MAXMIN.prototype.get = function MAXMIN() { + var options = { + mm:["Min (1) or Max (2) ",this.mm], + nin:["Number of input vectors (1 or 2)",this.nin], + zcr:["zero-crossing (1: yes, 0;no)",this.zcr], + } + return options; } MAXMIN.prototype.set = function MAXMIN() { this.mm = parseFloat((arguments[0]["mm"])) diff --git a/js/NonLinear/MAX_f.js b/js/NonLinear/MAX_f.js index 33aff00e..0f186bb6 100644 --- a/js/NonLinear/MAX_f.js +++ b/js/NonLinear/MAX_f.js @@ -18,6 +18,9 @@ function MAX_f() { return this.x; } MAX_f.prototype.get = function MAX_f() { + var options = { + } + return options; } MAX_f.prototype.set = function MAX_f() { this.x = arg1; diff --git a/js/NonLinear/MIN_f.js b/js/NonLinear/MIN_f.js index 98de0f89..82796940 100644 --- a/js/NonLinear/MIN_f.js +++ b/js/NonLinear/MIN_f.js @@ -18,6 +18,9 @@ function MIN_f() { return this.x; } MIN_f.prototype.get = function MIN_f() { + var options = { + } + return options; } MIN_f.prototype.set = function MIN_f() { this.x = arg1; diff --git a/js/NonLinear/POWBLK_f.js b/js/NonLinear/POWBLK_f.js index 98aea55e..34a45d67 100644 --- a/js/NonLinear/POWBLK_f.js +++ b/js/NonLinear/POWBLK_f.js @@ -19,6 +19,9 @@ function POWBLK_f() { return this.x; } POWBLK_f.prototype.get = function POWBLK_f() { + var options = { + } + return options; } POWBLK_f.prototype.set = function POWBLK_f() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/NonLinear/PRODUCT.js b/js/NonLinear/PRODUCT.js index 12d6d329..f26c8a9c 100644 --- a/js/NonLinear/PRODUCT.js +++ b/js/NonLinear/PRODUCT.js @@ -18,6 +18,9 @@ function PRODUCT() { return this.x; } PRODUCT.prototype.get = function PRODUCT() { + var options = { + } + return options; } PRODUCT.prototype.set = function PRODUCT() { this.sgn = parseFloat((arguments[0]["sgn"])) diff --git a/js/NonLinear/PROD_f.js b/js/NonLinear/PROD_f.js index 1f705174..157d61bc 100644 --- a/js/NonLinear/PROD_f.js +++ b/js/NonLinear/PROD_f.js @@ -14,6 +14,9 @@ function PROD_f() { return this.x; } PROD_f.prototype.get = function PROD_f() { + var options = { + } + return options; } PROD_f.prototype.set = function PROD_f() { this.x = arg1; diff --git a/js/NonLinear/QUANT_f.js b/js/NonLinear/QUANT_f.js index 46e78e40..23b1aa28 100644 --- a/js/NonLinear/QUANT_f.js +++ b/js/NonLinear/QUANT_f.js @@ -20,6 +20,11 @@ function QUANT_f() { return this.x; } QUANT_f.prototype.get = function QUANT_f() { + var options = { + pas:["Step",this.pas], + meth:["Quantization Type (1-4)",this.meth], + } + return options; } QUANT_f.prototype.set = function QUANT_f() { this.pas = parseFloat((arguments[0]["pas"])) diff --git a/js/NonLinear/SATURATION.js b/js/NonLinear/SATURATION.js index efc3b9f2..0506ce70 100644 --- a/js/NonLinear/SATURATION.js +++ b/js/NonLinear/SATURATION.js @@ -22,6 +22,12 @@ function SATURATION() { return this.x; } SATURATION.prototype.get = function SATURATION() { + var options = { + maxp:["Upper limit",this.maxp], + minp:["Lower limit",this.minp], + zeroc:["zero crossing (0:no, 1:yes)",this.zeroc], + } + return options; } SATURATION.prototype.set = function SATURATION() { this.maxp = parseFloat((arguments[0]["maxp"])) diff --git a/js/NonLinear/SAT_f.js b/js/NonLinear/SAT_f.js index 55d66f3d..3dc10505 100644 --- a/js/NonLinear/SAT_f.js +++ b/js/NonLinear/SAT_f.js @@ -22,6 +22,12 @@ function SAT_f() { return this.x; } SAT_f.prototype.get = function SAT_f() { + var options = { + minp:["Min",this.minp], + maxp:["Max",this.maxp], + pente:["Slope",this.pente], + } + return options; } SAT_f.prototype.set = function SAT_f() { this.minp = parseFloat((arguments[0]["minp"])) diff --git a/js/NonLinear/SIGNUM.js b/js/NonLinear/SIGNUM.js index 7776dbc7..99386542 100644 --- a/js/NonLinear/SIGNUM.js +++ b/js/NonLinear/SIGNUM.js @@ -19,6 +19,10 @@ function SIGNUM() { return this.x; } SIGNUM.prototype.get = function SIGNUM() { + var options = { + zcr:["use zero_crossing (1: yes) (0:no)",this.zcr], + } + return options; } SIGNUM.prototype.set = function SIGNUM() { this.zcr = parseFloat((arguments[0]["zcr"])) diff --git a/js/NonLinear/SINBLK_f.js b/js/NonLinear/SINBLK_f.js index 73837f3b..94069384 100644 --- a/js/NonLinear/SINBLK_f.js +++ b/js/NonLinear/SINBLK_f.js @@ -16,6 +16,9 @@ function SINBLK_f() { return this.x; } SINBLK_f.prototype.get = function SINBLK_f() { + var options = { + } + return options; } SINBLK_f.prototype.set = function SINBLK_f() { this.x = arg1; diff --git a/js/NonLinear/TANBLK_f.js b/js/NonLinear/TANBLK_f.js index 0e8294b5..66fef89f 100644 --- a/js/NonLinear/TANBLK_f.js +++ b/js/NonLinear/TANBLK_f.js @@ -17,6 +17,9 @@ function TANBLK_f() { return this.x; } TANBLK_f.prototype.get = function TANBLK_f() { + var options = { + } + return options; } TANBLK_f.prototype.set = function TANBLK_f() { this.x = arg1; diff --git a/js/NonLinear/TrigFun.js b/js/NonLinear/TrigFun.js index 599301fa..b3f30c82 100644 --- a/js/NonLinear/TrigFun.js +++ b/js/NonLinear/TrigFun.js @@ -16,6 +16,9 @@ function TrigFun() { return this.x; } TrigFun.prototype.get = function TrigFun() { + var options = { + } + return options; } TrigFun.prototype.set = function TrigFun() { this.fun = parseFloat((arguments[0]["fun"])) diff --git a/js/PDE/PDE.js b/js/PDE/PDE.js index 3de9ff0d..deeebc70 100644 --- a/js/PDE/PDE.js +++ b/js/PDE/PDE.js @@ -18,6 +18,9 @@ function PDE() { return this.x; } PDE.prototype.get = function PDE() { + var options = { + } + return options; } PDE.prototype.set = function PDE() { this.okk = parseFloat((arguments[0]["okk"])) diff --git a/js/Sinks/AFFICH_m.js b/js/Sinks/AFFICH_m.js index 79ef964a..e13fd0ea 100644 --- a/js/Sinks/AFFICH_m.js +++ b/js/Sinks/AFFICH_m.js @@ -27,6 +27,16 @@ function AFFICH_m() { return this.x; } AFFICH_m.prototype.get = function AFFICH_m() { + var options = { + in1:["Input Size",this.in1], + font:["Font number",this.font], + fontsize:["Font size",this.fontsize], + colr:["Color",this.colr], + nt:["Total number of digits",this.nt], + nd:["Number of rational part digits",this.nd], + herit:["Block inherits (1) or not (0)",this.herit], + } + return options; } AFFICH_m.prototype.set = function AFFICH_m() { this.in1 = parseFloat((arguments[0]["in1"])) diff --git a/js/Sinks/BARXY.js b/js/Sinks/BARXY.js index fcf1dec4..657f2035 100644 --- a/js/Sinks/BARXY.js +++ b/js/Sinks/BARXY.js @@ -25,6 +25,14 @@ function BARXY() { return this.x; } BARXY.prototype.get = function BARXY() { + var options = { + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + thickness:["Segs Thickness",this.thickness], + } + return options; } BARXY.prototype.set = function BARXY() { this.xmin = parseFloat((arguments[0]["xmin"])) diff --git a/js/Sinks/CANIMXY.js b/js/Sinks/CANIMXY.js index 3d9e9164..e946826f 100644 --- a/js/Sinks/CANIMXY.js +++ b/js/Sinks/CANIMXY.js @@ -32,6 +32,20 @@ function CANIMXY() { return this.x; } CANIMXY.prototype.get = function CANIMXY() { + var options = { + nbr_curves:["Number of Curves",this.nbr_curves], + clrs:["color (>0) or mark (<0)",this.clrs], + siz:["line or mark size",this.siz], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + N:["Buffer size",this.N], + } + return options; } CANIMXY.prototype.set = function CANIMXY() { this.nbr_curves = parseFloat((arguments[0]["nbr_curves"])) diff --git a/js/Sinks/CANIMXY3D.js b/js/Sinks/CANIMXY3D.js index 27522472..24f50acb 100644 --- a/js/Sinks/CANIMXY3D.js +++ b/js/Sinks/CANIMXY3D.js @@ -32,6 +32,20 @@ function CANIMXY3D() { return this.x; } CANIMXY3D.prototype.get = function CANIMXY3D() { + var options = { + nbr_curves:["Number of curves",this.nbr_curves], + clrs:["color (>0) or mark (<0)",this.clrs], + siz:["line or mark size",this.siz], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + vec_x:["Xmin and Xmax",this.vec_x], + vec_y:["Ymin and Ymax",this.vec_y], + vec_z:["Zmin and Zmax",this.vec_z], + param3ds:["Alpha and Theta",this.param3ds], + N:["Buffer size",this.N], + } + return options; } CANIMXY3D.prototype.set = function CANIMXY3D() { this.nbr_curves = parseFloat((arguments[0]["nbr_curves"])) diff --git a/js/Sinks/CEVENTSCOPE.js b/js/Sinks/CEVENTSCOPE.js index ced61867..d2aebed0 100644 --- a/js/Sinks/CEVENTSCOPE.js +++ b/js/Sinks/CEVENTSCOPE.js @@ -23,6 +23,15 @@ function CEVENTSCOPE() { return this.x; } CEVENTSCOPE.prototype.get = function CEVENTSCOPE() { + var options = { + nclock:["Number of event inputs",this.nclock], + clrs:["colors c (>0) or mark (<0)",this.clrs], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + per:["Refresh period",this.per], + } + return options; } CEVENTSCOPE.prototype.set = function CEVENTSCOPE() { this.nclock = parseFloat((arguments[0]["nclock"])) diff --git a/js/Sinks/CFSCOPE.js b/js/Sinks/CFSCOPE.js index a72ba558..48595d51 100644 --- a/js/Sinks/CFSCOPE.js +++ b/js/Sinks/CFSCOPE.js @@ -25,6 +25,18 @@ function CFSCOPE() { return this.x; } CFSCOPE.prototype.get = function CFSCOPE() { + var options = { + clrs:["Color (>0) or mark (<0) vector (8 entries)",this.clrs], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + per:["Refresh period",this.per], + N:["Buffer size",this.N], + wu:["Links to view",this.wu], + } + return options; } CFSCOPE.prototype.set = function CFSCOPE() { this.clrs = parseFloat((arguments[0]["clrs"])) diff --git a/js/Sinks/CLKOUTV_f.js b/js/Sinks/CLKOUTV_f.js index eaa54202..69f7b5cb 100644 --- a/js/Sinks/CLKOUTV_f.js +++ b/js/Sinks/CLKOUTV_f.js @@ -17,6 +17,9 @@ function CLKOUTV_f() { return this.x; } CLKOUTV_f.prototype.get = function CLKOUTV_f() { + var options = { + } + return options; } CLKOUTV_f.prototype.set = function CLKOUTV_f() { this.prt = parseFloat((arguments[0]["prt"])) diff --git a/js/Sinks/CLKOUT_f.js b/js/Sinks/CLKOUT_f.js index 69a14fd9..4d36da39 100644 --- a/js/Sinks/CLKOUT_f.js +++ b/js/Sinks/CLKOUT_f.js @@ -17,6 +17,9 @@ function CLKOUT_f() { return this.x; } CLKOUT_f.prototype.get = function CLKOUT_f() { + var options = { + } + return options; } CLKOUT_f.prototype.set = function CLKOUT_f() { this.prt = parseFloat((arguments[0]["prt"])) diff --git a/js/Sinks/CMAT3D.js b/js/Sinks/CMAT3D.js index 8e3b6f1d..ea3cf4b8 100644 --- a/js/Sinks/CMAT3D.js +++ b/js/Sinks/CMAT3D.js @@ -28,6 +28,14 @@ function CMAT3D() { return this.x; } CMAT3D.prototype.get = function CMAT3D() { + var options = { + vec_x:["Bounds Vector X (-1 for standard)",this.vec_x], + vec_y:["Bounds Vector Y (-1 for standard)",this.vec_y], + colormap:["ColorMap",this.colormap], + cmin:["Zmin",this.cmin], + cmax:["Zmax",this.cmax], + } + return options; } CMAT3D.prototype.set = function CMAT3D() { this.vec_x = parseFloat((arguments[0]["vec_x"])) diff --git a/js/Sinks/CMATVIEW.js b/js/Sinks/CMATVIEW.js index faacf6a6..95a83038 100644 --- a/js/Sinks/CMATVIEW.js +++ b/js/Sinks/CMATVIEW.js @@ -26,6 +26,12 @@ function CMATVIEW() { return this.x; } CMATVIEW.prototype.get = function CMATVIEW() { + var options = { + colormap:["ColorMap",this.colormap], + cmin:["Minimum level range",this.cmin], + cmax:["Maximum level range",this.cmax], + } + return options; } CMATVIEW.prototype.set = function CMATVIEW() { this.colormap = parseFloat((arguments[0]["colormap"])) diff --git a/js/Sinks/CMSCOPE.js b/js/Sinks/CMSCOPE.js index 808048b7..c0bf502b 100644 --- a/js/Sinks/CMSCOPE.js +++ b/js/Sinks/CMSCOPE.js @@ -31,6 +31,20 @@ function CMSCOPE() { return this.x; } CMSCOPE.prototype.get = function CMSCOPE() { + var options = { + in1:["Input ports sizes",this.in1], + clrs:["Drawing colors (>0) or mark (<0)",this.clrs], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + ymin:["Ymin vector",this.ymin], + ymax:["Ymax vector",this.ymax], + per:["Refresh period",this.per], + N:["Buffer size",this.N], + heritance:["Accept herited events 0/1",this.heritance], + nom:["Name of Scope (label&Id)",this.nom], + } + return options; } CMSCOPE.prototype.set = function CMSCOPE() { this.in1 = parseFloat((arguments[0]["in1"])) diff --git a/js/Sinks/CSCOPE.js b/js/Sinks/CSCOPE.js index 59abdde9..c065910a 100644 --- a/js/Sinks/CSCOPE.js +++ b/js/Sinks/CSCOPE.js @@ -27,6 +27,19 @@ function CSCOPE() { return this.x; } CSCOPE.prototype.get = function CSCOPE() { + var options = { + clrs:["Color (>0) or mark (<0) vector (8 entries)",this.clrs], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + per:["Refresh period",this.per], + N:["Buffer size",this.N], + heritance:["Accept herited events 0/1",this.heritance], + nom:["Name of Scope (label&Id)",this.nom], + } + return options; } CSCOPE.prototype.set = function CSCOPE() { this.clrs = parseFloat((arguments[0]["clrs"])) diff --git a/js/Sinks/CSCOPXY.js b/js/Sinks/CSCOPXY.js index dc48ef4c..f0d84a05 100644 --- a/js/Sinks/CSCOPXY.js +++ b/js/Sinks/CSCOPXY.js @@ -31,6 +31,20 @@ function CSCOPXY() { return this.x; } CSCOPXY.prototype.get = function CSCOPXY() { + var options = { + nbr_curves:["Number of Curves",this.nbr_curves], + clrs:["color (>0) or mark (<0)",this.clrs], + siz:["line or mark size",this.siz], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + xmin:["Xmin",this.xmin], + xmax:["Xmax",this.xmax], + ymin:["Ymin",this.ymin], + ymax:["Ymax",this.ymax], + N:["Buffer size",this.N], + } + return options; } CSCOPXY.prototype.set = function CSCOPXY() { this.nbr_curves = parseFloat((arguments[0]["nbr_curves"])) diff --git a/js/Sinks/CSCOPXY3D.js b/js/Sinks/CSCOPXY3D.js index 8a3d8194..0f66a073 100644 --- a/js/Sinks/CSCOPXY3D.js +++ b/js/Sinks/CSCOPXY3D.js @@ -31,6 +31,20 @@ function CSCOPXY3D() { return this.x; } CSCOPXY3D.prototype.get = function CSCOPXY3D() { + var options = { + nbr_curves:["Number of curves",this.nbr_curves], + clrs:["color (>0) or mark (<0)",this.clrs], + siz:["Line or Mark Size",this.siz], + win:["Output window number (-1 for automatic)",this.win], + wpos:["Output window position",this.wpos], + wdim:["Output window sizes",this.wdim], + vec_x:["Xmin and Xmax",this.vec_x], + vec_y:["Ymin and Ymax",this.vec_y], + vec_z:["Zmin and Zmax",this.vec_z], + param3ds:["Alpha and Theta",this.param3ds], + N:["Buffer size",this.N], + } + return options; } CSCOPXY3D.prototype.set = function CSCOPXY3D() { this.nbr_curves = parseFloat((arguments[0]["nbr_curves"])) diff --git a/js/Sinks/OUTIMPL_f.js b/js/Sinks/OUTIMPL_f.js index 43983463..3656ece7 100644 --- a/js/Sinks/OUTIMPL_f.js +++ b/js/Sinks/OUTIMPL_f.js @@ -23,6 +23,9 @@ function OUTIMPL_f() { return this.x; } OUTIMPL_f.prototype.get = function OUTIMPL_f() { + var options = { + } + return options; } OUTIMPL_f.prototype.set = function OUTIMPL_f() { this.prt = parseFloat((arguments[0]["prt"])) diff --git a/js/Sinks/OUT_f.js b/js/Sinks/OUT_f.js index cd61ebed..be1b1738 100644 --- a/js/Sinks/OUT_f.js +++ b/js/Sinks/OUT_f.js @@ -20,6 +20,9 @@ function OUT_f() { return this.x; } OUT_f.prototype.get = function OUT_f() { + var options = { + } + return options; } OUT_f.prototype.set = function OUT_f() { this.prt = parseFloat((arguments[0]["prt"])) diff --git a/js/Sinks/TOWS_c.js b/js/Sinks/TOWS_c.js index ddb6f956..3d2bec1b 100644 --- a/js/Sinks/TOWS_c.js +++ b/js/Sinks/TOWS_c.js @@ -27,6 +27,12 @@ function TOWS_c() { return this.x; } TOWS_c.prototype.get = function TOWS_c() { + var options = { + nz:["Size of buffer",this.nz], + varnam:["Scilab variable name",this.varnam], + herit:["Inherit (no:0, yes:1)",this.herit], + } + return options; } TOWS_c.prototype.set = function TOWS_c() { this.nz = parseFloat((arguments[0]["nz"])) diff --git a/js/Sinks/TRASH_f.js b/js/Sinks/TRASH_f.js index 45f077eb..19c2156b 100644 --- a/js/Sinks/TRASH_f.js +++ b/js/Sinks/TRASH_f.js @@ -17,6 +17,9 @@ function TRASH_f() { return this.x; } TRASH_f.prototype.get = function TRASH_f() { + var options = { + } + return options; } TRASH_f.prototype.set = function TRASH_f() { this.x = arg1; diff --git a/js/Sinks/WFILE_f.js b/js/Sinks/WFILE_f.js index 5f9b0db1..35514384 100644 --- a/js/Sinks/WFILE_f.js +++ b/js/Sinks/WFILE_f.js @@ -24,6 +24,13 @@ function WFILE_f() { return this.x; } WFILE_f.prototype.get = function WFILE_f() { + var options = { + in1:["Input Size",this.in1], + fname1:["Output File Name",this.fname1], + frmt1:["Output Format",this.frmt1], + N:["Buffer Size",this.N], + } + return options; } WFILE_f.prototype.set = function WFILE_f() { this.in1 = parseFloat((arguments[0]["in1"])) diff --git a/js/Sinks/WRITEAU_f.js b/js/Sinks/WRITEAU_f.js index 7e4aa19c..4b4caa17 100644 --- a/js/Sinks/WRITEAU_f.js +++ b/js/Sinks/WRITEAU_f.js @@ -25,6 +25,11 @@ function WRITEAU_f() { return this.x; } WRITEAU_f.prototype.get = function WRITEAU_f() { + var options = { + N:["Buffer Size",this.N], + swap:["Swap Mode (0:No, 1:Yes)",this.swap], + } + return options; } WRITEAU_f.prototype.set = function WRITEAU_f() { this.N = parseFloat((arguments[0]["N"])) diff --git a/js/Sinks/WRITEC_f.js b/js/Sinks/WRITEC_f.js index 8d330cec..1e4800a2 100644 --- a/js/Sinks/WRITEC_f.js +++ b/js/Sinks/WRITEC_f.js @@ -25,6 +25,14 @@ function WRITEC_f() { return this.x; } WRITEC_f.prototype.get = function WRITEC_f() { + var options = { + in1:["Input Size",this.in1], + fname1:["Output File Name",this.fname1], + frmt1:["Output Format",this.frmt1], + N:["Buffer Size",this.N], + swap:["Swap Mode (0:No, 1:Yes)",this.swap], + } + return options; } WRITEC_f.prototype.set = function WRITEC_f() { this.in1 = parseFloat((arguments[0]["in1"])) diff --git a/js/Sources/CLKINV_f.js b/js/Sources/CLKINV_f.js index 138a6595..8a10a229 100644 --- a/js/Sources/CLKINV_f.js +++ b/js/Sources/CLKINV_f.js @@ -18,6 +18,9 @@ function CLKINV_f() { return this.x; } CLKINV_f.prototype.get = function CLKINV_f() { + var options = { + } + return options; } CLKINV_f.prototype.set = function CLKINV_f() { this.prt = parseFloat((arguments[0]["prt"])) diff --git a/js/Sources/CLKIN_f.js b/js/Sources/CLKIN_f.js index fe9a5ee5..ff42d1da 100644 --- a/js/Sources/CLKIN_f.js +++ b/js/Sources/CLKIN_f.js @@ -17,6 +17,9 @@ function CLKIN_f() { return this.x; } CLKIN_f.prototype.get = function CLKIN_f() { + var options = { + } + return options; } CLKIN_f.prototype.set = function CLKIN_f() { this.prt = parseFloat((arguments[0]["prt"])) diff --git a/js/Sources/CLOCK_c.js b/js/Sources/CLOCK_c.js index a9dcb24b..9635ac4c 100644 --- a/js/Sources/CLOCK_c.js +++ b/js/Sources/CLOCK_c.js @@ -46,6 +46,11 @@ function CLOCK_c() { return this.x; } CLOCK_c.prototype.get = function CLOCK_c() { + var options = { + dt:["Period",this.dt], + t0:["Initialisation Time",this.t0], + } + return options; } CLOCK_c.prototype.set = function CLOCK_c() { this.dt = parseFloat((arguments[0]["dt"])) diff --git a/js/Sources/CLOCK_f.js b/js/Sources/CLOCK_f.js index 65923bd4..7ef76e89 100644 --- a/js/Sources/CLOCK_f.js +++ b/js/Sources/CLOCK_f.js @@ -46,6 +46,11 @@ function CLOCK_f() { return this.x; } CLOCK_f.prototype.get = function CLOCK_f() { + var options = { + dt:["Period",this.dt], + t0:["Init time",this.t0], + } + return options; } CLOCK_f.prototype.set = function CLOCK_f() { this.dt = parseFloat((arguments[0]["dt"])) diff --git a/js/Sources/CONST.js b/js/Sources/CONST.js index 5d5498a4..de7dd51a 100644 --- a/js/Sources/CONST.js +++ b/js/Sources/CONST.js @@ -18,6 +18,9 @@ function CONST() { return this.x; } CONST.prototype.get = function CONST() { + var options = { + } + return options; } CONST.prototype.set = function CONST() { this.C = parseFloat((arguments[0]["C"])) diff --git a/js/Sources/CONST_f.js b/js/Sources/CONST_f.js index 000f332c..f6a3306d 100644 --- a/js/Sources/CONST_f.js +++ b/js/Sources/CONST_f.js @@ -18,6 +18,9 @@ function CONST_f() { return this.x; } CONST_f.prototype.get = function CONST_f() { + var options = { + } + return options; } CONST_f.prototype.set = function CONST_f() { this.C = parseFloat((arguments[0]["C"])) diff --git a/js/Sources/CONST_m.js b/js/Sources/CONST_m.js index 90e3c14a..d53e0870 100644 --- a/js/Sources/CONST_m.js +++ b/js/Sources/CONST_m.js @@ -21,6 +21,9 @@ function CONST_m() { return this.x; } CONST_m.prototype.get = function CONST_m() { + var options = { + } + return options; } CONST_m.prototype.set = function CONST_m() { this.C = parseFloat((arguments[0]["C"])) diff --git a/js/Sources/CURV_f.js b/js/Sources/CURV_f.js index a12186e0..f3d042a8 100644 --- a/js/Sources/CURV_f.js +++ b/js/Sources/CURV_f.js @@ -23,6 +23,9 @@ function CURV_f() { return this.x; } CURV_f.prototype.get = function CURV_f() { + var options = { + } + return options; } CURV_f.prototype.set = function CURV_f() { this.x = arg1; diff --git a/js/Sources/Counter.js b/js/Sources/Counter.js index 03ac765c..64d87996 100644 --- a/js/Sources/Counter.js +++ b/js/Sources/Counter.js @@ -22,6 +22,12 @@ function Counter() { return this.x; } Counter.prototype.get = function Counter() { + var options = { + minim:["Minimum",this.minim], + maxim:["Maximum",this.maxim], + rule:["Rule (1:Increment, 2:Decrement)",this.rule], + } + return options; } Counter.prototype.set = function Counter() { this.minim = parseFloat((arguments[0]["minim"])) diff --git a/js/Sources/FROMWSB.js b/js/Sources/FROMWSB.js index 7f2a3088..3645aad4 100644 --- a/js/Sources/FROMWSB.js +++ b/js/Sources/FROMWSB.js @@ -15,6 +15,9 @@ function FROMWSB() { return this.x; } FROMWSB.prototype.get = function FROMWSB() { + var options = { + } + return options; } FROMWSB.prototype.set = function FROMWSB() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { diff --git a/js/Sources/FROMWS_c.js b/js/Sources/FROMWS_c.js index 382e0ec2..01d4c245 100644 --- a/js/Sources/FROMWS_c.js +++ b/js/Sources/FROMWS_c.js @@ -25,6 +25,13 @@ function FROMWS_c() { return this.x; } FROMWS_c.prototype.get = function FROMWS_c() { + var options = { + varnam:["Variable name",this.varnam], + Method:["Interpolation Method",this.Method], + ZC:["Enable zero crossing(0:No, 1:Yes)?",this.ZC], + OutEnd:["Output at end(0:Zero, 1:Hold, 2:Repeat)",this.OutEnd], + } + return options; } FROMWS_c.prototype.set = function FROMWS_c() { this.varnam = parseFloat((arguments[0]["varnam"])) diff --git a/js/Sources/GENSIN_f.js b/js/Sources/GENSIN_f.js index 5cae8903..00fda26a 100644 --- a/js/Sources/GENSIN_f.js +++ b/js/Sources/GENSIN_f.js @@ -20,6 +20,12 @@ function GENSIN_f() { return this.x; } GENSIN_f.prototype.get = function GENSIN_f() { + var options = { + M:["Magnitude",this.M], + F:["Frequency (rad/s)",this.F], + P:["Phase (rad)",this.P], + } + return options; } GENSIN_f.prototype.set = function GENSIN_f() { this.M = parseFloat((arguments[0]["M"])) diff --git a/js/Sources/GENSQR_f.js b/js/Sources/GENSQR_f.js index c3006a1e..6839e96a 100644 --- a/js/Sources/GENSQR_f.js +++ b/js/Sources/GENSQR_f.js @@ -20,6 +20,10 @@ function GENSQR_f() { return this.x; } GENSQR_f.prototype.get = function GENSQR_f() { + var options = { + Amplitude:["Amplitude",this.Amplitude], + } + return options; } GENSQR_f.prototype.set = function GENSQR_f() { this.Amplitude = parseFloat((arguments[0]["Amplitude"])) diff --git a/js/Sources/GEN_SQR.js b/js/Sources/GEN_SQR.js index 084a846f..39a3ec95 100644 --- a/js/Sources/GEN_SQR.js +++ b/js/Sources/GEN_SQR.js @@ -54,6 +54,9 @@ function GEN_SQR() { return this.x; } GEN_SQR.prototype.get = function GEN_SQR() { + var options = { + } + return options; } GEN_SQR.prototype.set = function GEN_SQR() { scicos_context.Amin = parseFloat((arguments[0]["scicos_context.Amin"])) diff --git a/js/Sources/Ground_g.js b/js/Sources/Ground_g.js index 896029af..686c27a7 100644 --- a/js/Sources/Ground_g.js +++ b/js/Sources/Ground_g.js @@ -22,6 +22,9 @@ function Ground_g() { return this.x; } Ground_g.prototype.get = function Ground_g() { + var options = { + } + return options; } Ground_g.prototype.set = function Ground_g() { this.x = arg1; diff --git a/js/Sources/INIMPL_f.js b/js/Sources/INIMPL_f.js index 92b4a156..16e681a2 100644 --- a/js/Sources/INIMPL_f.js +++ b/js/Sources/INIMPL_f.js @@ -23,6 +23,9 @@ function INIMPL_f() { return this.x; } INIMPL_f.prototype.get = function INIMPL_f() { + var options = { + } + return options; } INIMPL_f.prototype.set = function INIMPL_f() { this.prt = parseFloat((arguments[0]["prt"])) diff --git a/js/Sources/IN_f.js b/js/Sources/IN_f.js index 5c6512de..35abf0bb 100644 --- a/js/Sources/IN_f.js +++ b/js/Sources/IN_f.js @@ -19,6 +19,9 @@ function IN_f() { return this.x; } IN_f.prototype.get = function IN_f() { + var options = { + } + return options; } IN_f.prototype.set = function IN_f() { this.x = arg1; diff --git a/js/Sources/Modulo_Count.js b/js/Sources/Modulo_Count.js index 62e4bf6c..9a37d409 100644 --- a/js/Sources/Modulo_Count.js +++ b/js/Sources/Modulo_Count.js @@ -20,6 +20,11 @@ function Modulo_Count() { return this.x; } Modulo_Count.prototype.get = function Modulo_Count() { + var options = { + ini_c:["Initial State (zero or positive number)",this.ini_c], + base:["Upper Limit (positive number)",this.base], + } + return options; } Modulo_Count.prototype.set = function Modulo_Count() { this.ini_c = parseFloat((arguments[0]["ini_c"])) diff --git a/js/Sources/PULSE_SC.js b/js/Sources/PULSE_SC.js index cd17f3bc..45440f1b 100644 --- a/js/Sources/PULSE_SC.js +++ b/js/Sources/PULSE_SC.js @@ -49,6 +49,9 @@ function PULSE_SC() { return this.x; } PULSE_SC.prototype.get = function PULSE_SC() { + var options = { + } + return options; } PULSE_SC.prototype.set = function PULSE_SC() { scicos_context.E = parseFloat((arguments[0]["scicos_context.E"])) diff --git a/js/Sources/RAMP.js b/js/Sources/RAMP.js index 5e429bd8..4567458e 100644 --- a/js/Sources/RAMP.js +++ b/js/Sources/RAMP.js @@ -23,6 +23,12 @@ function RAMP() { return this.x; } RAMP.prototype.get = function RAMP() { + var options = { + slope:["Slope",this.slope], + stt:["Start Time",this.stt], + iout:["Initial Value",this.iout], + } + return options; } RAMP.prototype.set = function RAMP() { this.slope = parseFloat((arguments[0]["slope"])) diff --git a/js/Sources/RAND_f.js b/js/Sources/RAND_f.js index 638a08c9..c6bc527f 100644 --- a/js/Sources/RAND_f.js +++ b/js/Sources/RAND_f.js @@ -24,6 +24,13 @@ function RAND_f() { return this.x; } RAND_f.prototype.get = function RAND_f() { + var options = { + flag:["flag",this.flag], + a:["A",this.a], + b:["B",this.b], + seed_c:["seed",this.seed_c], + } + return options; } RAND_f.prototype.set = function RAND_f() { this.flag = parseFloat((arguments[0]["flag"])) diff --git a/js/Sources/RAND_m.js b/js/Sources/RAND_m.js index c0f87ff2..5bed49f2 100644 --- a/js/Sources/RAND_m.js +++ b/js/Sources/RAND_m.js @@ -33,6 +33,14 @@ function RAND_m() { return this.x; } RAND_m.prototype.get = function RAND_m() { + var options = { + typ:["Datatype(1=real double 2=complex)",this.typ], + flag:["flag",this.flag], + a:["A",this.a], + b:["B",this.b], + seed_c:["SEED",this.seed_c], + } + return options; } RAND_m.prototype.set = function RAND_m() { this.typ = parseFloat((arguments[0]["typ"])) diff --git a/js/Sources/READAU_f.js b/js/Sources/READAU_f.js index b06727e7..a6d63862 100644 --- a/js/Sources/READAU_f.js +++ b/js/Sources/READAU_f.js @@ -29,6 +29,12 @@ function READAU_f() { return this.x; } READAU_f.prototype.get = function READAU_f() { + var options = { + fname1:["Input File Name",this.fname1], + N:["Buffer size",this.N], + swap:["Swap Mode (0:No, 1:Yes)",this.swap], + } + return options; } READAU_f.prototype.set = function READAU_f() { this.fname1 = parseFloat((arguments[0]["fname1"])) diff --git a/js/Sources/READC_f.js b/js/Sources/READC_f.js index 61ae9642..a22e610b 100644 --- a/js/Sources/READC_f.js +++ b/js/Sources/READC_f.js @@ -33,6 +33,17 @@ function READC_f() { return this.x; } READC_f.prototype.get = function READC_f() { + var options = { + tmask1:["Time Record Selection",this.tmask1], + outmask:["Outputs Record Selection",this.outmask], + fname1:["Input File Name",this.fname1], + frmt1:["Input Format",this.frmt1], + M:["Record Size",this.M], + N:["Buffer Size",this.N], + offset:["Initial Record Index",this.offset], + swap:["Swap Mode (0:No, 1:Yes)",this.swap], + } + return options; } READC_f.prototype.set = function READC_f() { this.tmask1 = parseFloat((arguments[0]["tmask1"])) diff --git a/js/Sources/RFILE_f.js b/js/Sources/RFILE_f.js index 8cadb526..e4a81fe2 100644 --- a/js/Sources/RFILE_f.js +++ b/js/Sources/RFILE_f.js @@ -29,6 +29,14 @@ function RFILE_f() { return this.x; } RFILE_f.prototype.get = function RFILE_f() { + var options = { + tmask1:["Time Record Selection",this.tmask1], + outmask:["Outputs Record Selection",this.outmask], + fname1:["Input File Name",this.fname1], + frmt1:["Input Format",this.frmt1], + N:["Buffer Size",this.N], + } + return options; } RFILE_f.prototype.set = function RFILE_f() { this.tmask1 = parseFloat((arguments[0]["tmask1"])) diff --git a/js/Sources/SAWTOOTH_f.js b/js/Sources/SAWTOOTH_f.js index fbfe62dc..5650778d 100644 --- a/js/Sources/SAWTOOTH_f.js +++ b/js/Sources/SAWTOOTH_f.js @@ -17,6 +17,9 @@ function SAWTOOTH_f() { return this.x; } SAWTOOTH_f.prototype.get = function SAWTOOTH_f() { + var options = { + } + return options; } SAWTOOTH_f.prototype.set = function SAWTOOTH_f() { this.x = arg1; diff --git a/js/Sources/STEP.js b/js/Sources/STEP.js index 50b6dfdb..42b032fa 100644 --- a/js/Sources/STEP.js +++ b/js/Sources/STEP.js @@ -22,6 +22,12 @@ function STEP() { return this.x; } STEP.prototype.get = function STEP() { + var options = { + temps:["Step Time",this.temps], + in1:["Initial Value",this.in1], + fi:["Final Value",this.fi], + } + return options; } STEP.prototype.set = function STEP() { this.temps = parseFloat((arguments[0]["temps"])) diff --git a/js/Sources/STEP_FUNCTION.js b/js/Sources/STEP_FUNCTION.js index a255a1fc..bc6c83da 100644 --- a/js/Sources/STEP_FUNCTION.js +++ b/js/Sources/STEP_FUNCTION.js @@ -55,6 +55,9 @@ function STEP_FUNCTION() { return this.x; } STEP_FUNCTION.prototype.get = function STEP_FUNCTION() { + var options = { + } + return options; } STEP_FUNCTION.prototype.set = function STEP_FUNCTION() { for (i=1;i<=length(arg1.model.rpar.objs);i+=1) { diff --git a/js/Sources/SampleCLK.js b/js/Sources/SampleCLK.js index 2d21aed7..642d6bd7 100644 --- a/js/Sources/SampleCLK.js +++ b/js/Sources/SampleCLK.js @@ -16,6 +16,11 @@ function SampleCLK() { return this.x; } SampleCLK.prototype.get = function SampleCLK() { + var options = { + frequ:["Sample time",this.frequ], + offset:["Offset",this.offset], + } + return options; } SampleCLK.prototype.set = function SampleCLK() { this.frequ = parseFloat((arguments[0]["frequ"])) diff --git a/js/Sources/Sigbuilder.js b/js/Sources/Sigbuilder.js index 14a9f768..89064608 100644 --- a/js/Sources/Sigbuilder.js +++ b/js/Sources/Sigbuilder.js @@ -19,6 +19,9 @@ function Sigbuilder() { return this.x; } Sigbuilder.prototype.get = function Sigbuilder() { + var options = { + } + return options; } Sigbuilder.prototype.set = function Sigbuilder() { ppath = list(0); diff --git a/js/Sources/TIME_f.js b/js/Sources/TIME_f.js index 16793af5..e0476b40 100644 --- a/js/Sources/TIME_f.js +++ b/js/Sources/TIME_f.js @@ -14,6 +14,9 @@ function TIME_f() { return this.x; } TIME_f.prototype.get = function TIME_f() { + var options = { + } + return options; } TIME_f.prototype.set = function TIME_f() { this.x = arg1; diff --git a/js/Sources/TKSCALE.js b/js/Sources/TKSCALE.js index 8247c517..9de93dd4 100644 --- a/js/Sources/TKSCALE.js +++ b/js/Sources/TKSCALE.js @@ -20,6 +20,12 @@ function TKSCALE() { return this.x; } TKSCALE.prototype.get = function TKSCALE() { + var options = { + a:["Min value",this.a], + b:["Max value",this.b], + f:["Normalization",this.f], + } + return options; } TKSCALE.prototype.set = function TKSCALE() { this.a = parseFloat((arguments[0]["a"])) diff --git a/js/Threshold/GENERAL_f.js b/js/Threshold/GENERAL_f.js index 14bf576d..b3d38232 100644 --- a/js/Threshold/GENERAL_f.js +++ b/js/Threshold/GENERAL_f.js @@ -22,6 +22,11 @@ function GENERAL_f() { return this.x; } GENERAL_f.prototype.get = function GENERAL_f() { + var options = { + in1:["Input size",this.in1], + out:["Number of event output",this.out], + } + return options; } GENERAL_f.prototype.set = function GENERAL_f() { this.in1 = parseFloat((arguments[0]["in1"])) diff --git a/js/Threshold/NEGTOPOS_f.js b/js/Threshold/NEGTOPOS_f.js index f9135d94..d23001d0 100644 --- a/js/Threshold/NEGTOPOS_f.js +++ b/js/Threshold/NEGTOPOS_f.js @@ -18,6 +18,9 @@ function NEGTOPOS_f() { return this.x; } NEGTOPOS_f.prototype.get = function NEGTOPOS_f() { + var options = { + } + return options; } NEGTOPOS_f.prototype.set = function NEGTOPOS_f() { this.x = arg1; diff --git a/js/Threshold/POSTONEG_f.js b/js/Threshold/POSTONEG_f.js index 842f5c6a..24aae903 100644 --- a/js/Threshold/POSTONEG_f.js +++ b/js/Threshold/POSTONEG_f.js @@ -19,6 +19,9 @@ function POSTONEG_f() { return this.x; } POSTONEG_f.prototype.get = function POSTONEG_f() { + var options = { + } + return options; } POSTONEG_f.prototype.set = function POSTONEG_f() { this.x = arg1; diff --git a/js/Threshold/ZCROSS_f.js b/js/Threshold/ZCROSS_f.js index 1e029aee..50015c59 100644 --- a/js/Threshold/ZCROSS_f.js +++ b/js/Threshold/ZCROSS_f.js @@ -21,6 +21,9 @@ function ZCROSS_f() { return this.x; } ZCROSS_f.prototype.get = function ZCROSS_f() { + var options = { + } + return options; } ZCROSS_f.prototype.set = function ZCROSS_f() { this.in1 = parseFloat((arguments[0]["in1"])) diff --git a/sci2jsyacc.py b/sci2jsyacc.py index 7bd01ed9..fc09a76a 100755 --- a/sci2jsyacc.py +++ b/sci2jsyacc.py @@ -36,6 +36,7 @@ JOB_BLOCKS = {} FUNCTION_VARS = set() LOCAL_VARS = set() GLOBAL_VARS = {'x'} +LABELS = [] INDENT_LEVEL = 2 INDENT_SIZE = 4 @@ -55,6 +56,7 @@ def p_functionblocks_jobfunctionblock(p): # define functionblock SET_BLOCK = '' +OPTIONS_BLOCK = '' def p_jobfunctionblock_jobfunctionstatement_statementblock_endfunction(p): 'jobfunctionblock : jobfunctionstatement statementblock ENDFUNCTION EOL' @@ -62,18 +64,19 @@ def p_jobfunctionblock_jobfunctionstatement_statementblock_endfunction(p): fname = '%s' % (p[1]) indent = '%*s' % (INDENT_LEVEL * INDENT_SIZE, ' ') INDENT_LEVEL += 1 + indent2 = '%*s' % (INDENT_LEVEL * INDENT_SIZE, ' ') blocktype = getblocktype(fname) jdefine = JOB_BLOCKS['"define"'] - jget = JOB_BLOCKS['"get"'] + jget = '%svar options = {\n%s%s}\n%sreturn options;\n' % (indent2, OPTIONS_BLOCK, indent2, indent2) jgetinputs = JOB_BLOCKS['"getinputs"'] jgetorigin = JOB_BLOCKS['"getorigin"'] jgetoutputs = JOB_BLOCKS['"getoutputs"'] jplot = JOB_BLOCKS['"plot"'] jset = JOB_BLOCKS['"set"'] - jdefine = '%s%s.prototype.define = function %s() {\n%s%*sreturn new %s(this.x);\n%s}\n' % (indent, fname, fname, jdefine, INDENT_LEVEL * INDENT_SIZE, ' ', blocktype, indent) - jdetails = '%s%s.prototype.details = function %s() {\n%*sreturn this.x;\n%s}\n' % (indent, fname, fname, INDENT_LEVEL * INDENT_SIZE, ' ', indent) + jdefine = '%s%s.prototype.define = function %s() {\n%s%sreturn new %s(this.x);\n%s}\n' % (indent, fname, fname, jdefine, indent2, blocktype, indent) + jdetails = '%s%s.prototype.details = function %s() {\n%sreturn this.x;\n%s}\n' % (indent, fname, fname, indent2, indent) jget = '%s%s.prototype.get = function %s() {\n%s%s}\n' % (indent, fname, fname, jget, indent) if jgetinputs != '': jgetinputs = '%s%s.prototype.getinputs = function %s() {\n%s%s}\n' % (indent, fname, fname, jgetinputs, indent) @@ -83,7 +86,7 @@ def p_jobfunctionblock_jobfunctionstatement_statementblock_endfunction(p): jgetoutputs = '%s%s.prototype.getoutputs = function %s() {\n%s%s}\n' % (indent, fname, fname, jgetoutputs, indent) if jplot != '': jplot = '%s%s.prototype.plot = function %s() {\n%s%s}\n' % (indent, fname, fname, jplot, indent) - jset = '%s%s.prototype.set = function %s() {\n%s%s%*sreturn new %s(this.x);\n%s}\n' % (indent, fname, fname, SET_BLOCK, jset, INDENT_LEVEL * INDENT_SIZE, ' ', blocktype, indent) + jset = '%s%s.prototype.set = function %s() {\n%s%s%sreturn new %s(this.x);\n%s}\n' % (indent, fname, fname, SET_BLOCK, jset, indent2, blocktype, indent) INDENT_LEVEL -= 1 p[0] = 'function %s() {\n%s%s%s%s%s%s%s%s}' % (fname, jdefine, jdetails, jget, jset, jgetinputs, jgetorigin, jgetoutputs, jplot) @@ -465,11 +468,12 @@ def p_assignment_expression(p): def p_getvalueassignment_getvalue_arguments(p): 'getvalueassignment : lterm ASSIGNMENT SCICOS_GETVALUE OPENBRACKET getvaluearguments CLOSEBRACKET' p[0] = '%*s%s = %s(%s)' % (INDENT_LEVEL * INDENT_SIZE, ' ', p[1], p[3], p[5]) - global SET_BLOCK + global SET_BLOCK, OPTIONS_BLOCK lterm = p[1] if lterm[0] == '[': lterm = lterm[1:-1] ltermvars = lterm.split(',') + idx = 0 for var in ltermvars: if var in ('ok', 'exprs'): continue @@ -480,6 +484,9 @@ def p_getvalueassignment_getvalue_arguments(p): if var not in GLOBAL_VARS: GLOBAL_VARS.add(var) SET_BLOCK += "%*s%s = parseFloat((arguments[%d][\"%s\"]))\n" % (2 * INDENT_SIZE, ' ', var, 0, basevar) + if idx < len(LABELS): + OPTIONS_BLOCK += '%*s%s:[%s,%s],\n' % (INDENT_LEVEL * INDENT_SIZE, ' ', basevar, LABELS[idx], var) + idx += 1 def p_getvaluearguments_arg1_arg2_arg3_arg4(p): 'getvaluearguments : getvaluearg1 COMMA getvaluearg2 COMMA getvaluearg3 COMMA getvaluearg4' @@ -519,18 +526,22 @@ def p_getvaluearg2arraylist_arraylistitem(p): def p_getvaluearg2arraylistitem_gettext_string(p): 'getvaluearg2arraylistitem : GETTEXT OPENBRACKET DQSTRING CLOSEBRACKET' p[0] = '%s' % (p[3]) + LABELS.append(p[0]) def p_getvaluearg2arraylistitem_string(p): 'getvaluearg2arraylistitem : DQSTRING' p[0] = '%s' % (p[1]) + LABELS.append(p[0]) def p_getvaluearg2arraylistitem_string_string(p): 'getvaluearg2arraylistitem : DQSTRING ADDITION DQSTRING' p[0] = '%s%s' % (p[1][:-1], p[3][1:]) + LABELS.append(p[0]) def p_getvaluearg2arraylistitem_functionname_parameters(p): 'getvaluearg2arraylistitem : FUNCTIONNAME OPENBRACKET list CLOSEBRACKET' p[0] = '%s(%s)' % (p[1], p[3]) + LABELS.append(p[0]) def p_getvaluearg3_list(p): 'getvaluearg3 : LIST OPENBRACKET getvaluelist CLOSEBRACKET' |