GetSpikeCount

Returns the number of timestamps in the variable.

Syntax

GetSpikeCount(var)

Parameters

Parameter

Type

Description

var

variableReference

Reference to the variable.

Returns

Returns the number of timestamps in the variable. For a continuous variable, returns the number of fragments.

Examples

Python

import nex
doc = nex.GetActiveDocument()
count = nex.GetSpikeCount(doc["Neuron04a"])

NexScript

doc = GetActiveDocument()
count = GetSpikeCount(doc["Neuron04a"])