Event method – Multichannel Systems NeuroExplorer User Manual

Page 349

Advertising
background image

6.2.16. Event Method

Document.Event Method


Returns

Variable

object for the specified event variable index.

Syntax


Variable Event(int eventIndex)

Parameters

Parameter

Type

Description

eventIndex

int

1-based event variable index

Returns


Returns

Variable

object.

Usage

Matlab

nex = actxserver('NeuroExplorer.Application');

doc = nex.OpenDocument('C:\Data\TestDataFile.nex');

% get the first event variable

Event1 = doc.Event(1);

% get the last event variable

EventLast = doc.Event(doc.EventCount);

JavaScript

var nex = new ActiveXObject("NeuroExplorer.Application");

var doc = nex.OpenDocument("C:\\Data\\TestDataFile.nex");

// get the first event variable

var Event1 = doc.Event(1);

// get the last event variable

var EventLast = doc.Event(doc.EventCount);

See Also

Variable Interface

Application Interface

Document Interface

COM/ActiveX Interfaces

Page 347

Advertising