AddTimestamp

Adds a new timestamp to the specified event or neuron variable.

Syntax

AddTimestamp(var, timestamp)

Parameters

Parameter

Type

Description

var

variableReference

Reference to the event or neuron variable

timestamp

number

New timestamp (in seconds)

Return

None.

Note

The new timestamp should be greater than the last timestamp of the specified variable.

Examples

Python

import nex
doc = nex.GetActiveDocument()
eventVar = doc["LightOff"]
# add timestamp at 30.5 seconds (assuming that all the existing timestamps of eventVar are less than 30.5
nex.AddTimestamp(eventVar, 30.5)

NexScript

doc = GetActiveDocument()
eventVar = doc["LightOff"]
% add timestamp at 30.5 seconds (assuming that all the existing timestamps of eventVar are less than 30.5
AddTimestamp(eventVar, 30.5)