Notices
Vishnu Performance - California [Visit Site]

Xede datalogging now possible on Mac and Unix

 
Thread Tools
 
Search this Thread
 
Old Jun 5, 2005 | 03:30 PM
  #61  
freedom's Avatar
Evolved Member
iTrader: (1)
 
Joined: Jun 2003
Posts: 755
Likes: 0
For Windows 2000, the following change in "arch.py" should be present.

# TMPDIR = r"C:\WINDOWS\Temp\\" # even raw string can't end in '\'
TMPDIR = r"C:\WINNT\Temp\\" # even raw string can't end in '\'

I haven't been able to test the road dyno, only plotting.
Old Jun 5, 2005 | 05:58 PM
  #62  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by freedom
For Windows 2000, the following change in "arch.py" should be present.

# TMPDIR = r"C:\WINDOWS\Temp\\" # even raw string can't end in '\'
TMPDIR = r"C:\WINNT\Temp\\" # even raw string can't end in '\'

I haven't been able to test the road dyno, only plotting.
What version are you using? I thought i removed that comment from all the releases.

However, there is a thread problem that sort of messes things up. I just found it today. It didn't cause much trouble on linux, but locks of my mac laptop pretty good. I imagine the same thing happens on windows.

d
Old Jun 5, 2005 | 07:06 PM
  #63  
freedom's Avatar
Evolved Member
iTrader: (1)
 
Joined: Jun 2003
Posts: 755
Likes: 0
The latest 0.6.
Old Jun 5, 2005 | 07:17 PM
  #64  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by freedom
The latest 0.6.
From the website? I can't find the bug your reported (commented out TMPDIR) in the 0.6 release file.

d
Old Jun 6, 2005 | 05:42 AM
  #65  
freedom's Avatar
Evolved Member
iTrader: (1)
 
Joined: Jun 2003
Posts: 755
Likes: 0
Bug? Not really.

That was my patch to get it to run on Win2000. Sorry about the confusion. I thought you were referring to the comment at the end of the line.

I'm looking forward to testing a version that resolves the threading issue.
Old Jun 6, 2005 | 06:38 AM
  #66  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by freedom
Bug? Not really.

That was my patch to get it to run on Win2000. Sorry about the confusion. I thought you were referring to the comment at the end of the line.
Oops. I just noticed that the two lines were different, I thought you'd just uncommented something. That's easy enough to fix, I just need to figure out how to get the windows version from inside python.

EDIT: can somebody send me the value returned by sys.getwindowsversion() on windows 2000, windows 9x, and windows NT

I'm looking forward to testing a version that resolves the threading issue.
Shouldn't be long now. I did the necessary reaarrangment last night while watching family guy. About two weeks ago I made a couple of _wrong_ assumptions and now they're coming back to bite me.

1) I can collect dyno data in the same thread as the GUI. I thought I was being all smart and saving myself some time. Nope, I it was just toolish.

2) It's ok to have a seperate thread modifying the main window as long as nothing else is. Wrong again. This causes really weird bugs that only show up after doing quite a few runs back to back.

Anyhow, I think I have both of these resolved. Let me test everything then I'll update.

d

Last edited by donour; Jun 6, 2005 at 07:39 AM.
Old Jun 6, 2005 | 08:33 AM
  #67  
crusin_lancer's Avatar
Evolved Member
iTrader: (10)
 
Joined: Aug 2002
Posts: 751
Likes: 0
From: On the Roads
My dyno runs are seem a bit odd. My torque curve is perfectly flat and my HP curve is diagnol. There something wrong or am I doing something wrong? Also is it possible to have our settings saved instead of changing the com port everytime and browsing for the pgnuplot all the time. Kind of annoying. I'm still getting permission denied when trying to run logging. Not sure why this is happening.
Attached Files
File Type: zip
David's dyno.zip (5.6 KB, 1 views)
Old Jun 6, 2005 | 10:22 AM
  #68  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Talking

Originally Posted by crusin_lancer
My dyno runs are seem a bit odd. My torque curve is perfectly flat and my HP curve is diagnol. There something wrong or am I doing something wrong?


You're going to love this one. I just noticed there's one important line commented out of the 0.6 release file, the line that read RPM value. For the 0.6 release, rpm = time. Sorry about that one. Development is moving really fast and the releases quickly become outdated...


Also is it possible to have our settings saved instead of changing the com port everytime and browsing for the pgnuplot all the time. Kind of annoying.
It's possible, and not even very difficult, but I'm apt to hold off on implementing settings saving until I get time to do it the Right Way (tm). If anybody else wants to jump in and solve this, be my guest. For the time being you could just hardcode stuff into the file "arch.py"

I'm still getting permission denied when trying to run logging. Not sure why this is happening.
You are probably trying to save the log somewhere you don't have permission to write. Have you tried saving it to the desktop?

I tested a whole bunch of cleanups on the ride to work this morning (I should have taken the bike, but the weather was just too good not to enjoy those advans). Expect 0.7 shortly.



d
Old Jun 6, 2005 | 10:29 AM
  #69  
crusin_lancer's Avatar
Evolved Member
iTrader: (10)
 
Joined: Aug 2002
Posts: 751
Likes: 0
From: On the Roads
Yea I tried saving them to my desktop I am even logged in as Administrator so I have no idea why I'm getting permisison denied errors. Blah!
Old Jun 6, 2005 | 10:47 AM
  #70  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by crusin_lancer
Yea I tried saving them to my desktop I am even logged in as Administrator so I have no idea why I'm getting permisison denied errors. Blah!
Weirdness. Can you copy and paste the backtrace from the python console window? You don't even have to plug it into the car. Just load an old one (like one from freedom's previous post) and try to save it.
EDIT: oops, i was getting your mesgs confused with freedom's. Anyway. Try and send me the output from the exception handler.

Oh, and lookee here, a new version:

http://www.donour.com/cars/pyxede

d

Last edited by donour; Jun 6, 2005 at 12:58 PM.
Old Jun 6, 2005 | 04:04 PM
  #71  
crusin_lancer's Avatar
Evolved Member
iTrader: (10)
 
Joined: Aug 2002
Posts: 751
Likes: 0
From: On the Roads
Ok well with the new release I was finally able to run a dyno run. I have included my runs, is this what I should be seeing from a stock evo 8 with XEDE?

Also I am getting timestamp errors when running my dyno runs. I also got this error after datalogging (which I finally got working) then I tried closing pyXEDE and got this.

Attached Thumbnails Xede datalogging now possible on Mac and Unix-pyxede_error.jpg  
Attached Files
File Type: zip
davids_dyno2.zip (3.2 KB, 4 views)
Old Jun 6, 2005 | 04:29 PM
  #72  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by crusin_lancer
Ok well with the new release I was finally able to run a dyno run. I have included my runs, is this what I should be seeing from a stock evo 8 with XEDE?
Sort of. That curve is pretty whacky though. It's almost as if...

Also I am getting timestamp errors when running my dyno runs.
Hrm. yeah. Well this happens when the timestamps for two rpm samples are the same -- definitely a bad thing as samplerate is pretty slow. My timing isn't anything magic. I'm just calling time.time(). Two calls to that function should NEVER be the same. In lieu of sensical reasoning, I blame the python time module. I'll see if it works differently on windows than on unix.

EDIT: oh lord, if I'm reading the python docs correctly time.time() isn't guaranteed precision higher than the second level on non-unix systems. Let me replace it with something more accurate.

EDIT2: yep, on windows time.time() has only 1/60th second granularity. I have a patch that uses time.clock() on windows which is accurate to the usec. Although on unix time.time() will stil be used as it is much more accurate.

I also got this error after datalogging (which I finally got working) then I tried closing pyXEDE and got this.
Ick, unhandled exception. I'll have to dig into that one. You say you _only_ got it on program exit?

EDIT3: looking closely, i think that the engine monitor thread is still sending updates after the GUI exits, thus causing the event exception. Strange...

I'm about to feature freeze the work I've done. I'll try to get the bugs out of the program and mark a 1.0 release. For the 2.0 series I'll add the networking support you were asking about.

d

Last edited by donour; Jun 6, 2005 at 05:49 PM.
Old Jun 6, 2005 | 11:49 PM
  #73  
crusin_lancer's Avatar
Evolved Member
iTrader: (10)
 
Joined: Aug 2002
Posts: 751
Likes: 0
From: On the Roads
Originally Posted by donour
Sort of. That curve is pretty whacky though. It's almost as if...

Hrm. yeah. Well this happens when the timestamps for two rpm samples are the same -- definitely a bad thing as samplerate is pretty slow. My timing isn't anything magic. I'm just calling time.time(). Two calls to that function should NEVER be the same. In lieu of sensical reasoning, I blame the python time module. I'll see if it works differently on windows than on unix.

EDIT: oh lord, if I'm reading the python docs correctly time.time() isn't guaranteed precision higher than the second level on non-unix systems. Let me replace it with something more accurate.

EDIT2: yep, on windows time.time() has only 1/60th second granularity. I have a patch that uses time.clock() on windows which is accurate to the usec. Although on unix time.time() will stil be used as it is much more accurate.

Ick, unhandled exception. I'll have to dig into that one. You say you _only_ got it on program exit?

EDIT3: looking closely, i think that the engine monitor thread is still sending updates after the GUI exits, thus causing the event exception. Strange...

I'm about to feature freeze the work I've done. I'll try to get the bugs out of the program and mark a 1.0 release. For the 2.0 series I'll add the networking support you were asking about.

d
Only on exit, but I did run a log before exit if that helps. Why is my plot like that? Are you saying because of the timestamp? Glad to help with any bugs and the networking thing could be somewhat useful.
Old Jun 7, 2005 | 07:40 AM
  #74  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by crusin_lancer
Only on exit, but I did run a log before exit if that helps.
Good news: I'm pretty sure i know what's causing that exception and why it only happens at exit.

Bad news: i don't know a way to easily fix it in the short term.

For now, I wouldn't worry about it too much.

Why is my plot like that? Are you saying because of the timestamp?
I believe so. You'll notice that the basic shape of the curve resembles dyno plots posted all over evom. However, it's only vaguely similiar. I contented that there simply isn't enough information to see the features in any detail. The runs you sent me only have about 100 samples. All the screenshots I've posted are of a run on dustin's car which has about 1000 samples. Big difference eh?

So, why do you have so few samples. Well, pyXede throws away samples with identical timestamps because, by definition, they have no meaning. When you see "timestamp error", that's pyXede throwing away samples. You probably noticed that it threw away a LOT of samples. That's windows at work. I discovered that time.time() has a pretty low resolution on windows. I've replaced it with the much more accurate time.clock() (note: I only replaced the function used on windows. On everything else time.time() is far better).

Glad to help with any bugs and the networking thing could be somewhat useful.
I appreciate it.

EDIT: Oh, I almost forgot. I got an email from chiptorque this morning with details on a new "high speed" data logging protocol. Right now, datalogging proceeds pretty much at a single, raw, speed of 125hz. If you want two readings (ie. RPM and CAS) then you get both, but only at about ~60hz. You want ten (10) readings? that's right, a spanking 12 hz. Well this alternate method should allow datalogging much faster -- 4,5, or even 6 readings at 100hz. Joy!


d

Last edited by donour; Jun 7, 2005 at 07:44 AM.
Old Jun 7, 2005 | 08:59 AM
  #75  
crusin_lancer's Avatar
Evolved Member
iTrader: (10)
 
Joined: Aug 2002
Posts: 751
Likes: 0
From: On the Roads
You going to release a windows version and a UNIX version or will this all be changed depending on what system you choose in the settings?



All times are GMT -7. The time now is 02:37 PM.