Jump to content
  • 0

Some math on scope channels behaves strangely


Anthocyanina

Question

Was testing the integral and differential math operations, from custom math channels that were shared on the forum before, and I find that they require very large scales, and the derivative is also very noisy, and the bits are too large, and the integral requires an offset, a very large one. Any idea why this behaviour? thank you.

math.png

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Hi @Anthocyanina

Yes. It depends on the noise. What you are seeing is the derivative +/- sample to sample noise it captures. In M1 I didn't multiply it with the rate so you can see a +/-~2mV noise.

You probably want if(isNaN(prev)) prev = C1; and having the initializer code var prev = NaN;  for the first sample to be zero.

Link to comment
Share on other sites

  • 0

Hi @attila thank you. this is what I'm using to get the derivative:

diff.png.ac8da08c624dd2dd3859049be69f4e9f.png

To get the same as you did, I had to acquire the samples at 800Khz, then stop acquisition, and zoom in the timebase to 200µs/div. It looks the same, the only difference being the math scale. But during live acquisition, it is like how i showed in the first picture. Is that the expected behaviour? Thank you.

995730501_Screenshotfrom2022-10-1011-35-44.thumb.png.af2dc187db06e056e40bdff65c78ded0.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...