Title: Gauges for ME7Logger Post by: j2mc on September 05, 2012, 03:37:27 PM I showed a preview of this a while ago, but things came up and my car needed some work before I started tuning again...anyway my car is back in shape and I have a little time to tune again so I decided to work on these gauges again.
This is a separate program from my GUI for ME7Logger, and it can run with or without the GUI. How to Use: 1. Put the executable in the root of your ME7Logger directory. 2. Start logging with ME7Logger(or with the ME7LoggerGUI). 3. Open ME7Logger_Gauges 4. Choose your current log file 5. If new variables are detected, it will ask you set minimum and maximum values for each, if you don't want a gauge for a certain variable leave the minimum blank. These settings are stored in a file called "gaugeconfig", if you need to change a gauge you have already setup you can edit that file or delete it and start over. Optional TIP - For your first time choose a previous log(that uses the same config file) to get your variables setup before you actually start logging. How it works: It reads the last line of your log file and updates the gauges with that information, I've tried several methods of doing this and I believe I found the best one. Whether your log file is a couple K or 15MB+ it seems to always do about 30 samples per second(on my laptop), other options I've tried were able to do 1000+ samples/sec on small files but got down to 3/sec once the file got over 10MB. Keep in mind this is a first release, so it's not very polished and may have some problems...let me know if you find something and I'll try and fix it. DISCLAIMER: This was designed to be used while on a dyno or by a passenger, it is your responsibility to use this application safely. Title: Re: Gauges for ME7Logger Post by: Boost401 on September 05, 2012, 03:46:10 PM This is great stuff.....thanks .. anyway to make the gauges look like real gauges?
Title: Re: Gauges for ME7Logger Post by: j2mc on September 05, 2012, 03:48:59 PM This is great stuff.....thanks .. anyway to make the gauges look like real gauges? That's the plan eventually, this first release was just to get it to work(and make sure it works for everyone). Although this will probably be replaced by the nefmoto logger once he does graphs or gauges, so maybe not. Title: Re: Gauges for ME7Logger Post by: professor on September 05, 2012, 04:00:28 PM Good good i ll test it asap and report :)
Title: Re: Gauges for ME7Logger Post by: nyet on September 05, 2012, 05:43:14 PM This could be done much better with a named pipe or a domain socket
wish we had the source to ME7L Title: Re: Gauges for ME7Logger Post by: j2mc on September 05, 2012, 07:47:04 PM I attempted several different ways trying to get the output directly from ME7logger, but I kept having problems left and right. I know this is not the most efficient way to do it, but in my limited time to work on it this was the best and most stable option.
And it actually is fairly efficient as I don't load the file in memory, I just start reading the file from the end byte by byte until I get to an EOL marker, then read out from there(which is the last line). My initial tests showed this running at over 1000 per second, but when I added in parsing the data and updating the gui it slowed down to it's current speed. Title: Re: Gauges for ME7Logger Post by: Boost401 on September 08, 2012, 03:48:48 AM So I gave this a shot and my gauge for boost desired wasn't moving but actual boost was any ideas?
Title: Re: Gauges for ME7Logger Post by: lulu2003 on September 08, 2012, 04:06:51 AM BTW:
if you can handle old school 3270 Terminal style and want to see as much info as possible take a look at this: http://nefariousmotorsports.com/forum/index.php?topic=2001.0title= it's getting the values exaktly the same way and was a very short "hack" and lacks gauges by desire. Title: Re: Gauges for ME7Logger Post by: j2mc on September 10, 2012, 12:30:10 PM So I gave this a shot and my gauge for boost desired wasn't moving but actual boost was any ideas? Not sure, you setup the same min and max values for both gauges correct? Are all the other gauges working? Did it log boost desired correctly? Title: Re: Gauges for ME7Logger Post by: Boost401 on September 11, 2012, 07:02:08 AM Me7 logs are good reads boost desired and boost actual.....and I have my values set the same I think it's 1000min .......2000max......is this ok?
Title: Re: Gauges for ME7Logger Post by: j2mc on September 11, 2012, 07:57:57 AM That's strange, can you send me one of your logs so I can see if I can reproduce it.
Thanks Title: Re: Gauges for ME7Logger Post by: Boost401 on September 12, 2012, 04:09:13 AM here you go thanks....i think this is the longest one i have, the other ones i deleted, they get pretty big if you drive for awhile.
Title: Re: Gauges for ME7Logger Post by: ratherb1 on October 23, 2012, 06:34:24 AM When I sit at idle my desired boost is 1007.56 mbar and my actual boost is 1008.12 is this ok?
I notice in your pics yours is around 800 what gives? could It be vacuum leak or something on my part? What is everybody elses at idle? Title: Re: Gauges for ME7Logger Post by: masterj on October 23, 2012, 06:58:28 AM When I sit at idle my desired boost is 1007.56 mbar and my actual boost is 1008.12 is this ok? I notice in your pics yours is around 800 what gives? could It be vacuum leak or something on my part? What is everybody elses at idle? Yes it is OK. Atmospheric pressure depends heavily on what height you're above sea level and around 1000mbar it is normal Title: Re: Gauges for ME7Logger Post by: j2mc on October 23, 2012, 07:01:18 PM Exactly...I'm at around 4500-5000 ft elevation which is why there is a pretty big difference.
Title: Re: Gauges for ME7Logger Post by: Jason on November 30, 2012, 07:47:44 PM I attempted several different ways trying to get the output directly from ME7logger, but I kept having problems left and right. I know this is not the most efficient way to do it, but in my limited time to work on it this was the best and most stable option. And it actually is fairly efficient as I don't load the file in memory, I just start reading the file from the end byte by byte until I get to an EOL marker, then read out from there(which is the last line). My initial tests showed this running at over 1000 per second, but when I added in parsing the data and updating the gui it slowed down to it's current speed. There's a faster/easier way to do it if you're using .NET. My C# logger wraps the ME7L as a process and combines the innovate LC1's data. I read the ME7L data from stdout line by line, which is the fastest method to get the data. In a nutshell, you create a process, redirect stdout, create an event handler for OutputDataReceived (the stdout stream), pass the command line arguments to ME7L (including the argument to dump the data to stdout), and then start the process. The event handler reads the ME7L output line by line passing the line via the DataReceivedEventArgs class (I believe it's called that) to the event handler, then it parses that output line. ME7L will also write the data to the file. Voila! edit: derp |