Nissan 350Z Discussion forums, Photo Gallery and more...

Go Back   MY350Z.COM Forums > Tech Area > Engine & Drivetrain > Tuning

Reply
 
Thread Tools
Old 06-11-2008, 08:40 AM   #1
Registered User
 
Madelinot's Avatar
 
Join Date: Aug 2003
Location: Ottawa, ON, Canada
Posts: 477
iTrader: (1)
UTEC maps cell coloring

Hi,

As some of you may know Jeff's software UTI-ME includes cell coloring for the timing map, but NOT for the fuel map. I'm not sure why that's the case, but since I find this feature quite useful to quickly see errors in the values and make sure the transitions are smooth, I wrote a little VB script to color the cells in Excel. Of course, you need to import the values from your TXT map file into Excel, which is easy to do. It can be used for fuel, but also for timing values if you adjust the range of Min & max values. Here it is:


Sub ColorCells()
Dim colorIndex As Integer
Dim MaxVal As Double
Dim MinVal As Double
Dim DiffVal As Double

Set myRange = Worksheets("Sheet1").Range("A1:K35")
MinVal = Int(Application.WorksheetFunction.Min(Range("B1:K35")))
MaxVal = Int(Application.WorksheetFunction.Max(Range("B1:K35")))
DiffVal = Int(MaxVal - MinVal)
Cells(37, 2).Value = MinVal
Cells(38, 2).Value = MaxVal

For Each Cell In myRange
If Cell.Value > 0 Then
colorIndex = Int(((Int(Cell.Value)) - MinVal) * 255 / DiffVal)
Cell.Interior.Color = RGB(255 - colorIndex, 255 - colorIndex, 255)
Else
Cell.Interior.Color = RGB(255, 0, 0)
End If
Next
End Sub


I attached my Excel file in case you want to use it (you need to enable macros). Please let me know if you have any questions.
Attached Files
File Type: zip cell-coloring.zip (18.1 KB, 22 views)
__________________
2004 G35 Coupe, APS Intercooled Twin Turbo, APS 2.5" TD exhaust, Labree testpipes, Crawford Plenum, CoolingMist water-methanol Injection Kit, ATS twin carbon clutch, Kuruma Z front bumper, Impul side skirts.

Last edited by Madelinot; 06-11-2008 at 09:28 AM.
Madelinot is offline   Reply With Quote
Old 06-18-2008, 11:38 AM   #2
Registered User
 
Join Date: May 2006
Location: Ottawa
Posts: 401
iTrader: (4)
Nice!
RandomHer0 is offline   Reply With Quote
Old 06-19-2008, 04:55 PM   #3
Registered User
 
Madelinot's Avatar
 
Join Date: Aug 2003
Location: Ottawa, ON, Canada
Posts: 477
iTrader: (1)
LOL! It doesn't look like it's been very useful for others by the look of the number of posts.
__________________
2004 G35 Coupe, APS Intercooled Twin Turbo, APS 2.5" TD exhaust, Labree testpipes, Crawford Plenum, CoolingMist water-methanol Injection Kit, ATS twin carbon clutch, Kuruma Z front bumper, Impul side skirts.
Madelinot is offline   Reply With Quote
Old 06-19-2008, 07:39 PM   #4
Getting Trashed
 
Ahsmo's Avatar
 
Join Date: May 2004
Location: Tyler, Texas (sometimes)
Posts: 2,216
iTrader: (6)
I am having trouble getting the damn thing to log anything, otherwise this would be cool
__________________
"We will make them give us light. Now there's no more oak oppression, For they passed a noble law, And the trees are all kept equal By hatchet, axe, and saw."

*STS Turbo kit up for grabs*TE-37 9.5x19 and 10.5x10 +22 with 295/30 and 255/35 Vredestein Sessanta tires ready to ship or pick-up*
Ahsmo is online now   Reply With Quote
Old 06-27-2008, 12:47 PM   #5
mw9
Registered User
 
mw9's Avatar
 
Join Date: Oct 2006
Location: cincinnati
Posts: 1,012
iTrader: (15)
Quote:
Originally Posted by Ahsmo
I am having trouble getting the damn thing to log anything, otherwise this would be cool

Same problem, sometimes it will log and sometimes not. I also have a problem hitting all the cells
__________________
KJR pulley, motordyne 5/16 spacer, rogue short shifter, all amsoil fluids, JWT popcharger, 350evo sways, AAM ypipe, helix tps, UTEC, Tokico HP blue, Tein S
mw9 is online now   Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -8. The time now is 07:33 PM.


Advertise on MY350Z.COM - Terms of Service - Privacy Policy - Jobs


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright ©2002 - 2008, MY350Z.COM All Rights Reserved.