Notices
Tuning Reflashes, Piggybacks, Standalone ECUs

UTEC maps cell coloring

Thread Tools
 
Search this Thread
 
Old Jun 11, 2008 | 07:40 AM
  #1  
Madelinot's Avatar
Madelinot
Thread Starter
Registered User
iTrader: (1)
 
Joined: Aug 2003
Posts: 505
Likes: 0
From: Ottawa, ON, Canada
Default 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, 26 views)

Last edited by Madelinot; Jun 11, 2008 at 08:28 AM.
Reply
Old Jun 18, 2008 | 10:38 AM
  #2  
RandomHer0's Avatar
RandomHer0
Registered User
iTrader: (9)
 
Joined: May 2006
Posts: 1,732
Likes: 1
From: Ottawa
Default

Nice!
Reply
Old Jun 19, 2008 | 03:55 PM
  #3  
Madelinot's Avatar
Madelinot
Thread Starter
Registered User
iTrader: (1)
 
Joined: Aug 2003
Posts: 505
Likes: 0
From: Ottawa, ON, Canada
Default

LOL! It doesn't look like it's been very useful for others by the look of the number of posts.
Reply
Old Jun 19, 2008 | 06:39 PM
  #4  
Ahsmo's Avatar
Ahsmo
Imakecopies
Premier Member
iTrader: (13)
 
Joined: May 2004
Posts: 2,330
Likes: 0
From: Charleston, SC
Default

I am having trouble getting the damn thing to log anything, otherwise this would be cool
Reply
Old Jun 27, 2008 | 11:47 AM
  #5  
mw9's Avatar
mw9
Registered User
iTrader: (51)
 
Joined: Oct 2006
Posts: 2,405
Likes: 5
From: cincinnati
Default

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
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
sales@czp
Engine
33
Sep 23, 2019 03:30 PM
2ndchanceZ
Engine
1
Oct 26, 2015 08:03 PM
350Z Project X
Suspension
9
Oct 10, 2015 09:23 AM




All times are GMT -8. The time now is 02:52 AM.