Programming with nexscript – Multichannel Systems NeuroExplorer User Manual

Page 133

Advertising
background image

5. Programming with NexScript


NeuroExplorer has a powerful scripting language (NexScript) resembling the Matlab language. To
create a script, select the Script | New Script menu command. To open existing script, double-click
at the script name in the Scripts View. NeuroExplorer will open NexScript editor:


NexScript editor has two docked panels: Functions Panel and Output Panel. In the Functions Panel,
you cal click at the function name to display function description. You can also double-click at the
function name to insert the function into the script. The Output Panel displays compiler messages and
debug output (generated using Trace function).

Scripts


Each script is a text file that has an extension .nsc. Scripts are usually saved in Windows Application
Data directory:


C:\Documents and Settings\All Users\Application Data\Nex Technologies\NeuroExplorer\Scripts
(when running under Windows XP), or


C:\Program Data\Nex Technologies\NeuroExplorer\Scripts (when running under Vista or Windows 7).


Note that you can create subfolders in the scripts folder. The scripts tree shown in the Scripts View is
a copy of the scripts directory specified above. You can create subfolders in your scripts directory and
then NeuroExplorer will allow you to navigate through the scripts directory tree within the Scripts
View.

Lines and Comments


Each line of the script may contain only one statement, for example:

Page 131

Advertising