Performs the enabled measurements on the spectrum that you specify in the spectrum parameter. Call this method after you configure the signal and measurement properties. You can fetch measurement results using the Fetch methods. Use this method only if the RFmxInstrMX.GetRecommendedAcquisitionType method value is either Spectral or IQ or Spectral. This method is supported only when the RFmxInstr session is created with option string "AnalysisOnly=1".

Note

Query the RFmxInstrMX.GetRecommendedAcquisitionType method after calling the Commit(string) method.

Syntax

Namespace: NationalInstruments.RFmx.SpecAnMX

public int AnalyzeSpectrum1Waveform(string selectorString, string resultName, Spectrum< float > spectrum, bool reset, long reserved)

Remarks

This method maps to the RFmxSpecAn_AnalyzeSpectrum1Waveform() function in C.

Parameters

NameTypeDescription
selectorStringstring

Specifies a selector string comprising the result name. The result name can either by specified through this input or the resultName input. If you do not specify the result name in this input, either the result name specified by the resultName input or the default result instance is used.
Example:
""
"result::r1"

resultNamestring

Specifies the name to be associated with measurement results. Provide a unique name, such as "r1" to enable fetching of multiple measurement results and traces. This input accepts the result name with or without the "result:" prefix.
Example:
""
"result::r1"
"r1"

spectrumSpectrum< float >

Specifies the data for a Spectrum including the start, delta, and actual values.

resetbool

Resets the measurement averaging. If you enable averaging, set this parameter to TRUE for first record and FALSE for subsequent records.

reservedlong

Reserved for future use. Any value passed to this parameter will be ignored.

Returns

Returns the status code of this method. The status code either indicates success or describes an error or warning condition.