0
$\begingroup$

I have a waveform that's modulated by a trapezoidal function. I fitted the envelope to the expected function to show if the amplitude is modulated correctly.

Fit of envelope

I also plotted the difference of the fit and the envelope

Difference fit and envelope

This is an example of a fairly "healthy" waveform. Sometimes my amplifier likes to compress and decompress the output though, which results in a difference plot like this:

Difference unhealthy envelope

As you can see the difference doesn't seem to be continuous, and has sudden drops and rises. I want to be able to automatically detect these moments of compression/decompression. How do I show that the data is not "continuous" anymore?

$\endgroup$
6
  • $\begingroup$ Do you happen to know something about the spectrum of your signal? $\endgroup$ Commented Mar 30, 2023 at 17:47
  • $\begingroup$ @Marcus Müller You mean if I did a fourier transform? I did, but I'm not sure how that helps me in this case? $\endgroup$ Commented Mar 31, 2023 at 8:45
  • $\begingroup$ compression is a nonlinear operation that happens to your signal, so you can directly observe its presence if you know what an uncompressed spectrum looks like $\endgroup$ Commented Mar 31, 2023 at 9:30
  • $\begingroup$ @Marcus Müller Ok interesting! Could you elaborate a bit further? Because I'm not sure if I understand what to do with the spectrum yet $\endgroup$ Commented Mar 31, 2023 at 9:36
  • $\begingroup$ I'm not sure if this is a problem with your solution, but I do have to confess that the expected frequency and amplitude of the signal is variable each time the system is pulsed. I do have a data source on the expected frequency variables, but I don't have data on the expected amplitude $\endgroup$ Commented Mar 31, 2023 at 9:38

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.