RFmxWCDMA_ModAccFetchPeakCDE
- Updated2024-10-14
- 2 minute(s) read
RFmxWCDMA_ModAccFetchPeakCDE
int32 __stdcall RFmxWCDMA_ModAccFetchPeakCDE (niRFmxInstrHandle instrumentHandle, char selectorString[], float64 timeout, float64* peakCDE, int32* peakCDECode, int32* peakCDEBranch);
Purpose
Fetches the peak value among the code domain errors (CDEs) obtained with a fixed spreading factor of 4, along with the code number and branch that correspond to this peak value for a carrier in the ModAcc measurement.
Use "carrier<n>" as the selector string to read results from this function.
Parameters
Input | ||||||
Name | Type | Description | ||||
instrumentHandle | niRFmxInstrHandle | Specifies the instrument session. The RFmx driver obtains this parameter from the RFmxWCDMA_Initialize function. | ||||
selectorString | char[] | Specifies a selector string comprising of the signal name, result name, and carrier number. If you do not specify the signal name, the default signal instance is used. If you do not specify the result name, the default result instance is used. Example: "carrier0" "signal::sig1/carrier0" "result::r1/carrier0" "signal::sig1/result::r1/carrier0" You can use the RFmxWCDMA_BuildCarrierString function to build the selector string. |
||||
timeout | float64 | 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 function waits until the measurement is complete. | ||||
Output | ||||||
Name | Type | Description | ||||
peakCDE | float64* | Returns the maximum CDE value for a carrier in the received signal.
The CDEs are computed by despreading the descrambled error vector using a specific spreading factor. A fixed spreading factor of 4 is used. The CDE for every code with the specific spreading factor is defined as the ratio of the mean power of the descrambled and despread error vector to the mean power of the composite reference waveform. The CDEs for both I and Q branches are computed for each code. This value is expressed in dB. |
||||
peakCDECode | int32* | Returns the spreading code corresponding to the value of the peakCDE parameter for a carrier in the received signal.
|
||||
peakCDEBranch | int32* | Returns the branch of the channel corresponding to the value of the peakCDE parameter for a carrier in the received signal.
|
Return Value
Name | Type | Description | ||||||||
status | int32 | Returns the status code of this operation. The status code either indicates success or describes an error or warning condition. Examine the status code from each call to an RFmx function to determine if an error has occurred. To obtain a text description of the status code and additional information about the error condition, call the RFmxWCDMA_GetError function. The general meaning of the status code is as follows:
|
||||||||