Sync
Creates the new event containing all the timestamps of var1 that are in the intervals [var2+fromTime, var2+toTime].
Syntax
Sync(var1, var2, fromTime, toTime)
Parameters
Parameter |
Type |
Description |
---|---|---|
var1 |
variableReference |
Reference to the variable |
var2 |
variableReference |
Reference to the variable |
fromTime |
number |
Offset minimum (seconds) |
toTime |
number |
Offset maximum (seconds) |
Return
Reference to the new variable.
Note
Creates the new event containing all the timestamps of var1 that are in the intervals [var2+from, var2+to]
Examples
Python
import nex
doc = nex.GetActiveDocument()
doc["synced_1_and_2"] = nex.Sync(doc["Neuron04a"], doc["Neuron06b"], -0.01, 0.01)
NexScript
doc = GetActiveDocument()
doc["synced_1_and_2"] = Sync(doc["Neuron04a"], doc["Neuron06b"], -0.01, 0.01)