Page 1 of 1

Logging System Voltage

Posted: Fri Aug 25, 2006 6:49 am
by pope
how would I modify the code for MT2.25 in order to have it log the vehicle's system voltage in the data log?

MT already monitors it in the real-time display, so I figure it should not be a difficult mod to make it log it, I just do not know how to do it.

Posted: Fri Aug 25, 2006 8:15 am
by PSIG
Hi pope -
It is recorded in the log. :D MegaLogViewer will display battery voltage along with the other recorded info if you select one of the trace labels (left click) and change it to Battery Voltage.
Image
David

Posted: Fri Aug 25, 2006 8:48 am
by Bernard Fife
pope, David;

In some versions of the INI files for older code, the battery voltage can be displayed (as a gauge, on the runtime screen, etc.) but is not necessarily logged. If that's the case, you can log it by adding a line like:

Code: Select all

   entry = batteryVoltage,  "vBatt",       float,  "%.2f"
to the [Datalog] section of the appropriate INI file.

Note that batteryVoltage is an entry is the [OutputChannels] section of the INI file (that tells Megatune where to find the battery voltage value in MegaSquirt's memory, and how to scale/translate it), and the rest of the [Datalog] line is formatting info for the datalog.

Lance.

Posted: Fri Aug 25, 2006 9:05 am
by PSIG
Lance wrote:... In some versions of the INI files for older code ... not necessarily logged.
Ahhh. Thanks Lance. I know it would be wall-size, but spreadsheets of the codes and features would be very helpful at times. :D I don't suppose...

David

Posted: Fri Aug 25, 2006 9:15 am
by Bernard Fife
David,

For MS-II there is this: http://www.megamanual.com/ms2/revisions.htm It covers the major changes. There are thousands of minor changes, though, and keeping it up would be hopeless, and the file would be too large to wade through anyhow. There have been a lot of developments in MS-II beta code lately, but the last stable release is 2.36. When the 2.68 code is released after a bit more testing, I'll try to detail the changes (their have been a lot in the code, and a lot in the INI as well).

For MS-I with the standard code, it has been stable for a very long time now, so a revision list isn't very useful.

For MSnS-E, I don't follow the development at all, perhaps James, Ken, and Phil already have something like this on their site.

Lance.

Posted: Sat Aug 26, 2006 10:42 pm
by pope
thanks guys, this was exactly the information I was needing.