View Full Version : Help Calculated pids (filters)
dhoagland
May 26th, 2022, 08:50 AM
I'm having trouble "stringing" filters together in calculated pids
I have successfully made individual filters for TP and ECT and tested on Maps..
But when I try to have "TP">16 and ECT>65 I get various errors.
One said function okay, but when I applied the filter to the Map it gave me am error
Eventually I would like to have one something like:
TP>25,ECT>160, Injector tip temp<160,not in fuel trim cell6"or" greater....
But I can't even get 2 tied togather
Forgive my lack of code writing
dhoagland
May 27th, 2022, 06:08 AM
Newbies...
For anyone needing the VERY BASICS with Calculated Pids and Filters, this helped me a lot...
#7 in the series is Boolean Math, I watched them all..
I downloaded the the Visual Studio so I could practice along with the videos...
https://www.youtube.com/watch?v=HDAE9OR28gY
Highlander
May 31st, 2022, 02:12 PM
Very nice. You can use the sidebar. It does a lot of the work for you.
For instance..
This is my ETCTP WOT filter
-- XFLT.ETCWOT
return pid("ETCTP")>90
joecar
June 5th, 2022, 09:56 AM
Hi dhoagland,
First, check that you are logging all the pids mentioned in the calc pids and filters that you're using.
Second, you need to use the pid() call to enclose the pid strings (and you should simplify the pid strings)... i.e. like this:
return pid("TP")>16 and pid("ECT")>60
Third, when using if-else, a return causes the calc pid/filter to immediately exit... i.e. the second if-else will not be executed... so the filter is only checking one condition.
dhoagland
June 5th, 2022, 10:32 AM
Hi dhoagland,
First, check that you are logging all the pids mentioned in the calc pids and filters that you're using.
Second, in the if conditions you need to use the pid() call to enclose the pid strings (and you should simplify the pid strings)... i.e. like this:
return pid("TP")>16 and pid("ECT")>60
Third, when using if-else, a return causes the calc pid/filter to immediately exit... i.e. the second if-else will not be executed... so the filter is only checking one condition.
Thanks joecar!!!!
I'm seeing what you are saying "stick with it"... Since I realized I could download the tune on my car, that is tuned in another platform, then scan maps developed from the tune file, this is really coming together for me...
Now when I get a hold of Son in Laws Duramax I think I'll have a good starting point
Highlander
June 27th, 2022, 03:17 AM
Hi dhoagland,
First, check that you are logging all the pids mentioned in the calc pids and filters that you're using.
Second, you need to use the pid() call to enclose the pid strings (and you should simplify the pid strings)... i.e. like this:
return pid("TP")>16 and pid("ECT")>60
Third, when using if-else, a return causes the calc pid/filter to immediately exit... i.e. the second if-else will not be executed... so the filter is only checking one condition.
Very useful.
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.