03-12-2008, 10:15 AM
Join Date: Apr 2007
Location: VA Beach
Total Cats: 17
How do you edit an MSQ file?
How do you "edit" a MSQ file like it says in this procedure? As far as I can see it its not a TXT file.
AFR targets in "AFR" instead of "volts" for AEM_LINEAR
MSnS-E (as well as the MS2) give you the option to define AFR targets at certain kpa/rpm points. The problem with this is that if you use the AEM_LINEAR wideband, the configuration isn't set like it is with other linear widebands. Originally, if you choose the Innovate 0-5V wideband, the AFR targets table is set to accept AFR values. If you choose the AEM_LINEAR sensor, your target values can only be entered in volts like so:
Unless you don't mind memorizing or looking up the voltage values for a specific AFR, this can be a pain in the ***. To change the configuration to accept AFR values, follow these steps:
1. Open msns-extra.ini in a text edit. Notepad is available on Windows systems so you might as well you that if you don't have an advanced text edit. For me, this file was located under: C:\Program Files\MegaSquirt\MegaTune225\MegaTune2.25\mtCfg\ms ns-extra.ini
2. Scroll down to #elif AEM_LINEAR. This can be found on line 808.
3. Change the code from:
afrBins1 = array, U08, 0, [8x8], "Volts", 0.0196, 0, 0.0, 5.0, 2
afrBins1 = array, U08, 0, [8x8], "AFR", 0.038666, 255.0, 10.0, 20.0, 1
4. Now you are going to need to edit your MSQ file. Otherwise, you will get an error saying that units do not match. Search for (line 586):
<constant cols="8" name="afrBins1" rows="8" units="Volts">
and replace it with
<constant cols="8" name="afrBins1" rows="8" units="AFR">
5. If you originally had AFR target defined in voltages, they will not appear correctly in MegaTune once you re-open your MSQ for editing. You will need to re-enter in the AFR target, but this time in AFR format instead of volts.
Here is the new AFR targets table with AFR values: