Our script will take two inputs, one which specifies the starting time of the interval of data to remove, and one which specifies the stopping time of the interval of data to remove. Both will be specified in seconds. Modify the ParameterTemplate as shown below so that the user will be prompted for these values.
Our script will output a single series. Modify the OutputTemplate as shown below to register this output.
/**
* Data Segment Removal Tutorial Script
* @name Data
Segment Removal
* @version 0.0.0.0
* @author Your Name
* @signed
0
* @namespace DSR
*/
DSR = {
Calculate :
function()
{
// enter the logic
for your script here
// assign outputs to
MYS.Output.ExampleOutputA
},
Input : 5,
OutputTemplate:
{
SegmentRemoved: {seq: 1, name: "Data Segment
Removed"}
},
Validate :
function()
{
if (false /* replace with a test for invalid parameters
*/)
return
"Error message
text.";
},
ParameterTemplate:
{
IntervalStart: {seq: 1, name: "Start
of interval (sec)", type:"number", initial:
0},
IntervalStop: {seq: 2, name: "End of
interval (sec)", type:"number", initial:
5}
},
}