Enums

enums.py - Contains enum classes.

class nirfmxdemod.enums.ADemodAMCarrierSuppressedEnabled(value)[source]

Bases: Enum

ADemodAMCarrierSuppressedEnabled.

FALSE = 0

The carrier of the AM signal is present.

TRUE = 1

The carrier of the AM signal is absent.

class nirfmxdemod.enums.ADemodAudioFilterType(value)[source]

Bases: Enum

ADemodAudioFilterType.

A_WEIGHT = 2

Uses an A-weighted filter.

B_WEIGHT = 3

Uses a B-weighted filter.

CCITT = 5

Uses the filter specified by CCITT.

CUSTOM = 1

Uses the filter specified by the ADEMOD_AUDIO_FILTER_LOWER_CUTOFF_FREQUENCY attribute and the ADEMOD_AUDIO_FILTER_UPPER_CUTOFF_FREQUENCY attribute.

C_WEIGHT = 4

Uses a C-weighted filter.

ITU_R_468_4 = 6

Uses the filter specified by ITU-R 468-4.

NONE = 0

Does not use any audio filter.

class nirfmxdemod.enums.ADemodAudioMeasurementEnabled(value)[source]

Bases: Enum

ADemodAudioMeasurementEnabled.

FALSE = 0

Disables the audio measurements.

TRUE = 1

Enables the audio measurements.

class nirfmxdemod.enums.ADemodAveragingEnabled(value)[source]

Bases: Enum

ADemodAveragingEnabled.

FALSE = 0

The measurement is performed on a single acquisition.

TRUE = 1

The analog demodulation measurement uses the ADEMOD_AVERAGING_COUNT attribute to calculate the number of acquisitions over which the measurement is averaged. Traces are not averaged.

class nirfmxdemod.enums.ADemodAveragingType(value)[source]

Bases: Enum

ADemodAveragingType.

LINEAR = 0

The averaged result is the mean value measured across multiple acquisitions.

MAXIMUM = 1

The averaged result is the maximum value measured across multiple acquisitions.

MINIMUM = 2

The averaged result is the minimum value measured across multiple acquisitions.

class nirfmxdemod.enums.ADemodCarrierFrequencyCorrectionEnabled(value)[source]

Bases: Enum

ADemodCarrierFrequencyCorrectionEnabled.

FALSE = 0

Does not correct the carrier frequency error.

TRUE = 1

Corrects the carrier frequency error.

class nirfmxdemod.enums.ADemodCarrierPhaseCorrectionEnabled(value)[source]

Bases: Enum

ADemodCarrierPhaseCorrectionEnabled.

FALSE = 0

Does not correct the carrier phase error.

TRUE = 1

Corrects the carrier phase error.

class nirfmxdemod.enums.ADemodModulationType(value)[source]

Bases: Enum

ADemodModulationType.

AM = 0

The signal to be analyzed is amplitude modulated.

FM = 1

The signal to be analyzed is frequency modulated.

PM = 2

The signal to be analyzed is phase modulated.

class nirfmxdemod.enums.ADemodRbwFilterType(value)[source]

Bases: Enum

ADemodRbwFilterType.

FLAT = 2

RBW filter has a Flat response.

GAUSSIAN = 1

RBW filter has a Gaussian response.

NONE = 0

RBW filter is not applied on the acquired signal.

RRC = 5

RRC filter with roll-off specified by the ADEMOD_RBW_FILTER_ALPHA attribute is used as the RBW filter.

SYNCH_TUNED_4 = 3

RBW filter has a response of a 4-pole synchronously-tuned filter.

SYNCH_TUNED_5 = 4

RBW filter has a response of a 5-pole synchronously-tuned filter.

class nirfmxdemod.enums.DDemodAveragingEnabled(value)[source]

Bases: Enum

DDemodAveragingEnabled.

FALSE = 0

The measurement is performed on a single acquisition.

TRUE = 1

The measurement uses the value of the DDEMOD_AVERAGING_COUNT attribute for the number of acquisitions over which the measurement is averaged. The traces are not averaged.

class nirfmxdemod.enums.DDemodCfoEstimationMode(value)[source]

Bases: Enum

DDemodCfoEstimationMode.

NARROW = 0

The measurement disables coarse carrier frequency offset estimation.

WIDE = 1

The measurement enables coarse and fine carrier frequency offset estimation.

class nirfmxdemod.enums.DDemodDifferentialEnabled(value)[source]

Bases: Enum

DDemodDifferentialEnabled.

FALSE = 0

The symbols are directly mapped onto the symbol map.

TRUE = 1

In case of PSK modulation, the transition between two consecutive symbols is mapped onto the symbol map. In case of MSK modulation, the consecutive bits are XORed.

Other modulation types do not have any impact.

class nirfmxdemod.enums.DDemodEqualizerMode(value)[source]

Bases: Enum

DDemodEqualizerMode.

HOLD = 2

The filter that you specify using the configure_equalizer_initial_coefficients() method is used as the channel filter, and it is applied before demodulating the acquired signal.

OFF = 0

Equalization is not performed.

TRAIN = 1

The adaptive feedforward equalizer is turned ON to compensate for the effect of the channel. You can set the initial coefficients to be used by the equalizer. If you do not specify the initial coefficients, an impulse is used.

class nirfmxdemod.enums.DDemodEvmNormalizationReference(value)[source]

Bases: Enum

DDemodEvmNormalizationReference.

PEAK = 0

The EVM is normalized to the peak magnitude of the reference symbols.

RMS = 1

The EVM is normalized to the RMS magnitude of the reference symbols. This value is applicable only to modulation types, such as quadrature-amplitude modulation (QAM). This value is expressed in which the symbols in the map do not have a constant amplitude.

class nirfmxdemod.enums.DDemodFskReferenceCompensationEnabled(value)[source]

Bases: Enum

DDemodFskReferenceCompensationEnabled.

FALSE = 0

Does not compensate for gain errors.

TRUE = 1

Compensates for gain errors.

class nirfmxdemod.enums.DDemodIQOffsetRemovalEnabled(value)[source]

Bases: Enum

DDemodIQOffsetRemovalEnabled.

FALSE = 0

The IQ offset is not removed before the EVM measurement.

TRUE = 1

The IQ offset is removed before the EVM measurement.

class nirfmxdemod.enums.DDemodM(value)[source]

Bases: Enum

DDemodM.

M1024 = 1024

The M-ary number is 1,024.

M128 = 128

The M-ary number is 128.

M16 = 16

The M-ary number is 16.

M2 = 2

The M-ary number is 2.

M2048 = 2048

The M-ary number is 2,048.

M256 = 256

The M-ary number is 256.

M32 = 32

The M-ary number is 32.

M4 = 4

The M-ary number is 4.

M4096 = 4096

The M-ary number is 4,096.

M512 = 512

The M-ary number is 512.

M64 = 64

The M-ary number is 64.

M8 = 8

The M-ary number is 8.

class nirfmxdemod.enums.DDemodMeasurementFilterType(value)[source]

Bases: Enum

DDemodMeasurementFilterType.

AUTO = 0

The signal analyzer computes the measurement filter coefficients based on the pulse-shaping filter information that you specify in the DDEMOD_PULSE_SHAPING_FILTER_TYPE attribute. If the DDemod Pulse Shaping Filter Type attribute is set to Custom, the signal analyzer enables equalization.

CUSTOM = 1

The signal analyzer uses the coefficients specified by configure_measurement_filter_custom_coefficients() method.

class nirfmxdemod.enums.DDemodModulationType(value)[source]

Bases: Enum

DDemodModulationType.

APSK = 5

The modulation type is amplitude phase-shift keying (APSK).

ASK = 0

The modulation type is amplitude-shift keying (ASK).

FSK = 1

The modulation type is frequency-shift keying (FSK).

MSK = 4

The modulation type is minimum shift keying (MSK).

PSK = 2

The modulation type is phase-shift keying (PSK).

QAM = 3

The modulation type is quadrature-amplitude modulation (QAM).

class nirfmxdemod.enums.DDemodPskFormat(value)[source]

Bases: Enum

DDemodPskFormat.

NORMAL = 0

Sets the modulation type to PSK.

OFFSET_QPSK = 1

Sets the modulation type to offset quadrature PSK (OQPSK). The ideal symbol timing of Q is offset by half of a symbol period from the ideal symbol timing of I.

PI_BY_4_QPSK = 2

Sets the modulation type to pi/4 QPSK. In this modulation, each QPSK symbol is rotated by pi/4.

PI_BY_8_8PSK = 3

Sets the modulation type to pi/8-8 PSK. In this modulation, each 8 PSK symbol is rotated by pi/8.

SHAPED_OFFSET_QPSK = 5

Sets the modulation type to Shaped Offset QPSK.The ideal symbol timing of Q is offset by half of a symbol period from the ideal symbol timing of I and the waveform is shaped using frequency pulse filter.

THREE_PI_BY_8_8PSK = 4

Sets the modulation type to 3*pi/8-8 PSK. In this modulation, each 8 PSK symbol is rotated by 3*pi/8.

class nirfmxdemod.enums.DDemodPulseShapingFilterType(value)[source]

Bases: Enum

DDemodPulseShapingFilterType.

CUSTOM = 4

The transmitted waveform is filtered using the coefficients that you specify in the configure_pulse_shaping_filter_custom_coefficients() method.

GAUSSIAN = 3

The transmitted waveform is filtered using a Gaussian filter. Specify the filter bandwidth * sample duration in the DDemod Pulse Shaping Filter Parameter attribute. This filter is applicable only to FSK and MSK modulation types.

HALF_SINE = 5

The transmitted waveform is filtered using a half sine filter.

LINEARIZED_GMSK_EDGE = 6

The transmitted waveform is filtered using an EDGE-specific linearized GMSK filter.

RAISED_COSINE = 1

The transmitted waveform is filtered using a raised cosine filter. Specify the filter Alpha in the DDEMOD_PULSE_SHAPING_FILTER_PARAMETER attribute.

RECTANGULAR = 0

The transmitted waveform is filtered using a rectangular filter.

ROOT_RAISED_COSINE = 2

The transmitted waveform is filtered using a root raised cosine filter. Specify the filter Alpha in the DDemod Pulse Shaping Filter Parameter attribute.

SOQPSK_TG = 7

The transmitted waveform is filtered using a SOQPSK - TG filter as defined in IRIG standard.

class nirfmxdemod.enums.DDemodSearchLengthAuto(value)[source]

Bases: Enum

DDemodSearchLengthAuto.

FALSE = 0

Synchronization bit pattern is searched in a waveform within the search Length duration.

TRUE = 1

Synchronization bit pattern is searched in a waveform of length determined by the measurement.

class nirfmxdemod.enums.DDemodSignalStructure(value)[source]

Bases: Enum

DDemodSignalStructure.

BURSTED = 0

The signal is a bursty signal.

CONTINUOUS = 1

The signal is a continuous signal.

class nirfmxdemod.enums.DDemodSpectrumInverted(value)[source]

Bases: Enum

DDemodSpectrumInverted.

FALSE = 0

The acquired I and Q samples are used for demodulation as is.

TRUE = 1

The acquired I and Q samples are swapped before using the signal for demodulation.

class nirfmxdemod.enums.DDemodSymbolMapType(value)[source]

Bases: Enum

DDemodSymbolMapType.

AUTO = 0

Uses a default symbol map.

CUSTOM = 1

Uses the map that you specify using the configure_symbol_map() method .

class nirfmxdemod.enums.DDemodSynchronizationEnabled(value)[source]

Bases: Enum

DDemodSynchronizationEnabled.

FALSE = 0

Does not search and synchronize the signal.

TRUE = 1

Searches and synchronizes the signal.

class nirfmxdemod.enums.DigitalEdgeTriggerEdge(value)[source]

Bases: Enum

DigitalEdgeTriggerEdge.

FALLING_EDGE = 1

The trigger asserts on the falling edge of the signal.

RISING_EDGE = 0

The trigger asserts on the rising edge of the signal.

class nirfmxdemod.enums.IQPowerEdgeTriggerLevelType(value)[source]

Bases: Enum

IQPowerEdgeTriggerLevelType.

ABSOLUTE = 1

The IQ Power Edge Level attribute specifies the absolute power.

RELATIVE = 0

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

class nirfmxdemod.enums.IQPowerEdgeTriggerSlope(value)[source]

Bases: Enum

IQPowerEdgeTriggerSlope.

FALLING_SLOPE = 1

The trigger asserts when the signal power is falling.

RISING_SLOPE = 0

The trigger asserts when the signal power is rising.

class nirfmxdemod.enums.LimitedConfigurationChange(value)[source]

Bases: Enum

LimitedConfigurationChange.

DISABLED = 0

This is the normal mode of RFmx operation. All configuration changes in RFmxInstr attributes or in personality attributes will be applied during RFmx Commit.

FREQUENCY = 2

Signal configuration, other than center frequency and external attenuation, is locked after first Commit of the named signal configuration. Thereafter, only the CENTER_FREQUENCY and CENTER_FREQUENCY attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. Refer to the Limitations of the Limited Configuration Change Property topic for more details about the limitations of using this mode.

FREQUENCY_AND_REFERENCE_LEVEL = 4

Signal configuration, other than center frequency, reference level, and external attenuation, is locked after first Commit of the named signal configuration. Thereafter only Center Frequency, Reference Level, and External Attenuation attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends you set the IQ Power Edge Level Type attribute to Relative so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Property topic for more details about the limitations of using this mode.

NO_CHANGE = 1

Signal configuration is locked after the first Commit of the named signal configuration. Any configuration change thereafter either in RFmxInstr attributes or personality attributes will not be considered by subsequent RFmx Commits or Initiates of this signal. Use No Change if you have created named signal configurations for all measurement configurations but are setting some RFmxInstr attributes. Refer to the Limitations of the Limited Configuration Change Property topic for more details about the limitations of using this mode.

REFERENCE_LEVEL = 3

Signal configuration, other than the reference level, is locked after first Commit of the named signal configuration. Thereafter only the REFERENCE_LEVEL attribute value change will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends that you set the REFERENCE_LEVEL to Relative so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Property topic for more details about the limitations of using this mode.

SELECTED_PORTS_FREQUENCY_AND_REFERENCE_LEVEL = 5

Signal configuration, other than Selected Ports, Center frequency, Reference level, External attenuation, and RFInstr configuration, is locked after first Commit or Initiate of the named signal configuration. Thereafter only Selected Ports, Center Frequency, Reference Level, and External Attenuation attribute value changes will be considered by subsequent driver Commits or Initiates of this signal. If you have configured this signal to use an IQ Power Edge Trigger, NI recommends you set the IQ Power Edge Level Type attribute to Relative so that the trigger level is automatically adjusted as you adjust the reference level. Refer to the Limitations of the Limited Configuration Change Property topic for more details about the limitations of using this mode.

class nirfmxdemod.enums.MeasurementTypes(value)[source]

Bases: IntFlag

MeasurementTypes.

ADEMOD = 1

Selects ADEMOD measurement.

DDEMOD = 2

Selects DDEMOD measurement.

class nirfmxdemod.enums.TriggerMinimumQuietTimeMode(value)[source]

Bases: Enum

TriggerMinimumQuietTimeMode.

AUTO = 1

The measurement computes the minimum quiet time used for triggering.

MANUAL = 0

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

class nirfmxdemod.enums.TriggerType(value)[source]

Bases: Enum

TriggerType.

DIGITAL_EDGE = 1

A digital-edge trigger is used for signal acquisition. The source of the digital edge is specified using the DIGITAL_EDGE_TRIGGER_SOURCE attribute.

IQ_POWER_EDGE = 2

An I/Q power-edge trigger is used for signal acquisition, which is configured using the IQ_POWER_EDGE_TRIGGER_SLOPE attribute.

NONE = 0

No reference trigger is used for signal acquisition.

SOFTWARE = 3

A software trigger is used for signal acquisition.