Reference subtraction error in MathChannel ?

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
plmohan
Newbie
Posts: 0
Joined: Wed Sep 07, 2022 7:08 pm

Reference subtraction error in MathChannel ?

Post by plmohan »

I am trying to subtract a reference channel using the MathChannel operation:
B -B(2) . The result does not appear correct. In attached plot, the bottom Red trace is B, top red trace is B(2). The difference (MathChannel output) is the black trace. There appears to be a scaling error of some sorts. In this example, the 'live' B signal is unchanged from the stored Reference. If instead I set up for MathChannel = B+B(2) the resulting output looks correct and is simply a 2x doubling of input (B).
Tech support feedback welcomed.
Attachments
math ch Ref B(2).pdf
MathChannel Ref Channel subtraction
(478.55 KiB) Downloaded 222 times

bennog
Advanced User
Advanced User
Posts: 208
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: Reference subtraction error in MathChannel ?

Post by bennog »

can you post a .psdata file

plmohan
Newbie
Posts: 0
Joined: Wed Sep 07, 2022 7:08 pm

Re: Reference subtraction error in MathChannel ?

Post by plmohan »

Yes, .psdata file attached.
Attachments
20220913-0001.psdata
(84.98 KiB) Downloaded 209 times

bennog
Advanced User
Advanced User
Posts: 208
Joined: Mon Nov 26, 2012 9:16 am
Location: Netherlands

Re: Reference subtraction error in MathChannel ?

Post by bennog »

It has something to do with the name of the reference channel.
it was somehow interpreted as 2B so the result was B - (2 * B)
Renamed the reference to Bref and the formula to "B-{Bref}"
See the attached psdata file for the result

Then back to the original file and changed the formula to " B- {B (2)}" and it worked like expected.

Benno
Attachments
20220914-0001.psdata
(85.23 KiB) Downloaded 212 times

plmohan
Newbie
Posts: 0
Joined: Wed Sep 07, 2022 7:08 pm

Re: Reference subtraction error in MathChannel ?

Post by plmohan »

Thanks for digging into this Benno. Working as expected now.
Cheers, Paul

Post Reply