Crash When Using Math Channel

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
andya
Newbie
Posts: 0
Joined: Tue Jul 14, 2020 11:32 pm

Crash When Using Math Channel

Post by andya »

Picoscope 6.14.23.5207
PicoScope 2204A
Hardware Version: 17
Driver Version: 3.0.40.2131

Create a math channel with the following equation: 60/((1/freq(A))*2) called RPM and a range of 0 to 1900. Don't enter a units long name or short name.

Select channel and click on OK to use it and PicoScope 6 crashes.

100% reproducible - happens every time.

Andy
Attachments
ps.png
ps2.png
ps2.png (10.67 KiB) Viewed 3066 times

Martyn
Site Admin
Site Admin
Posts: 4500
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Crash When Using Math Channel

Post by Martyn »

I would change the math channel

60/((1/freq(A))*2)
to
30*freq(A)

which is the same.

The reason you are getting the crash is that at the very start of the trace the frequency is unknown as there haven't been the crossing points to determine it, you will see no trace in the math channel plot. And if you ripple this through the math you get a divide by zero, which should fail gracefully so I will let the team know.
Martyn
Technical Support Manager

andya
Newbie
Posts: 0
Joined: Tue Jul 14, 2020 11:32 pm

Re: Crash When Using Math Channel

Post by andya »

Once I added a name for the units (long and short) it went away. Andy

Post Reply