# Thread: Help Calculated pids (filters)

1. ## Help Calculated pids (filters)

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

2. 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

3. 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

4. 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.

5. Originally Posted by joecar
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

6. Originally Posted by joecar
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.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•