PPCAN - MIO Characteristic curve interpolation accuracy

Universal Controller for CAN Applications
Post Reply
Piotr
Posts: 7
Joined: Wed 9. Mar 2016, 15:10

PPCAN - MIO Characteristic curve interpolation accuracy

Post by Piotr » Mon 14. Mar 2016, 16:31

Hello,
I have characteristic curve like:
x1 264 y1 20
x2 292 y2 25
x3 318 y3 30

The outcome value I am getting only in integer numbers. Is it possible to increase accuracy till few numbers after coma?

User avatar
M.Gerber
Design & Documentation
Design & Documentation
Posts: 68
Joined: Mon 13. Sep 2010, 16:34

Re: PPCAN - MIO Characteristic curve interpolation accuracy

Post by M.Gerber » Mon 14. Mar 2016, 17:06

Hi Piotr,

The output of the Characteristic Curve function block is a 32-bit signed number (see "PPCAN-Editor 2 References" PDF document, e.g. available via the Windows Start menu), so you have a quite large output range of -2,147,483,648 to +2,147,483,647. Therefore, instead of 20, 25, and 30, you could use e.g. 20000, 25000, and 30000 as output. Afterwards, just use a corresponding divisor to adjust the values. In this example that would be 1000 and you get three digits behind the decimal point.

Greetings
Mark

Piotr
Posts: 7
Joined: Wed 9. Mar 2016, 15:10

Re: PPCAN - MIO Characteristic curve interpolation accuracy

Post by Piotr » Tue 15. Mar 2016, 09:55

Hi,
now it works. I put Y value x100 and in PCAN-Explorer factor 0,01.
Thanks a lot !!!

Post Reply