Configures the offset frequency definition for the SEM measurement. Use "offset<n>" as the selector string to configure this function.

Syntax

int32 __stdcall RFmxSpecAn_SEMCfgOffsetFrequencyDefinition(niRFmxInstrHandle instrumentHandle, char selectorString[], int32 offsetFrequencyDefinition)

Parameters

NameDirectionTypeDescription
instrumentHandle[in]niRFmxInstrHandle

This parameter specifies the RFmx session refnum. Instrument Handle In is obtained from the RFmxInstr_Initialize function.

selectorString[in]char

This parameter specifies the Selector String comprising of the signal name and offset number. If you do not specify the signal name, the default signal instance is used. The default value is "offset0".
Example:
"offset0"
"signal::sig1/offset0"
You can use the RFmxSpecAn_BuildOffsetString2 function to build the selector string.

offsetFrequencyDefinition[in]int32

This parameter specifies the definition of the start frequency and stop frequency of the offset segments from the nearest carrier channels. The default value is Carrier Center to Meas BW Center.

Name

Value

Description

RFMXSPECAN_VAL_SEM_CARRIER_CENTER_TO_MEASUREMENT_BANDWIDTH_CENTER

0 (0x0)

The start frequency and stop frequency are defined from the center of the closest carrier channel bandwidth to the center of the offset segment measurement bandwidth.
Measurement Bandwidth = Resolution Bandwidth * Bandwidth Integral.

RFMXSPECAN_VAL_SEM_CARRIER_CENTER_TO_MEASUREMENT_BANDWIDTH_EDGE

1 (0x1)

The start frequency and stop frequency are defined from the center of the closest carrier channel bandwidth to the nearest edge of the offset segment measurement bandwidth.

RFMXSPECAN_VAL_SEM_CARRIER_EDGE_TO_MEASUREMENT_BANDWIDTH_CENTER

2 (0x2)

The start frequency and stop frequency are defined from the nearest edge of the closest carrier channel bandwidth to the center of the nearest offset segment measurement bandwidth.

RFMXSPECAN_VAL_SEM_CARRIER_EDGE_TO_MEASUREMENT_BANDWIDTH_EDGE

3 (0x3)

The start frequency and stop frequency are defined from the nearest edge of the closest carrier channel bandwidth to the edge of the nearest offset segment measurement bandwidth.

Returns

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 RFmxSpecAn_GetError function.

The general meaning of the status code is as follows:

Value

Meaning

0

Success

Positive Values

Warnings

Negative Values

Errors