DS2072 int(ch1*ch2) math error? - Page 1
Forum section: electronics / testgear

author: Circlotron
author_rank: Super Contributor
timestamp: February 08, 2016, 01:20:28 am
content: Okay, so I'm looking at the blue voltage line and the yellow current line and wanting the integral of the two so I can see the total energy (milliJoules) in the event.First pic looks pretty good. After things finish the purple integral line stays at a steady final level.Second pic, scope setttings unchanged but make things a bit more energetic. Now that the yellow current returns to zero but the blue voltage does not, this seems to cause the purple integral line to start drifting downward. It should not because non-zero blue is being multiplied by *zero* yellow, so purple should stay put.Third pic is the same trace slowed down a little and this causes purple to be offset downward (maybe ok) but it also shows how far the the purple can drift down while blue is supposedly being multiplied by zero.Anyone else had this kind of issue?

author: markone
author_rank: Frequent Contributor
timestamp: February 08, 2016, 01:43:38 am
content: Actually seems weird, but if you look closely the first screen you can also notice the integral line stopping a little before than CH1 and CH2 reach zero, like the math was limited in precision or out of phase.For the rest it's like CH1 is never exactly equal to zero.You could try to make the integral of CH1 and CH2 separately to sort out that.Quote from: Circlotron on February 08, 2016, 01:20:28 am

author: markone
author_rank: Frequent Contributor
timestamp: February 08, 2016, 01:46:18 am
content: Also in the second screen the integral start to drift a little already from the trace start.

author: Circlotron
author_rank: Super Contributor
timestamp: February 08, 2016, 01:54:12 am
content: Quote from: markone on February 08, 2016, 01:46:18 amYes, while yellow is still at zero.Maybe there is some kind of small DC offset in the scope?

author: Circlotron
author_rank: Super Contributor
timestamp: February 08, 2016, 01:56:35 am
content: Quote from: markone on February 08, 2016, 01:43:38 amHow do you think I could do that? Say int(ch1*10) ?Now I have to leave to go to work. All excited but can't try this.Will keep watching this thread at work.

author: markone
author_rank: Frequent Contributor
timestamp: February 08, 2016, 01:57:15 am
content: Quote from: Circlotron on February 08, 2016, 01:54:12 amExactly,try to integrate only CH1 then CH2 separately.

author: markone
author_rank: Frequent Contributor
timestamp: February 08, 2016, 01:58:47 am
content: Ok, do not have this scope, i cannot replicate, anyway i'm interested to.

author: rich
author_rank: Frequent Contributor
timestamp: February 08, 2016, 02:18:40 am
content: Is anything in practice truly zero? Ch2 scale is 500V/div, so even 100uV on ch1 would give: -1250V * 100uV = -0.125 and the math scale is viewed at 5/div.

author: Circlotron
author_rank: Super Contributor
timestamp: February 08, 2016, 03:43:41 am
content: Okay, so ran a self calibration after running about 1/2 hour. No improvement.Try this:Ch1 at 5v/div and x10.Ch2 at 5v/div and x10. Leave Ch2 off.2mS div.Math = Intg(Ch1*1000)Math scale = 2v/div.As you shift Ch1 trace above and below centre the purple integral trace slopes up or down depending on the exact Ch1 offset from centre. Slope is *NOT* proportional to offset.Not only that, if you turn Ch2 on it changes the integral slope of Ch1 and you can see Ch1 trace move up about 2 pixels. I made a video about that a while back. -->https://youtu.be/6OQOK85-r0c

author: Circlotron
author_rank: Super Contributor
timestamp: February 08, 2016, 04:07:44 am
content: Quote from: Circlotron on February 08, 2016, 03:43:41 amAlso just noticed that if you go to average mode the integral slope gets 3 or 4 times steeper.Edit -> Going to average mode just moves the position of the line up or down a whisker to the /average/ position. Manually moving the non-averaged line with the shift knob has much the same effect on the integral slope line.

author: Circlotron
author_rank: Super Contributor
timestamp: February 08, 2016, 06:02:52 am
content: The more I think about this whole thing the more I reckon it might be just rounding errors - trying to do too much with 8-bit data. Multiply it out too far and it just gets too gritty.

author: markone
author_rank: Frequent Contributor
timestamp: February 08, 2016, 10:01:03 am
content: Quote from: Circlotron on February 08, 2016, 06:02:52 amThis would explain also what i said before "you can also notice the integral line stopping a little before than CH1 and CH2 reach zero, like the math was limited in precision or out of phase."Af far as "As you shift Ch1 trace above and below centre the purple integral trace slopes up or down depending on the exact Ch1 offset from centre. Slope is *NOT* proportional to offset." have you made a video ?

author: alsetalokin4017
author_rank: Super Contributor
timestamp: February 08, 2016, 11:11:44 am
content: Yeah, I've had these worries myself on the 1054z. A pity too because one of the main uses I had intended for this scope is power and energy balance measurements.But if you want to "prove" that your apparatus under test is a "free energy" device, with a continuously decreasing energy integral... it's ideal.

author: markone
author_rank: Frequent Contributor
timestamp: February 08, 2016, 09:37:48 pm
content: Quote from: alsetalokin4017 on February 08, 2016, 11:11:44 amOne thing that i have learned in the DSO era is that if you have to make decent power measurement on power line, power inverters and so on, a digital 8 bit scope (forget virtual additional bits) plus differential probes and current clamps, anyway expensive, is not the way to go, a dedicated instrument is a way better solution.Fo instance years ago i had an experience with a quite expensive Lecroy setup, a Wavesufer 8bit (plus virtual) 4CH 500Mhz DSO (13K euro) + Lecroy CP150 clamp current probes (4000 Euro each )+ Lecroy ADP305 voltage differential (1600 Euro each), after lots of inconsistent measurement on a 2 channel power inverter (a device working up to 50Khz), we switched to a 4CH Zes Zimmer power analyzer @ 15K euro that succeeded in its job at first try.Then the Lecroy kit was used efficiently for some other things, i have a nice memorys for its big touch screen