Makeintfromstart function – Multichannel Systems NeuroExplorer User Manual
Page 249
5.5.8.19. MakeIntFromStart Function
MakeIntFromStart Function
Creates new interval variable. For each timestamp tstart of intStartVar, it looks for the first timestamp
tend of the intEndVar after tstart. If tend is before the next timestamp of intStartVar, it adds the
interval [ tstart +shift1, tend +shift2] to the result.
Syntax
variableReference MakeIntFromStart(intStartVar, intEndVar, shift1, shift2)
Parameters
Parameter
Type
Description
intStartVar
variableReference
Reference to the variable
intEndVar
variableReference
Reference to the variable
shift1
double
Shift minimum (seconds).
shift2
double
Shift maximum (seconds).
Returns
Reference to the new variable.
Comments
None
Usage
NexScript
doc = GetActiveDocument()
doc.Int2 = MakeIntFromStart(doc.Event04, doc.Event05, -0.1, 0.1)
See Also
Introduction to NexScript Programming
Page 247