Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Any way to define variables in a custom PID?

  1. #1
    Senior Member thunder550's Avatar
    Join Date
    Mar 2006
    Posts
    178

    Default Any way to define variables in a custom PID?

    I wanted to see if it was possible to set up a variable that would continually add data values. I want to create an MPG PID that will not get thrown off when DFCO is enabled, but it would require a running total of fuel used and miles traveled. Is this possible?

  2. #2
    EFILive Reseller kbracing96's Avatar
    Join Date
    Sep 2005
    Posts
    584

    Default

    TTT!!! I would like to know how one would go about this all so Something I'm VERY interested in.
    01 ECSB 1/2 ton 4x4 Forged 5.7 LS1 GMC

    Custom KBracing front mounted, BW S480, intercooled turbo


  3. #3
    EFILive Reseller kbracing96's Avatar
    Join Date
    Sep 2005
    Posts
    584

    Default

    Nobody knows how to make these pids add up???
    01 ECSB 1/2 ton 4x4 Forged 5.7 LS1 GMC

    Custom KBracing front mounted, BW S480, intercooled turbo


  4. #4
    Senior Member thunder550's Avatar
    Join Date
    Mar 2006
    Posts
    178

    Default

    Bueller?

    Bueller?


    Anyone?

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

    Default

    I think it would require the integrate() function (which used to be in V5) and some conditional gating using the iff() function.

    The itegrate() function sums up samples over time.

  6. #6
    Lifetime Member SSpdDmon's Avatar
    Join Date
    Jun 2005
    Posts
    1,558

    Default

    If you're logging MPG over a period of time, why wouldn't you want to log when in DFCO? The pure purpose of it is to save on gas when off the throttle.

    When you drive, logging MPG from the time you start the car to the time you shut it off should give you an accurate representation of what you're looking for. Knowing where to look is key. You're basically asking for the average for a distance traveled. So, make a map (F11) with MPG as the data value and hit the X for the average value.

  7. #7
    EFILive Reseller kbracing96's Avatar
    Join Date
    Sep 2005
    Posts
    584

    Default

    Quote Originally Posted by SSpdDmon View Post
    If you're logging MPG over a period of time, why wouldn't you want to log when in DFCO? The pure purpose of it is to save on gas when off the throttle.

    When you drive, logging MPG from the time you start the car to the time you shut it off should give you an accurate representation of what you're looking for. Knowing where to look is key. You're basically asking for the average for a distance traveled. So, make a map (F11) with MPG as the data value and hit the X for the average value.

    See, that doesn't work. The only PID we have is INSTANT MPG, which the average of is NOT true MPG. It way over compensates when in DFCO and does not subtract when you are stopped, cuz it setting at 0 and your still burning fuel. Only way to get TRUE average MPG is to is to divide miles traveled by fuel used for the entire log. Make since?
    01 ECSB 1/2 ton 4x4 Forged 5.7 LS1 GMC

    Custom KBracing front mounted, BW S480, intercooled turbo


  8. #8
    Lifetime Member TAQuickness's Avatar
    Join Date
    Jan 2005
    Posts
    2,940

    Default

    Not trying to be a smart ass, but when you are sitting idle with the engine running aren't you getting 0 mpg?

    I've used the custom MPG PID, found somewhere in this forum, and compared it to actual tank top off's and have found it to be very accurate. Also, my Dakota has one of those average MPG gizmo's by the rear view mirror and I've found it to be accurate withing .2 MPG between fillups.

    It's not the same as what y'all are after, but food for thought.


  9. #9
    EFILive Reseller kbracing96's Avatar
    Join Date
    Sep 2005
    Posts
    584

    Default

    Quote Originally Posted by TAQuickness View Post
    Not trying to be a smart ass, but when you are sitting idle with the engine running aren't you getting 0 mpg?

    I've used the custom MPG PID, found somewhere in this forum, and compared it to actual tank top off's and have found it to be very accurate. Also, my Dakota has one of those average MPG gizmo's by the rear view mirror and I've found it to be accurate withing .2 MPG between fillups.

    It's not the same as what y'all are after, but food for thought.

    Think about this.... Your INSTANT average is running about 18.2 MPG's on the scanner. Then you stop. Its now sitting at 0, BUT your still burning fuel, so your average MPG should be going down, right? But its not, cuz it's at 0 and not a negative number since your stopped but still burning fuel.

    I've used the pid several times, it seem pretty accurate right up until I stop or go into DFCO and it shoots up into the 300 MPG range which RAPIDLY brings the average INSTANT WAY up. See what I'm getting at here. As long as you moving and not getting into DFCO it is pretty accurate, but it's still no as true as if you divided miles traveled buy fuel used. That's all I want guys,
    Last edited by kbracing96; April 3rd, 2008 at 11:39 AM.
    01 ECSB 1/2 ton 4x4 Forged 5.7 LS1 GMC

    Custom KBracing front mounted, BW S480, intercooled turbo


  10. #10
    Senior Member thunder550's Avatar
    Join Date
    Mar 2006
    Posts
    178

    Default

    Quote Originally Posted by SSpdDmon View Post
    If you're logging MPG over a period of time, why wouldn't you want to log when in DFCO? The pure purpose of it is to save on gas when off the throttle.
    The problems is that the MPG PID assigns some arbitrary value when the truck goes into DFCO mode. The calculation is done as follows:

    {SAE.VSS.mph}/({GM.INJFLOW.lbpm} * {GM.IBPW1} * {SAE.RPM} * 4 / 6250 )

    When DFCO mode is enabled, injector base pulse width goes to zero, which makes this whole equation a divide by zero equation. It's not possible to include DFCO situations in the MPG average because of this, which makes it very inaccurate when factoring in DFCO situations. Because of this, the only way to get a good average that includes DFCO situations is to sum distance traveled and fuel used, and calculate the average with those two variables.

Page 1 of 2 12 LastLast

Similar Threads

  1. Visibility to Active Tables/Variables in Scan Files
    By bobbycollier in forum General
    Replies: 2
    Last Post: January 10th, 2009, 09:10 PM
  2. custom OS with efi v1
    By dsmlights in forum Custom Operating Systems
    Replies: 4
    Last Post: December 5th, 2007, 07:28 PM
  3. Can we better define the "enabler" options?
    By Redline Motorsports in forum General (Petrol, Gas, Ethanol)
    Replies: 8
    Last Post: November 3rd, 2006, 07:55 AM
  4. 2 bar MAF with custom O/S??
    By thunder550 in forum Custom Operating Systems
    Replies: 1
    Last Post: November 1st, 2006, 05:48 AM
  5. Can you define these idle parameters?
    By Redline Motorsports in forum General (Petrol, Gas, Ethanol)
    Replies: 13
    Last Post: March 7th, 2006, 02:07 PM

Posting Permissions

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