SelectVar

Selects the specified variable for analysis.

Syntax

SelectVar(doc, number, varType)

Parameters

Parameter

Type

Description

doc

documentReference

Reference to the document.

number

number

Variable number within the group specified by varType.

varType

string

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

Return

None.

Note

Only selected variables used in analysis. Use select and deselect functions to specify what variables you want to analyze.

Examples

Python

import nex
doc = nex.GetActiveDocument()
# select the second neuron for analysis
nex.SelectVar(doc, 2, "neuron")

NexScript

doc = GetActiveDocument()
% select the second neuron for analysis
SelectVar(doc, 2, "neuron")