Application – Multichannel Systems NeuroExplorer User Manual

Page 322

Advertising
background image

6.1. Application

Application Interface


External applications can open an instance of NeuroExplorer using its Program ID
"NeuroExplorer.Application".


For example, to open NeuroExplorer (or to connect to a running instance of NeuroExplorer) in Matlab
, you can use the following command:

nex = actxserver('NeuroExplorer.Application');


To open NeuroExplorer in JavaScript, use the following command:

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


The object returned by the actxserver or ActiveXObject command is an Application object. The
properties and methods of this object are listed below.

Properties

Property

Description

ActiveDocument

Read-only access to the active document

DocumentCount

The number of open documents

Version

NeuroExplorer version

Visible

Controls visibility of the application

Methods

Method

Description

OpenDocument

Opens a specified document (data file)

Document

Returns one of the open documents

Sleep

Pauses the program

RunNexScript

Runs NexScript saved in a file

RunNexScriptCommands

Runs the specified NexScript text

See Also

COM/ActiveX Interfaces

Page 320

Advertising