Event method – Multichannel Systems NeuroExplorer User Manual
Page 349
6.2.16. Event Method
Document.Event Method
Returns
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
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
Page 347