Setneurontype function – Multichannel Systems NeuroExplorer User Manual
Page 200
5.5.5.4. SetNeuronType Function
SetNeuronType Function
Changes the type of the specified timestamped variable.
Syntax
SetNeuronType(doc, var, type)
Parameters
Parameter
Type
Description
doc
documentReference Reference to the document.
var
variableReference
Reference to the variable.
type
double
If type is positive, the variable type is set to 'neuron',
if type is zero or negative, the variable type is set to
'event'.
Returns
None
Comments
Neuron and event types are almost identical. The main difference is that when a data file is opened
by NeuroExplorer, all the neuron variables in this file are selected for analysis.
You may need to use this function when creating new neuron variables using
. NewEvent
creates an event variable and the variable type can later be changed to 'neuron' using
SetNeuronType.
Usage
NexScript
doc = GetActiveDocument()
doc.neuron1 = NewEvent(doc, 0)
SetNeuronType(doc, doc.neuron1, 1)
See Also
Introduction to NexScript Programming
Page 198