Firstafter function – Multichannel Systems NeuroExplorer User Manual
Page 235
5.5.8.5. FirstAfter Function
FirstAfter Function
Creates the new event containing the first timestamp of var1 in each of the intervals [var2+from,
var2+to].
Syntax
variableReference FirstAfter(var1, var2, from, to)
Parameters
Parameter
Type
Description
var1
variableReference
Reference to the variable.
var2
variableReference
Reference to the variable.
from
double
Offset of interval start around var2 timestamps.
to
double
Offset of interval end around var2 timestamps.
Returns
Reference to the new variable.
Comments
Creates the new event containing the first timestamp of var1 in each of the intervals [var2+from,
var2+to].
Usage
NexScript
doc = GetActiveDocument()
% find the first spike of Neuron1 after each stimulus (in the first second after
stimulus)
doc.FirstN1 = FirstAfter(GetVarByName(doc, "Neuron1"), GetVarByName(doc,
"Stimulus"), 0, 1)
See Also
Introduction to NexScript Programming
Page 233