SaveDocumentAs
Saves the data (in .nex, .nex5 or .edf format) in a file with the specified file path.
Syntax
SaveDocumentAs(doc, filePath)
Parameters
Parameter |
Type |
Description |
---|---|---|
doc |
documentReference |
Reference to the document |
filePath |
string |
File path |
Return
None.
Note
If filePath has extension ‘.nex’, the document is saved using .nex format. If filePath has extension ‘.nex5’, the document is saved using .nex5 format.
If filePath has extension ‘.edf’, continuous variables of the document that have no gaps in recording (the number of fragments is 1) as well as the marker variables are saved in the .edf (European Data Format) file.
NeuroExplorer uses edflib library (https://www.teuniz.net/edflib/) to load and save data in EDF files. The library license can be found in the file
C:\Program Files\Nex Technologies\NeuroExplorer 5\EDFLIB_LICENSE.txt
Examples
Python
import nex
doc = nex.GetActiveDocument()
# save file in .nex5 format
nex.SaveDocumentAs(doc, r"C:\Data\file1.nex5")
NexScript
doc = GetActiveDocument()
SaveDocumentAs(doc, "C:\Data\file1.nex")