Notices
Vishnu Performance - California [Visit Site]

Xede datalogging now possible on Mac and Unix

 
Thread Tools
 
Search this Thread
 
Old Jun 2, 2005 | 03:08 PM
  #46  
crusin_lancer's Avatar
Evolved Member
iTrader: (10)
 
Joined: Aug 2002
Posts: 751
Likes: 0
From: On the Roads
Originally Posted by Rushin
the timestamps on my win xp machine only had 100th of a sec precision. i changed it so it throws out the sample if the previous one had the same time. That got rid of the division by zero error.

I also had to tweak it to fix the "bad run" error.. hope this helps. Its a great program and I wanna see it working in windows! (im sure im not the only one)
Can you let me know how you did that so I can get rid of the Division zero error?
Old Jun 2, 2005 | 06:44 PM
  #47  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by Rushin
the timestamps on my win xp machine only had 100th of a sec precision.
Unlikely. You were probably only _printing_ the time value to 2 decimal places. Try something like this instead:

print "%10.5lf" % time.time()



I also had to tweak it to fix the "bad run" error.. hope this helps. Its a great program and I wanna see it working in windows! (im sure im not the only one)
Yeah, that exception is just a place holder to remind me to check for weird rpm flux at the beginning of end of a run. That code is going to get yanked out of there anyway, since I have this new piece I cooked up last night with the help of my college physics book. It _should_ provide "accurate" torque/hp numbers. I did the whole thing and metric in my head was spinning trying to match it to data I see out on the internet

Anyway, you're famailiar with python, you're more than welcome to become the windows maintainer. Just say the word and I'll give you CVS access.

d

Last edited by donour; Jun 3, 2005 at 11:10 AM. Reason: grammar
Old Jun 2, 2005 | 06:54 PM
  #48  
crusin_lancer's Avatar
Evolved Member
iTrader: (10)
 
Joined: Aug 2002
Posts: 751
Likes: 0
From: On the Roads
Thats good there is someone using windows that understands python... Python is quite a bit different then what I'm used too.
Old Jun 2, 2005 | 07:07 PM
  #49  
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
Thats good there is someone using windows that understands python... Python is quite a bit different then what I'm used too.
you'll get used to it. It really is a tremendous language to work with.

Anyway, divide by zero. When the intepreter throws that exception, it'll also give you a line number. Try to include that in your mesg to me so I know which division you're talking about.

I'll assume you're getting it somewhere around line 227 in pyxede.py where it calculcates the torque. the line looks something like this:

torque = (rpms[i] - rpms[i-1]) / (times[i] - times[i-1])


Obviously, if time[i] and time[i-1] are the same, then you're going to divide by zero. Just check and if so skip this iteration of the loop. voila!

....
if time[i] == time[i-1]:
continue
torque = (rpms[i].....

d
Old Jun 2, 2005 | 08:25 PM
  #50  
shiv@vishnu's Avatar
Evolved Member
iTrader: (20)
 
Joined: Mar 2003
Posts: 4,941
Likes: 0
From: Danville/Blackhawk, California
Originally Posted by donour
Nobody's interested. Look, look! shiny pictures:




d

WINDOWS!!!! YES!!! The whole master plan is coming together!!
Old Jun 2, 2005 | 08:37 PM
  #51  
jj_008's Avatar
Evolved Member
iTrader: (8)
 
Joined: Nov 2003
Posts: 2,064
Likes: 0
From: Salem, OR
Originally Posted by crusin_lancer
Also I tried plotting the example dyno and it tells me "the system can not find the path specified" Do I need to change the path somewhere in the source?
I got this error too.
Old Jun 3, 2005 | 06:15 AM
  #52  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by jj_008
I got this error too.
There's a menu to set the gnuplot location:

File->Settings->Plotting

d
Old Jun 3, 2005 | 11:25 AM
  #53  
crusin_lancer's Avatar
Evolved Member
iTrader: (10)
 
Joined: Aug 2002
Posts: 751
Likes: 0
From: On the Roads
Originally Posted by donour
There's a menu to set the gnuplot location:

File->Settings->Plotting

d
Nice I'm gonna go test it now...
Old Jun 3, 2005 | 11:30 AM
  #54  
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
Nice I'm gonna go test it now...
Ok, but I'll release a new version in a few hours. I've made plotting a lot nicer.

d
Old Jun 3, 2005 | 01:39 PM
  #55  
crusin_lancer's Avatar
Evolved Member
iTrader: (10)
 
Joined: Aug 2002
Posts: 751
Likes: 0
From: On the Roads
Originally Posted by donour
Ok, but I'll release a new version in a few hours. I've made plotting a lot nicer.

d
Ahh you get me all excited about how to do dyno plots and now your coming out with nicer plots. Keep em coming donour. You still heading down here to sunny NM? I'll be going to our speedway (1.65mi course) next weekend to run my baby. i'm excited to use pyxede to do some logging.
Old Jun 3, 2005 | 01:46 PM
  #56  
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
Ahh you get me all excited about how to do dyno plots and now your coming out with nicer plots. Keep em coming donour.
It'll be more than a few hours. I thought I'd be able to get away without having the dyno data collection being threaded. I can't. That means pushing a whole bunch of thread stuff into the windowing code which is a headache (one of the main reasons I HATE writing graphical interfaces :-p). After I get off work, I'll straighten things out, but then I'll have to test...

EDIT: testing...While I'm at it, note to self: Mac OSX does _not_ like it when you try to force thread context switches 1000+ times/second

You still heading down here to sunny NM? I'll be going to our speedway (1.65mi course) next weekend to run my baby. i'm excited to use pyxede to do some logging.
I'll be there on the 18th for a couple of days, and I'm moving for good at the end of july.

d

Last edited by donour; Jun 3, 2005 at 03:10 PM.
Old Jun 3, 2005 | 06:20 PM
  #57  
Rushin's Avatar
Evolving Member
iTrader: (4)
 
Joined: Sep 2004
Posts: 191
Likes: 0
From: Redondo Beach, CA
Originally Posted by donour
Unlikely. You were probably only _printing_ the time value to 2 decimal places. Try something like this instead:

print "%10.5lf" % time.time()
I'll try that out.

I'm somewhat familiar with python, so I'd definitely like to help out on the windows side. Let me know what I can do
Old Jun 3, 2005 | 06:44 PM
  #58  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
New release -- 0.6 -- numerous improvements. It's the one to use from this point forward. A short description of the release changes are on the webpage, but there's much more than I care to rant on about.

d

EDIT: here's an example of the new, prettier plots.



Last edited by donour; Jun 3, 2005 at 07:01 PM.
Old Jun 4, 2005 | 11:54 AM
  #59  
donour's Avatar
Thread Starter
Evolved Member
iTrader: (6)
 
Joined: May 2004
Posts: 2,502
Likes: 1
From: Tennessee, USA
Originally Posted by Rushin
I'll try that out.
The div0 error people were getting from samples with identical time stamps shouldn't happen anymore (version 0.6 and on). I've locked the samplerate at a max of 100hz. I didn't really like this solution, but I had to do it to avoid killing my slow *** laptop which runs OS X. The macs just don't like heavy thread context switching.

I'm somewhat familiar with python, so I'd definitely like to help out on the windows side. Let me know what I can do
Test, test, test. Especially try the dyno code. If you can, do lots and lots of 3rd gear pulls from say 2000-6500 rpm on the highway. I live in downtown chicago, I can't get above 45 anywhere nearby.

To generate standalone windows programs, all you need to do is download py2exe. There's already script to build the executable: setup.py.

I generated basic API docs and put them here: http://www.donour.com/cars/pyxede/docs. That should give a running start to anybody who wants to modify the code or take the library and use it in a different application.

d

Last edited by donour; Jun 4, 2005 at 02:49 PM.
Old Jun 5, 2005 | 01:12 PM
  #60  
freedom's Avatar
Evolved Member
iTrader: (1)
 
Joined: Jun 2003
Posts: 755
Likes: 0
I have to admit I used my old (really old) notebook running Windows 2000 for testing. That said I didn't have much luck getting this running.

I was able to get the main window to come up and the a connection to the Xede made. On the other hand "Perform road dyno", followed by clicking on start caused pyXede to freeze.

In addition if I load road dyno data a window pop ups with what appears to be correct data (e.g. dustin's data). If I click on "plot" nothing occurs. The configuration correctly points to gnuplot and gnuplot runs correctly if started on its own.

I have to run out right now, but I will look into this a bit later. Yes I know this isn't much help unless you have a Win2000 box sitting there.

Last edited by freedom; Jun 5, 2005 at 07:09 PM.



All times are GMT -7. The time now is 12:53 AM.