Addinterval function – Multichannel Systems NeuroExplorer User Manual

Page 202

Advertising
background image

5.5.5.6. AddInterval Function

AddInterval Function


Adds a new interval to the specified interval variable.

Syntax


AddInterval(var, interval_start, interval_end)

Parameters

Parameter

Type

Description

var

variableReference

Reference to the interval variable.

interval_start

double

Start of new interval (in seconds).

interval_end

double

End of new interval (in seconds).

Returns


None

Comments


The new interval should not overlap with any of the existing intervals of the specified interval variable.

Usage

NexScript

doc = GetActiveDocument()

intervalVar = GetVarByName(doc, "Trials")

% add interval [100s,120s]

AddInterval(intervalVar, 100, 120)

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 200

Advertising