Custom Field, distance traveled
Moderator: LT401Vette
-
- Super MS/Extra'er
- Posts: 2639
- Joined: Tue Sep 14, 2004 4:17 pm
- Location: Aberdeen, Wa
Custom Field, distance traveled
I searched and found a few post and got this formula [DistanceFt-1] >= 0 ? [DistanceFt-1]+(5280*([MPH]/3600)*([Time]-[Time-1])) : 0 and I named it Distance. I tried entering that into the custom field inputs and I get a please check your syntax error.
Im new to this, and just copy and pasted. Is that the correct formula?
Im new to this, and just copy and pasted. Is that the correct formula?
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
240Z, 2JZ, MS3Pro boost control
-
- Super MS/Extra'er
- Posts: 12731
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: Custom Field, distance traveled
There is field for distance traveled under:
Calculated Fields --> Optional Fields
Called TripFeet
That should do what you are looking to do. For the proper syntax, you can find the syntax for that in the MegaLogViewer.properties file in the MegaLogViewer install dir.
Calculated Fields --> Optional Fields
Called TripFeet
That should do what you are looking to do. For the proper syntax, you can find the syntax for that in the MegaLogViewer.properties file in the MegaLogViewer install dir.
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
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
-
- Super MS/Extra'er
- Posts: 2639
- Joined: Tue Sep 14, 2004 4:17 pm
- Location: Aberdeen, Wa
Re: Custom Field, distance traveled
Im on the latest MLV update and dont see the tripfeet log field. I found ftsec is all.
Im just trying to figure 1/4 mile distance. I made a really good pull where I got to 120mph in 10.3 seconds and want to see how short I am from a full 1/4 mile to judge rpm increase or a tire change.
Im just trying to figure 1/4 mile distance. I made a really good pull where I got to 120mph in 10.3 seconds and want to see how short I am from a full 1/4 mile to judge rpm increase or a tire change.
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
240Z, 2JZ, MS3Pro boost control
-
- Super MS/Extra'er
- Posts: 12731
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: Custom Field, distance traveled
It's there, but on a smaller screen it is too far down the list and off the screen
I'm on the road so using my little laptop and suffered that trouble.
It is over time to put in a dialog to manage the optional fields. There are too many for the menus.
Anyway, here is the entry from the MegaLogViewer.properties, this gives the working syntax:
There is also a TripMiles in there too.
I'm on the road so using my little laptop and suffered that trouble.
It is over time to put in a dialog to manage the optional fields. There are too many for the menus.
Anyway, here is the entry from the MegaLogViewer.properties, this gives the working syntax:
Code: Select all
APPEND_FIELD_TripFeet = [TripFeet-1] >= 0 ? [TripFeet-1]+(5280*([MPH]/3600)*([Time]-[Time-1])) : 0
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
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
-
- Super MS/Extra'er
- Posts: 2639
- Joined: Tue Sep 14, 2004 4:17 pm
- Location: Aberdeen, Wa
Re: Custom Field, distance traveled
Thanks Phil, I use a 15 inch laptop in the car and I count 7 fields using the down arrow I cant view before it returns to the top of the list. I wonder if changing the computers font size will rescal that? If not, when the laptop gets internet at home Ill add the field manually or use the 17 inch laptop the house uses.
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
240Z, 2JZ, MS3Pro boost control
-
- Super MS/Extra'er
- Posts: 2639
- Joined: Tue Sep 14, 2004 4:17 pm
- Location: Aberdeen, Wa
Re: Custom Field, distance traveled
I was able to put my laptop in Portrait mode and get the tripfeet and tripmile enabled. I reopened the log and the fields are not present, so I took a new datalog really quick and the fields are still not in the drop in the drop menus. Any ideas?
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
240Z, 2JZ, MS3Pro boost control
-
- Super MS/Extra'er
- Posts: 12731
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: Custom Field, distance traveled
What field are you using for vehicle speed. They would be looking for a MPH field like gets logged by TS or Shadow Dash with GPS.
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
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
-
- Super MS/Extra'er
- Posts: 2639
- Joined: Tue Sep 14, 2004 4:17 pm
- Location: Aberdeen, Wa
Re: Custom Field, distance traveled
I'm logging VSS1 and VSS2. I can post my data log and Msq in a bit.
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
240Z, 2JZ, MS3Pro boost control
-
- Super MS/Extra'er
- Posts: 2639
- Joined: Tue Sep 14, 2004 4:17 pm
- Location: Aberdeen, Wa
Re: Custom Field, distance traveled
Heres the logs and tune, I can add other fields in the list and they pop up, just not the tripfeet or trip mile.
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
240Z, 2JZ, MS3Pro boost control
-
- Super MS/Extra'er
- Posts: 12731
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: Custom Field, distance traveled
If using VSS1, create a custom field using the above formula only change MPH to VSS1 and TripFeet to what ever name you give the field.
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
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
-
- Super MS/Extra'er
- Posts: 2639
- Joined: Tue Sep 14, 2004 4:17 pm
- Location: Aberdeen, Wa
Re: Custom Field, distance traveled
Phil it seems I can always mess things up! Yesterday I tried inputting the formula you posted and I got the syntax error again. That's when I switched to portrait mode and actually clicked on the field.
This morning I reloaded the formula you posted and changed it to VSS2 and called it distance, and am still getting the syntax error. Is there something else I need to click on?
This morning I reloaded the formula you posted and changed it to VSS2 and called it distance, and am still getting the syntax error. Is there something else I need to click on?
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
240Z, 2JZ, MS3Pro boost control
-
- Super MS/Extra'er
- Posts: 2639
- Joined: Tue Sep 14, 2004 4:17 pm
- Location: Aberdeen, Wa
Re: Custom Field, distance traveled
Revisiting this. I was able to check the Trip Feet box in the optional fields, but its not showing up in the viewable field list. Other things that I add like MPH per gear are there, just not trip feet.
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
240Z, 2JZ, MS3Pro boost control
-
- Super MS/Extra'er
- Posts: 12731
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
Re: Custom Field, distance traveled
That entry is actually as it would be in the MegaLogViewer.properties file. To add it as a custom field named Distance through the UI, enter this:
Field Name: Distance
Formula:
[Distance-1] >= 0 ? [Distance-1]+(5280*([VSS2]/3600)*([Time]-[Time-1])) : 0
However, as that field references itself, you will need to enter it while a log is not loaded so it will pass validation. Otherwise it will fail as it is referencing a field that doesn't exist (it self)
So open MLV, add the above custom field, then open your log.
Field Name: Distance
Formula:
[Distance-1] >= 0 ? [Distance-1]+(5280*([VSS2]/3600)*([Time]-[Time-1])) : 0
However, as that field references itself, you will need to enter it while a log is not loaded so it will pass validation. Otherwise it will fail as it is referencing a field that doesn't exist (it self)
So open MLV, add the above custom field, then open your log.
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
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
-
- Super MS/Extra'er
- Posts: 2639
- Joined: Tue Sep 14, 2004 4:17 pm
- Location: Aberdeen, Wa
Re: Custom Field, distance traveled
That did it. All working now, Thanks Phil.
Volvo 940, 2jzge, MS3Pro, daily
240Z, 2JZ, MS3Pro boost control
240Z, 2JZ, MS3Pro boost control