Instant fuel consumption in TS

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
Boshnakov
Helpful MS/Extra'er
Posts: 38
Joined: Mon May 11, 2015 2:20 am
Location: Bulgaria

Instant fuel consumption in TS

Post by Boshnakov »

Hello all,

Back in the day when I was at MS1 I found an explanation here how to configure TS to show instant fuel consumption on one gear and it worked. It seems though that MS2 configuration is not as MS1 so I can no longer use the same method now.

I am looking for a way to do it, both instant and average fuel consumption. I am using MS2 3.4.0 firmware.
BigLou240sx
Experienced MS/Extra'er
Posts: 276
Joined: Sat Mar 30, 2013 3:27 pm
Location: MA, USA

Re: Instant fuel consumption in TS

Post by BigLou240sx »

I can't help you out totally, but I like to use the instant fuel consumption gauge configured for gallons per hour. While driving, if I'm curious about MPG's, I take my instantaneous speed divided by the GPH readout from TS. What's nice about this is that it is not gear dependent.
1990 Nissan 240sx / SOHC KA-T / DIYPNP
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Instant fuel consumption in TS

Post by LT401Vette »

What you need to do is create / Edit a custom.ini

Add an OutputChannel named userSpeedMph

Code: Select all

[OutputChannels]

    userSpeedMph = { an expression to derive speed based on RPM }, "MPH"
put that custom.ini in the folder:

[YourTSProjectFolder]/projectCfg/

Then in TS select:
Data Logging --> Performance & Economy Fields

Set Vehicle Speed Source to: userSpeedMph
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Boshnakov
Helpful MS/Extra'er
Posts: 38
Joined: Mon May 11, 2015 2:20 am
Location: Bulgaria

Re: Instant fuel consumption in TS

Post by Boshnakov »

Finally got the time to play with the car again after the winter.

So it seems I have done something wrong as I got this error after editing the INI lately:

1 Errors:
Error: Variable 'RPM' used in expression, but not defined as OutputChannel or Setting Parameter in M2, Problem at:
[mainController.ini]:[Line:5242]: userSpeedMph = { (RPM*3.14*576.58)/4.22 }

Should I do something about "RPM" also? Any ideas?
Thanks.

PS: I think I found the solution. It seems that the variables there are case sensitive. I just had to write "rpm", small letters.
Boshnakov
Helpful MS/Extra'er
Posts: 38
Joined: Mon May 11, 2015 2:20 am
Location: Bulgaria

Re: Instant fuel consumption in TS

Post by Boshnakov »

Today I drove the car but without success as both gauges stay at 0.0. They are GaugeInstantLiterPer100Km and GaugeAvgLiterPer100Km.

I have set all vehicle specifications in TS, speed in KpH and fuel in Liters. I do not get the above error any more while loading the project.

Not sure what to do next.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Instant fuel consumption in TS

Post by LT401Vette »

Make a project Archive and send it to support <at> efianalytics.com with a reference to this thread.
We will take a look at it and see what's up.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Boshnakov
Helpful MS/Extra'er
Posts: 38
Joined: Mon May 11, 2015 2:20 am
Location: Bulgaria

Re: Instant fuel consumption in TS

Post by Boshnakov »

LT401Vette wrote:What you need to do is create / Edit a custom.ini

Add an OutputChannel named userSpeedMph

Code: Select all

[OutputChannels]

    userSpeedMph = { an expression to derive speed based on RPM }, "MPH"
put that custom.ini in the folder:

[YourTSProjectFolder]/projectCfg/

Then in TS select:
Data Logging --> Performance & Economy Fields

Set Vehicle Speed Source to: userSpeedMph
I had some misunderstanding about the ini files. When I did it exactly as quoted above, it works now OK.

The calculation is correct only for one gear of course.
LT401Vette
Super MS/Extra'er
Posts: 12697
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Instant fuel consumption in TS

Post by LT401Vette »

In TS3 the settings for userSpeedMPH have been added to the UI as normal inputs.
Also, TS3 has a UI based ini editor, so that should make life easier in the near future.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Post Reply