Multichannel-systems NeuroExplorer Manual de usuario Pagina 177

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 373
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 176
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 AddInterval function:
doc = GetActiveDocument()
doc.MyInterval = NewIntEvent(doc, 0)
AddInterval(doc.MyInterval, 0., 100.)
AddInterval(doc.MyInterval, 200., 300.)
See Also
Introduction to NexScript Programming
NexScript Function Categories
Page 175
Vista de pagina 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 372 373

Comentarios a estos manuales

Sin comentarios