RFmx BT CVI

RFmxBT_CfgLEDirectionFinding

  • Updated2024-10-14
  • 2 minute(s) read

RFmxBT_CfgLEDirectionFinding

int32 __stdcall RFmxBT_CfgLEDirectionFinding (niRFmxInstrHandle instrumentHandle, char selectorString[], int32 directionFindingMode, float64 CTELength, float64 CTESlotDuration);

Purpose

Configures the mode of direction finding, length of the constant tone extension field, and the duration of the switching slot in the generated signal.

Parameters

Input
Name Type Description
instrumentHandle niRFmxInstrHandle Specifies the instrument session. The RFmx driver obtains this parameter from the RFmxBT_Initialize function.
selectorString char[] Specifies a selector string comprising of the signal name. If you do not specify the signal name, the default signal instance is used.
Examples:
""
"signal::sig1"
You can use the RFmxBT_BuildSignalString function to build the selector string.
directionFindingMode int32 Specifies the mode of direction finding. The default value is RFMXBT_VAL_DIRECTION_FINDING_MODE_DISABLED.

RFMXBT_VAL_DIRECTION_FINDING_MODE_DISABLED (0)

Specifies that the LE packet does not have fields required for direction finding.

RFMXBT_VAL_DIRECTION_FINDING_MODE_ANGLE_OF_ARRIVAL (1)

Specifies the LE packets uses the angle of arrival method of direction finding.

RFMXBT_VAL_DIRECTION_FINDING_MODE_ANGLE_OF_DEPARTURE (2)

Specifies the LE packet uses angle of departure method of direction finding.

CTELength float64 Specifies the length of the constant tone extension (CTE) field in the generated signal. This value is expressed in seconds. This parameter is applicable only when you set the Direction Finding Mode parameter to either RFMXBT_VAL_DIRECTION_FINDING_MODE_ANGLE_OF_ARRIVAL or RFMXBT_VAL_DIRECTION_FINDING_MODE_ANGLE_OF_DEPARTURE. The default value is 160 microseconds.
CTESlotDuration float64 Specifies the length of the switching slots and transmit slots in the constant tone extension field in the generated 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 RFmxBT_GetError function.

The general meaning of the status code is as follows:

Value Meaning
0 Success
Positive Values Warnings
Negative Values Errors

Log in to get a better experience