Configures the device to wait for the complex power of the I/Q data to cross the specified threshold and then marks a reference point within the record. To trigger on bursty signals, specify a minimum quiet time, which ensures that the trigger does not occur in the middle of the burst signal. The quiet time must be set to a value smaller than the time between bursts, but large enough to ignore power changes within a burst.

Syntax

int32 __stdcall RFmxPulse_CfgIQPowerEdgeTrigger(niRFmxInstrHandle instrumentHandle, char selectorString[], char iqPowerEdgeSource[], int32 iqPowerEdgeSlope, float64 iqPowerEdgeLevel, float64 triggerDelay, int32 triggerMinQuietTimeMode, float64 triggerMinQuietTimeDuration, int32 iqPowerEdgeLevelType, int32 enableTrigger)

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 a Selector String comprising of the signal name. If you do not specify the signal name, the default signal instance is used. The default value is "" (empty string).
Example:
""
"signal::sig1"

iqPowerEdgeSource[in]char

This parameter specifies the channel from which the device monitors the trigger. The default of this attribute is hardware dependent.

iqPowerEdgeSlope[in]int32

This parameter specifies whether the device asserts the trigger when the signal power is rising or when it is falling. The device asserts the trigger when the signal power exceeds the specified level with the slope you specify. The default value is Rising Slope.

Name

Value

Description

RFMXPULSE_VAL_IQ_POWER_EDGE_RISING_SLOPE

0 (0x0)

The trigger asserts when the signal power is rising.

RFMXPULSE_VAL_IQ_POWER_EDGE_FALLING_SLOPE

1 (0x1)

The trigger asserts when the signal power is falling.

iqPowerEdgeLevel[in]float64

This parameter specifies the power level at which the device triggers. This value is expressed in dB when you set the IQ Power Edge Level Type parameter to Relative and is expressed in dBm when you set the IQ Power Edge Level Type parameter to Absolute. The device asserts the trigger when the signal exceeds the level specified by the value of this parameter, taking into consideration the specified slope. The default of this attribute is hardware dependent.

triggerDelay[in]float64

This parameter specifies the trigger delay time, in seconds. The default value is 0.

triggerMinQuietTimeMode[in]int32

This parameter specifies whether the measurement computes the minimum quiet time used for triggering. The default value is Manual.

Name

Value

Description

RFMXPULSE_VAL_TRIGGER_MINIMUM_QUIET_TIME_MODE_MANUAL

0 (0x0)

The minimum quiet time for triggering is the value of the RFMXPULSE_ATTR_TRIGGER_MINIMUM_QUIET_TIME_DURATION attribute.

RFMXPULSE_VAL_TRIGGER_MINIMUM_QUIET_TIME_MODE_AUTO

1 (0x1)

The measurement computes the minimum quiet time used for triggering.

triggerMinQuietTimeDuration[in]float64

This parameter specifies the duration, in seconds, for which the signal must be quiet before the signal analyzer arms the I/Q Power Edge trigger. If you set the IQ Power Edge Slope parameter to Rising Slope, the signal is quiet when it is below the trigger level. If you set the IQ Power Edge Slope parameter to Falling Slope, the signal is quiet when it is above the trigger level. The default of this attribute is hardware dependent.

iqPowerEdgeLevelType[in]int32

This parameter specifies the reference for the IQ Power Edge Level parameter. The default value is Absolute.

Name

Value

Description

RFMXPULSE_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_RELATIVE

0 (0x0)

The value of the IQ Power Edge Level attribute is relative to the value of the RFMXPULSE_ATTR_REFERENCE_LEVEL attribute.

RFMXPULSE_VAL_IQ_POWER_EDGE_TRIGGER_LEVEL_TYPE_ABSOLUTE

1 (0x1)

The IQ Power Edge Level attribute specifies the absolute power.

enableTrigger[in]int32

This parameter specifies whether to enable the trigger. The default value is TRUE.

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

The general meaning of the status code is as follows:

Value

Meaning

0

Success

Positive Values

Warnings

Negative Values

Errors