LastBefore
Creates the new event containing the last timestamp of var1 in each of the intervals [var2+fromTime, var2+toTime].
Syntax
LastBefore(var1, var2, fromTime, toTime)
Parameters
Parameter |
Type |
Description |
---|---|---|
var1 |
variableReference |
Reference to the variable. |
var2 |
variableReference |
Reference to the variable. |
fromTime |
number |
Interval start offset (seconds) |
toTime |
number |
Interval end offset (seconds). |
Return
Reference to the new variable.
Note
Creates the new event containing the last timestamp of var1 in each of the intervals [var2+from, var2+to].
Examples
Python
import nex
doc = nex.GetActiveDocument()
doc["lastBefore"] = nex.LastBefore(doc["Neuron07a"], doc["Event04"], 0, 5)
NexScript
doc = GetActiveDocument()
doc["lastBefore"] = LastBefore(doc["Neuron07a"], doc["Event04"], 0, 5)