## Math channel formulas

volrem
TwoWaves
Posts: 240
Joined: Fri Jan 03, 2014 3:43 pm
Location: Estonia

### Math channel formulas

Hi

I'm trying to create math channel to display wheel speed in km/h.

My sensor trigger wheel has 48 teeth so with freq(A)/48*60 i get rounds per minute and that function works.

But to put it into km/h I need to multiply that with wheel circumference which for 205/55R16 tyre is 1985mm.

Result will be in mm/minutes but i need to convert it to km/h. 1985mm/minutes equals 0.1191 km/h.

So my formula should look like this: freq(A)/48*60*0,1191 but that doesn't work for me. I get this result:
Also tried this one: freq(A)/48*7,146 (60*0,1191=7,146) and this gives bit different results but still not ok.

If i use integer [ freq(A)/48*7 ] then i get correct results but since it's rounded i can't get accurate enough.
I tried using . instead of , but get red error or pico crashes. Also tried parentheses in several ways but no success. What i'm doing wrong and is it possible to use numbers with . or , ?

Also tried formula listed in http://www.picotech.com/picoscope6-maths-channels.html but get red X.

volrem
TwoWaves
Posts: 240
Joined: Fri Jan 03, 2014 3:43 pm
Location: Estonia

### Re: Math channel formulas

Today is "answer your own question day" but perhaps helps someone else also.

Anyway i got it sorted after reading picotech forum. Noticed thread there about "Comma as decimal point".
My system also uses comma as decimal point so that's why i have had troubles with math channels from the beginning.

I followed instructions in this thread and now use . as decimal point. Everything works now.

http://www.picotech.com/support/topic14379.html

Robski