AbsOfContVar
Calculates an absolute value of the signal of a continuous variable. Creates new continuous variable.
Syntax
AbsOfContVar(doc, resultName, contVar)
Parameters
Parameter |
Type |
Description |
---|---|---|
doc |
documentReference |
Reference to the document. |
resultName |
string |
The name of the result (name of continuous variable). |
contVar |
variableReference |
Reference to continuous variable |
Return
None.
Note
This function calculates an absolute value of the signal of a continuous variable. The values of the resulting variable are:
abs(contVar_value)
Examples
Python
import nex
doc = nex.GetActiveDocument()
# calculate abs of FP01 and store result in document variable with the name 'absOfFP01'
nex.AbsOfContVar(doc, "absOfFP01", doc["FP01"])
NexScript
doc = GetActiveDocument()
% calculate abs of FP01 and store result in document variable with the name 'absOfFP01'
AbsOfContVar(doc, "absOfFP01", doc["FP01"])