Our script will take one input, specifying the low-pass filter cutoff to use, in Hz. Modify the ParameterTemplate as shown below so that the user will be prompted for this value.
Our script will output a single series. Modify the OutputTemplate as shown below to register this output.
/**
* Determine the EMG Envelope through rectification and
low-pass filtering.
* @name EMG Envelope
* @version 0.0.0.0
* @author
Your Name
* @signed 0
* @namespace EMGENV
*/
EMGENV = {
Calculate :
function()
{
// enter the logic
for your script here
// assign outputs to
MYS.Output.ExampleOutputA
},
Input : 5,
OutputTemplate:
{
ENV: {seq: 1, name: "Signal
Envelope"}
},
Validate :
function()
{
if (false /* replace with a test for invalid parameters
*/)
return "Error message
text.";
},
ParameterTemplate:
{
LPCutoff: {seq: 1, name: "LP Cutoff Frequency
(Hz)", type:"number", initial: 5, min:
1}
},
}