Envelope Spectrum and Demodulation

GX-TXT DEV112 P011-bis

Extract the envelope of a signal and derive the modulation spectrum, setting the passband and the FFT length.

GX-TXT P011-bis · module 1.1.0. Envelope Spectrum & Demodulation Analysis optionally isolates a band around a carrier, computes the magnitude of the analytic signal and analyzes its envelope in frequency. It publishes the time envelope and the spectrum with linear scale and density.

Prepare the demonstration signal

From Session → New Session → Generate Session choose the Generator envelope_spectrum and create a Standalone Session. In Datasets enable envelope.source. Open Preview and Metadata to check time in s and samples in V. The Generator offers envelope_truth_V as the ideal reference, clean_V as the clean signal and measured_V as the test signal.

Envelope Spectrum Generator when creating the lab Session.
Envelope Spectrum Generator when creating the lab Session.

Set extraction and spectrum

In Configuration → Modules → Analysis & Services search for Envelope Spectrum & Demodulation Analysis, check Health and use Enable module. In Analysis tick Run / recalculate now. In Dataset sources choose envelope.source as primary. + Add source adds aliases and Remove releases the source or removes an added alias. The case uses only primary. Bind Time / temporal variable to primary.time_s and Signal to primary.measured_V. auto uses the source information to resolve the binding.

Data selection (optional time interval)
None uses all samples. A time selection already saved on the same Dataset limits the analyzed samples. The NFFT constraint applies to the selected region.
Input detrend / DC handling
none keeps the signal, mean subtracts the mean, linear removes a linear trend. The default is mean.
Pre-demodulation isolation
none demodulates the trace without isolation. ideal_fft_bandpass isolates the band in the FFT domain before computing the envelope.
Bandpass lower / upper frequency [Hz]
Limits of the active filter. The initial values are 1500 and 2600 Hz. Choose increasing limits below the Nyquist frequency that include the carrier and the sidebands of interest. With none the limits are not used.
Envelope DC handling
keep keeps the mean level in the spectrum. remove_mean, the default, subtracts the mean before the FFT of the envelope. The report keeps the measure of the envelope mean.
Envelope-spectrum FFT window
rectangular gives the samples a uniform weight. hann, the default, and hamming taper the edges. blackman and blackman_harris attenuate the side lobes more. flat_top favors the amplitude estimate and widens the peaks. The choice acts on the envelope before its spectrum is computed.
NFFT mode
auto chooses the size from the samples. explicit uses the value in Explicit NFFT. Enter an integer at least equal to the samples used. With the full 65,536-sample record the program rejected 32,768. 131,072 completed the computation with a dense grid thanks to zero padding.
Configuration with Hann, linear detrend, 1500–2600 Hz isolation and an explicit NFFT of 131072.
Configuration with Hann, linear detrend, 1500–2600 Hz isolation and an explicit NFFT of 131072.

Compute and check the two Datasets

Open Run, update the plan and start the selective analysis. The case with the Generator’s 65,536 samples and NFFT 131,072 gives a spacing of about 0.0625 Hz. The case without filter, with keep, flat_top and automatic NFFT, gave 0.125 Hz. The grid spacing depends on sampling and NFFT. The record duration remains the reference for spectral separability.

In Results read envelope_spectrum_report.txt. In the filtered test the envelope mean is about 1.00024 V and the RMS 1.04494 V. In Datasets open envelope.source.envelope.v0004 and envelope.source.envelope_time.v0004. Canonical table shows frequency, amplitude, linear PSD and dB in the spectrum. Metadata and Technical details give source, procedure and units. Runs on the same variable update these IDs.

Canonical table of the spectrum Dataset with frequency, amplitude, linear density and dB.
Canonical table of the spectrum Dataset with frequency, amplitude, linear density and dB.

Compare the axes and the representation

In Plots the views offered include amplitude spectrum, PSD in dB, linear PSD and envelope over time. Use the amplitude to read the modulating components, the PSD to read the density in frequency and the time trace to spot changes in the envelope. To edit a variant Plot p… select it and use Presentation → Title and labels…. Save, click Render → Rerender and open Graph → Open PNG 1:1.

Envelope spectrum opened as a native PNG and retitled after the NFFT 131072 test.
Envelope spectrum opened as a native PNG and retitled after the NFFT 131072 test.