Xede datalogging now possible on Mac and Unix
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)
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)
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.
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)

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
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
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?
Originally Posted by donour
Ok, but I'll release a new version in a few hours.
I've made plotting a lot nicer.
d
I've made plotting a lot nicer.d
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.
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.
d
Last edited by donour; Jun 3, 2005 at 03:10 PM.
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()
print "%10.5lf" % time.time()
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
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.

d
EDIT: here's an example of the new, prettier plots.
Last edited by donour; Jun 3, 2005 at 07:01 PM.
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.
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
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.
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.
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.



