Multichannel Systems NeuroExplorer User Manual

Page 134

Advertising
background image

x = 0


If the statement is very long, you can use the line continuation symbol (backslash \) to indicate that
the next line contains the continuation of the current line. For example, instead of:

Dialog(doc, "D:\Plexon\data\mydata\*.plx", "Filter", "string")


you can write:

Dialog(doc, "D:\Plexon\data\mydata\*.plx",\

"Filter"", "string")


The percent symbol (%) marks the beginning of a comment, for example:

% this is a comment line

x = 0 % this is also a comment

Variables and Expressions


NexScript supports numeric variables and standard expressions:

xmean = (xmax - xmin)/2.


strings:

name = "DSP" + "01"


You can also query and modify file variables (spike trains, intervals, continuous variables, etc.).


See

Variables

and

Expressions

to learn more about the basics of NexScript.

Flow Control


for loops, while loops and if … else constructs can be used for flow control:

imax = 0

doc = GetActiveDocument()

for i = 2 to n

interval = doc.DSP01a[i] - doc.DSP01a[i-1]

if interval > imax

imax = interval

end

end


See

Flow Control

for more information.

Functions


NexScript offers more than 140 functions that allow you to edit data, open and close files, perform
analyses, save the results and send results to Matlab of Excel. See

Functions

for more information.

Page 132

Advertising