SelectVariablesIn1DView
Syntax
SelectVariablesIn1DView(doc, listOfVarNames)
Parameters
Parameter |
Type |
Description |
---|---|---|
doc |
documentReference |
Reference to the document |
listOfVarNames |
string |
A string containing comma-separated list of variable names |
Return
None.
Note
There should be no spaces before or after commas in the variables list. If a variable name contains comma(s) and Python is used, the variable name should be enclosed in double quotes. See sample code below.
Examples
Python
import nex
doc = nex.GetActiveDocument()
nex.ExecuteMenuCommand('View|1D Data Viewer Window')
nex.SelectVariablesIn1DView(doc, 'Neuron04a,Neuron05b,Neuron05c')
# if we want to select a variable with a name containing comma(s),
# the variable name should be enclosed in double quotes. For example,
# if variable name is
# channel 1, cluster2:
nex.SelectVariablesIn1DView(doc, 'Neuron04a,Neuron05b,Neuron05c,"channel 1, cluster2"')
NexScript
doc = GetActiveDocument()
ExecuteMenuCommand("View|1D Data Viewer Window")
SelectVariablesIn1DView(doc, "Neuron04a,Neuron05b,Neuron05c")