PDA

View Full Version : Pid Error



RC1
July 11th, 2020, 02:34 PM
I tried earlier to create a PID to show me AFR error comparing my wide band AFR to commanded AFR (E92.AFR_DMA). I figured the math was right since it's easy enough, but it came up with the attached error when I restarted SCAN. Not quite sure what it's telling me, any help would be appreciated.

aaronc7
July 12th, 2020, 05:14 AM
post your calc_pids

RC1
July 12th, 2020, 05:37 AM
post your calc_pids

PRN 031 is the problem one I think, if I get rid of it, no more error.

aaronc7
July 12th, 2020, 05:41 AM
I think the error message is telling you that the error is happening at Line 48.

The numbers / equation etc should be in line 48, after the word "factor". The CLC-xxxxx line should be blank otherwise like all the other calculated PIDs.

Give this one a go

23407

RC1
July 12th, 2020, 06:01 AM
It looks like that did the job, I think. Just going to start a log right now, I'll let you know.

Thank you

RC1
July 12th, 2020, 06:10 AM
Yup that did it. So you just moved the Low/High/Fmt/Exp down 1 line to line 48 then? Thank you so much for the help, now just 1 more little issue to tackle (hopefully) and I can get tuning.

aaronc7
July 12th, 2020, 06:13 AM
Yup that did it. So you just moved the Low/High/Fmt/Exp down 1 line to line 48 then? Thank you so much for the help, now just 1 more little issue to tackle (hopefully) and I can get tuning.

No problem, just a lazy Sunday, lounging around, glad I could help!

Yeah if you look at the format for all of the other PIDs... you have to define the min, max, precision and equation for each "unit"....in this case it unit is "factor". So yep, that's all I did, copy and paste data in line 47 down to line 48.

joecar
July 12th, 2020, 10:53 AM
Good job everyone :cheers:

RC1
July 12th, 2020, 01:24 PM
Thanks again Aaron, here is the new successful calc_pids file.