Runnexscript method – Multichannel Systems NeuroExplorer User Manual

Page 330

Advertising
background image

6.1.8. RunNexScript Method

Application.RunNexScript Method


Runs the specified NexScript. Returns true if succeeded.

Syntax


bool RunNexScript ( string scriptPath )

Parameters

Parameter

Type

Description

scriptPath

string

Script path.

Returns


Returns true if script succeeded, otherwise, returns false.

Usage

Matlab

nex = actxserver('NeuroExplorer.Application');

res = nex.RunNexScript('C:\Scripts\TestScript.nsc');

JavaScript

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

// note that in JavaScript you need to use double backslashes

// when specifying file path

var res = nex.RunNexScript("C:\\Scripts\\TestScript.nsc");

See Also

Application Interface

Document Interface

COM/ActiveX Interfaces

Page 328

Advertising