Newintevent function – Multichannel Systems NeuroExplorer User Manual
Page 177
5.5.3.9. NewIntEvent Function
NewIntEvent Function
Creates a new interval variable.
Syntax
variableReference NewIntEvent(doc, count)
Parameters
Parameter
Type
Description
doc
documentReference Reference to the document.
count
double
Initial number of intervals in the variable.
Returns
Returns a reference to the new variable.
Comments
None
Usage
NexScript
The following script creates a new interval variable that has two intervals: from 0 to 100 seconds and
from 200 to 300 seconds:
doc = GetActiveDocument()
doc.MyInterval = NewIntEvent(doc, 2)
doc.MyInterval[1,1] = 0.
doc.MyInterval[1,2] = 100.
doc.MyInterval[2,1] = 200.
doc.MyInterval[2,2] = 300.
An alternative way is to use
doc = GetActiveDocument()
doc.MyInterval = NewIntEvent(doc, 0)
AddInterval(doc.MyInterval, 0., 100.)
AddInterval(doc.MyInterval, 200., 300.)
See Also
Introduction to NexScript Programming
Page 175