OpenSavedResult

Opens a saved result file with the specified path.

Syntax

OpenSavedResult(string filePath)

Parameters

Parameter

Type

Description

filePath

string

A full path of a saved result (.nexresult) file or analysis template (.ntp) file. Use SaveResults|Restore Analysis in NeuroExplorer menu command to restore analysis saved in the result file. You can also use the script commands saved in history.py file.

Return

None.

Note

Analysis template files can be used in two functions: ApplyTemplate and OpenSavedResult. Here are the differences:

  • The template file used in OpenSavedResult needs to have the data file path and the list of selected variables specified within the template file.

  • ApplyTemplate command ignores the data file path and the list of selected variables specified within the template file.

Examples

Python

import nex
nex.OpenSavedResult(r"C:\Data\File1_nex Autocorrelograms 001.nexresult")

NexScript

OpenSavedResult("C:\Data\File1_nex Autocorrelograms 001.nexresult")