Results 1 to 6 of 6

Thread: Help Calculated pids (filters)

  1. #1
    Junior Member
    Join Date
    Aug 2018
    Posts
    29

    Default 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
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	error.PNG 
Views:	186 
Size:	182.3 KB 
ID:	24144   Click image for larger version. 

Name:	Filter 1.PNG 
Views:	191 
Size:	44.5 KB 
ID:	24145   Click image for larger version. 

Name:	Filter 2.PNG 
Views:	181 
Size:	48.1 KB 
ID:	24146   Click image for larger version. 

Name:	Filter3.PNG 
Views:	176 
Size:	72.1 KB 
ID:	24147  

  2. #2
    Junior Member
    Join Date
    Aug 2018
    Posts
    29

    Default

    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. #3
    Lifetime Member
    Join Date
    Jul 2003
    Posts
    1,907

    Default

    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
    "All that is needed for the triumph of evil is that good men do nothing..."

  4. #4
    Joe (Moderator) joecar's Avatar
    Join Date
    Apr 2003
    Posts
    28,407

    Default

    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.
    Last edited by joecar; June 5th, 2022 at 09:35 AM.

  5. #5
    Junior Member
    Join Date
    Aug 2018
    Posts
    29

    Default

    Quote Originally Posted by joecar View Post
    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. #6
    Lifetime Member
    Join Date
    Jul 2003
    Posts
    1,907

    Default

    Quote Originally Posted by joecar View Post
    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.
    "All that is needed for the triumph of evil is that good men do nothing..."

Similar Threads

  1. Calculated pids
    By x MadMAX DIESEL in forum Black Box Logging
    Replies: 37
    Last Post: June 22nd, 2018, 08:26 AM
  2. Calculated PIDS?
    By beav in forum Diesel
    Replies: 0
    Last Post: December 3rd, 2013, 03:19 AM
  3. V8 User Calculated PIDs
    By Ninety8C5 in forum Tips and tricks
    Replies: 0
    Last Post: November 17th, 2013, 07:21 AM

Posting Permissions

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