Firstininterval function – Multichannel Systems NeuroExplorer User Manual

Page 244

Advertising
background image

5.5.8.14. FirstInInterval Function

FirstInInterval Function


Creates the new event. For each interval of the specified interval variable, the first timestamp in this
interval is copied to the result.

Syntax


variableReference FirstInInterval(var, intervalVar)

Parameters

Parameter

Type

Description

var

variableReference

Reference to the neuron or event variable.

intervalVar

variableReference

Reference to the interval variable.

Returns


The reference to the new variable.

Comments


Creates the new event. For each interval of intervalVar, the first var timestamp in this interval is
copied to the result.

Usage

NexScript

doc = GetActiveDocument()

doc.firstInTrial = FirstInInterval(GetVarByName(doc,"Neuron1"),

GetVarByName(doc,"Trials"))

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 242

Advertising