doc.SetPythonAnalysisOutput

Sets Python analysis output as string.

Syntax

doc.SetPythonAnalysisOutput(theOutput)

Parameters

Parameter

Type

Description

theOutput

string

Python analysis output as a JSON string.

Return

Sets Python analysis output as string.

Examples

Python

import nex
import json
doc = nex.GetActiveDocument()
result = {}
result['XAxisLabel'] = 'Frequency'
result['YAxisLabel'] = 'Raw Spectrum'
result['XValues'] = []
result['YValues'] = []
theOutput = json.dumps(result)
doc.SetPythonAnalysisOutput(theOutput)