Getvarcount function – Multichannel Systems NeuroExplorer User Manual

Page 169

Advertising
background image

5.5.3.1. GetVarCount Function

GetVarCount Function


Returns the number of variables of the specified type in the file.

Syntax


double GetVarCount(doc, varType)

Parameters

Parameter

Type

Description

doc

documentReference Reference to the document.

varType

string

Variable type. Should be "neuron", "neuronorevent" ,
"event", "interval" "wave", "popvector", "continuous",
"marker" or "all".

Returns


Returns the number of variables of the specified type in the file.

Comments


None

Usage

NexScript

doc = GetActiveDocument()

% get the number of continuous variables

numContVars = GetVarCount(doc, "continuous")

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 167

Advertising