SetDocEndTime

Sets the length of experimental session for the document.

Syntax

SetDocEndTime(doc, end_time)

Parameters

Parameter

Type

Description

doc

documentReference

Reference to the document.

end_time

number

Document end time in seconds

Return

None.

Note

NeuroExplorer determines document end time when the document is loaded. Then, the duration of experimental session (end_time - start_time) may be used in the calculations of the confidence limits. If your script modifies or adds the variables, you may need to set the document end time directly to maintain the correctness of the confidence calculations.

Examples

Python

import nex
doc = nex.GetActiveDocument()
nex.SetDocEndTime(doc, 2200.3)

NexScript

doc = GetActiveDocument()
SetDocEndTime(doc, 2200.3)