So I have a unique set up where I normally use the logger...my PC is a motherboard stuffed behind the glovebox, and my monitor and mouse is a 7" 800x480 flip-out touchscreen monitor. This creates a challenge when using a program like the ECU logger as it has too many options and is easy to fat finger with the touchscreen, not to mention scrolling and dragging is a pain.
Lets say, just for instance, when I am driving around normally, the only items I would ever want to log or view in the digital dashboard are LC-1 wideband, RPM, manifold pressure, ignition timing, and my headlight switch. Having 100 some-odd items to pick through when normally I am interested in viewing 2 or 3, and at most 5, for day to day monitoring, can be cumbersome in a situation like mine. So this is what I do...first, get yourself a good XML highlighting plain text editor.
http://www.pspad.com/ is my favorite for Windows, Mac I use x-code, and Linux has it built into default text editors for most desktop environments. What ever you do, don't use notepad for windows as it doesn't really do newlines properly (use wordpad if you're in a pinch).
Next, save two copies of your logger.xml file - we'll call one loglite.xml, and the other logfull.xml. logfull we'll leave as it is, but loglite.xml we will open in a text editor.
Now is where the magic happens. Before you start disabling everything you don't want, you have to read over the dependencies for all derived parameters. They start at line 648 for the newest definition. For instance, if you want to use 'Injector Duty Cycle', you will see that it depends on P8 and P21 (RPM and Inj. pulse width), so you cannot disable them. Take note of any dependencies, or you will end up with a blank screen with no parameters as not meeting dependencies will cause the program to fail at parsing the XML document.
Now that you know what you can't disable, go ahead and disable anything else. This is how you do it - lets just say that I don't give a damn about engine load or air/fuel correction. I'll never log them. But I do want coolant temperature. To make sure they never show up in my logger again, I simply comment out the lines of code. Here is what lines 12-53 of the latest logger.xml file look like out of the box:
Code:
<parameter id="P1" name="Engine Load" desc="" ecubyteindex="8" ecubit="7">
<address>0x000007</address>
<conversions>
<conversion units="%" expr="x*100/255" format="0.00"/>
</conversions>
</parameter>
<parameter id="P2" name="Coolant Temperature" desc="" ecubyteindex="8" ecubit="6">
<address>0x000008</address>
<conversions>
<conversion units="F" expr="32+9*(x-40)/5" format="0"/>
<conversion units="C" expr="x-40" format="0"/>
</conversions>
</parameter>
<parameter id="P3" name="Air/Fuel Correction #1" desc="" ecubyteindex="8" ecubit="5">
<address>0x000009</address>
<conversions>
<conversion units="%" expr="(x-128)*100/128" format="0.00"/>
</conversions>
</parameter>
<parameter id="P4" name="Air/Fuel Learning #1" desc="" ecubyteindex="8" ecubit="4">
<address>0x00000A</address>
<conversions>
<conversion units="%" expr="(x-128)*100/128" format="0.00"/>
</conversions>
</parameter>
<parameter id="P5" name="Air/Fuel Correction #2" desc="" ecubyteindex="8" ecubit="3">
<address>0x00000B</address>
<conversions>
<conversion units="%" expr="(x-128)*100/128" format="0.00"/>
</conversions>
</parameter>
<parameter id="P6" name="Air/Fuel Learning #2" desc="" ecubyteindex="8" ecubit="2">
<address>0x00000C</address>
<conversions>
<conversion units="%" expr="(x-128)*100/128" format="0.00"/>
</conversions>
</parameter>
Now simply wrap any parameters you don't want with XML comment tags. It is very important that you wrap an entire parameter block, starting with
Code:
<parameter id="blahblah...">
and ending with
Code:
</parameter>
. Those are start and end tags, and you need your start and end comment tags completely before the start tag, and completely after the end tag, respectfully. Everything contained within will be ignored. In XML/HTML/most markup languages, comment tags start with
Code:
<!--
and end with
Code:
-->
.
So, now the example above, with everything but coolant temp commented out:
Code:
<!-- <parameter id="P1" name="Engine Load" desc="" ecubyteindex="8" ecubit="7">
<address>0x000007</address>
<conversions>
<conversion units="%" expr="x*100/255" format="0.00"/>
</conversions>
</parameter>
-->
<parameter id="P2" name="Coolant Temperature" desc="" ecubyteindex="8" ecubit="6">
<address>0x000008</address>
<conversions>
<conversion units="F" expr="32+9*(x-40)/5" format="0"/>
<conversion units="C" expr="x-40" format="0"/>
</conversions>
</parameter>
<!--
<parameter id="P3" name="Air/Fuel Correction #1" desc="" ecubyteindex="8" ecubit="5">
<address>0x000009</address>
<conversions>
<conversion units="%" expr="(x-128)*100/128" format="0.00"/>
</conversions>
</parameter>
<parameter id="P4" name="Air/Fuel Learning #1" desc="" ecubyteindex="8" ecubit="4">
<address>0x00000A</address>
<conversions>
<conversion units="%" expr="(x-128)*100/128" format="0.00"/>
</conversions>
</parameter>
<parameter id="P5" name="Air/Fuel Correction #2" desc="" ecubyteindex="8" ecubit="3">
<address>0x00000B</address>
<conversions>
<conversion units="%" expr="(x-128)*100/128" format="0.00"/>
</conversions>
</parameter>
<parameter id="P6" name="Air/Fuel Learning #2" desc="" ecubyteindex="8" ecubit="2">
<address>0x00000C</address>
<conversions>
<conversion units="%" expr="(x-128)*100/128" format="0.00"/>
</conversions>
</parameter>
-->
Things become tricky when you run into comment tags already in the file, such as line 650. You can go ahead and remove the existing comments if you don't plan on reading them, or you can close and reopen comment tags around them, like so:
original:
Code:
<parameter id="P200" name="Engine Load (Calculated)" desc="Engine load as calculated from MAF and RPM.">
<depends>
<ref parameter="P8"/> <!-- Engine Speed -->
<ref parameter="P12"/> <!-- MAF -->
</depends>
<conversions>
<conversion units="g/rev" expr="(P12*60)/P8" format="0.00"/>
<conversion units="2*g/rev" expr="(P12*60)/P8*2" format="0.00"/>
<conversion units="g/cyl" expr="(P12*60)/P8/2" format="0.00"/>
</conversions>
</parameter>
Commented:
Code:
<!-- <parameter id="P200" name="Engine Load (Calculated)" desc="Engine load as calculated from MAF and RPM.">
<depends>
<ref parameter="P8"/>--> <!-- Engine Speed --><!--
<ref parameter="P12"/> --><!-- MAF --><!--
</depends>
<conversions>
<conversion units="g/rev" expr="(P12*60)/P8" format="0.00"/>
<conversion units="2*g/rev" expr="(P12*60)/P8*2" format="0.00"/>
<conversion units="g/cyl" expr="(P12*60)/P8/2" format="0.00"/>
</conversions>
</parameter>
-->
I would just delete them, personally...its less confusion.
Alright, now remember we have 3 copies of the file - 1 named logger.xml (the one that RomRaider will read), 1 named loglite.xml (with our commented XML tags that we use for less clutter), and 1 named logfull.xml (an exact copy of the logger.xml file you downloaded).
Now we make two scripts that copy the two different XML files to logger.xml. This assumes that the three xml files, as well as the file you are about to create, all reside in the same directory. These directions are for windows...I assume linux users would know to substitute suitable commands, and mac users can't launch bash scripts from their GUI unless they do so from a shell. Open your text editor, and create a file in the same directory called loglite.bat. Now here is the line for the batch file:
Code:
copy loglite.xml logger.xml /Y
now create a second file called 'logfull.bat' in the same directory, containing the following line:
Code:
copy logfull.xml logger.xml /Y
If you like, drag and drop those as shortcuts to your desktop. Now when you launch the RomRaider logger, you will can launch either of those batch files before hand and have a simplified, dumbed down version of the logger with most commonly used parameters, or the full blown kitchen sink version as it comes out of the box.
Now if you are using a new test version of RomRaider that has plugins for the logger, and you don't want plugins to appear that you don't use (i.e. I don't have AEM UEGO or UTEC), just delete them from the plugins directory and they won't show up - all I have in my plugins directory is the LC-1 plugin.
Now with my edited XML file and removal of unneeded plugins, RomRaider logger fits my most commonly requested parameters neatly (and barely) into an 800x480 window, as seen below:
