About 10 minutes
Hours
As long as possible
ok, sorry for disapeering, I had a busy weekend
I think I know enough now to know what to ask.
here's what I believe I understand
The first Thing I would do is create a com object.
then using the com object I would call comObject.Execute("SETVAR;VAG_TEXT1; Sample text");
(or something similar...I have not been able to play with this). This would change the text on VAG_TEXT1 to "Sample text". The label would have to be defined as "=$VAG_TEXT1$".
Now, I think you were right when you guessed where I was going to have trouble. I am not sure how to create the com object. When you first asked if I knew how I was thinking of the windows messaging API. Would you be willing to help me out with creating the com object?
Thank you again for your help!
Bigger question is if you would use it?![]()
Dude, this title is so misleading. Thanks for ruining my day.
Please let me know when you guys embed an ACTUAL vag-o-scope into your carputers. And post pics.
Thanks.
Sorry that it was not developed the instant I worked on it :0
I have the application finished to grab the information.
I have attached an image of the interface that will be in RR.
This will hopefully be done by the end of the week. Feel free to check back if you want.
![]()
Yeah, thanks for the pic, but not really the vag scope I had in mind.
This looks like engine stats. I wanted to see the vag scope for something ending in an "-ina"
Sorry, your project looks great. Just messing around.
That costs extra![]()
guino: I was able to figure out how to create the object. I suspect I am going to have trouble with looping, but I want to play with it a bit before I bother you. Basically I am not sure how I am going to have it continuously loop until the back button is pushed on the skin, I'll play with this before I ask you to look into it![]()
Great work!! This is exactly the application I have been looking for / planning to implement. The one thing that I am mostly interested in is the MPG, is it instantaneous or is it an average? I could help you do the logging if you want...
As I live in Finland I would like to get the values in metric units, could you specify in your code more exactly where the conversions is done so that I can comment it out in my version.
Have you tested with older versions of VAG-COM?
Once again, great work!!
Thanks tom. The converstions are actually left in code and commented since I figured people would want the metric version at some point. I will be including all the code when i release it so all you will have to do is change the name from <variable>Conv to <variable> and you will get the metrics. To have proper units show on the RR screen you will need to edit the .png that I will include (so you have all the layers) to contain the correct text.
The MPG is a variable average that you can set easily in code. What I do is I keep a counter from 0 to 100 and then each check cycle (the delay is easily changed by changing the Thread.sleep() call...I currently have it set to 250 ms) the counter increments. When the MPG is checked the counter takes counter % numMPG. If this is 0 then it enters that loop, updates the MPG field with the new MPG / numMPG. otherwise it simply updates a MPG stored value so that you get the average over that period of time. Right now I have it updating every second. I do it this way because the MPG is wildly variable and If you updated it every 1/4 second it would be nearly useless. I'll probably make the update longer before I am done. If you wanted you could easily run this .exe in the background the entire time and stick the mpg on most any window, I would do that but right now I'm just wanting to get it to work
I have it working in RR now (I think, have not had time to test it in my car yet)...I'm just trying to get RR to run the .exe. I will be posting about that next.
Bookmarks