Multichannel-systems NeuroExplorer Manual do Utilizador Página 177

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 373
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 372 373

Comentários a estes Manuais

Sem comentários