Makeintfromend function – Multichannel Systems NeuroExplorer User Manual

Page 250

Advertising
background image

5.5.8.20. MakeIntFromEnd Function

MakeIntFromEnd Function


Creates new interval variable. For each timestamp tend of the intEndVar, it looks for the last
timestamp ( tstart ) of the intStartVar before tend. If tstart is after the previous timestamp of
intEndVar, it adds the interval [ tstart +shift1, tend +shift2] to the result.

Syntax


variableReference MakeIntFromEnd(intStartVar, intEndVar, shift1, shift2)

Parameters

Parameter

Type

Description

intStartVar

variableReference

Reference to the variable.

intEndVar

variableReference

Reference to the variable.

shift1

double

Shift minimum (seconds).

shift2

double

Shift maximum (seconds).

Returns


Reference to the new variable.

Comments


None

Usage

NexScript

doc = GetActiveDocument()

doc.Int2 = MakeIntFromEnd(doc.Event04, doc.Event05, -0.1, 0.1)

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 248

Advertising