DecimateContVar

Decimates a continuous variable.

Syntax

DecimateContVar(doc, resultName, contVar, decimationFactor)

Parameters

Parameter

Type

Description

doc

documentReference

Reference to the document.

resultName

string

The name of the decimated continuous variable.

contVar

variableReference

Reference to the variable.

decimationFactor

number

If decimationFactor = 2, every second data point of contVar is copied to the result, if decimationFactor = 3, every third, etc

Return

None.

Examples

Python

import nex
doc = nex.GetActiveDocument()
nex.DecimateContVar(doc, "decimated", doc["ContChannel01"], 10)

NexScript

doc = GetActiveDocument()
DecimateContVar(doc, "decimated", doc["ContChannel01"], 10)