Page 1 of 1
Voltage logging?
Posted: Thu Mar 09, 2006 10:43 pm
by fordfanboi
Is there any sort of voltage logging I can view in the data logs for the MS II? I'd like to record what my voltage readings are.
Thanks!
Posted: Fri Mar 10, 2006 8:47 am
by bleoh
IIRC that is one of the standard readings that is logged.
Posted: Fri Mar 10, 2006 9:57 am
by Bernard Fife
Bleoh, fordfanboi,
I don't think battery voltage is in the standard MS-II logs in order to manitain compaitibility with older logs. It is easily added though.
Add the line:
Code: Select all
entry = batteryVoltage, "VBatt", float, "%.3f"
to the [Datalog] section of the megasquirt-II.ini file (near the end) and you will be logging battery voltage.
I use MegaLogViewer, so I can just select VBatt once I load the datalog to see the voltages.
Note that 'batteryVoltage' also needs to be in the 'Output Channels' in the INI file, but it should be there by default in MS-II in a line like:
Code: Select all
batteryVoltage = { batADC / 255.0 * 30.0 } ; Current MS power supply voltage.
More on voltage logging:
http://www.msefi.com/viewtopic.php?p=94 ... batt#94115
Lance.
Posted: Fri Mar 10, 2006 11:47 am
by fordfanboi
GREAT! Thanks much!
Posted: Fri Mar 10, 2006 1:20 pm
by fordfanboi
I didn't see exactly what you typed in my .ini. Here's what I have - is it correct?
batteryVoltage = scalar, S16, 26, "v", 0.100, 0.0
Thanks!
Posted: Fri Mar 10, 2006 1:39 pm
by Bernard Fife
batteryVoltage = scalar, S16, 26, "v", 0.100, 0.0
fordfanboi,
Yes, that will work! You still need to add:
Code: Select all
entry = batteryVoltage, "VBatt", float, "%.3f"
to the datalog section of the INI, of course.
Lance.
Posted: Fri Mar 10, 2006 2:20 pm
by fordfanboi
Yep - got'r done!
Thanks much!