FetchAcquiredAmplitudeTrace(string, double, out double, ref float[], ref int[], ref double[])
- Updated2025-10-13
- 1 minute(s) read
Fetches the acquired amplitude trace in the measurement, where the Amplitude array forms the y-axis of the trace. You can use the PulseAcquisitionTraceSelect method to select all pulses or the subset of acquired pulses. When you set the SegmentedAcquisitionEnabled method to False, returns a single element in the Start Indices and Start Time Stamp array.
Syntax
Namespace: NationalInstruments.RFmx.PulseMX
public int FetchAcquiredAmplitudeTrace(string selectorString, double timeout, out double sampleDuration, ref float[] amplitude, ref int[] startIndex, ref double[] startTimeStamp)
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Specifies a selector string comprising of the result name. If you do not specify the result name, the default result instance is used. Example: |
| timeout | double | Specifies the timeout, in seconds, for fetching the specified measurement. Set this value to an appropriate time, longer than expected for fetching the measurement. A value of -1 specifies that the method waits until the measurement is complete. |
| sampleDuration | out double | Upon return, contains the sample duration, in seconds. |
| amplitude | ref float[] | Upon return, contains the trace of amplitude measured in units specified by PulseAmplitudeTraceUnit method. |
| startIndex | ref int[] | Upon return, contains the array of sample indices for the start of each segment. |
| startTimeStamp | ref double[] | Upon return, contains the array of timestamps of each segment start, in seconds. |
Returns
Returns the status code of this method. The status code either indicates success or describes a warning condition.