Author Topic: Resolution of injector pulsewitdth in data logs from Megatune  (Read 9667 times)

Offline dnb

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
  • BHP: 19
Resolution of injector pulsewitdth in data logs from Megatune
« on: November 29, 2007, 12:07:29 pm »
The logging of injector pulsewidth (PW) seems to be in milliseconds in MT.  This is fine, but it's only got one decimal place of precision, which leads to huge quantisation errors for something I'm working on.

I know that internally, VEMS works in microseconds so is there an easy way to get more accurate datalogs?

If not, I'll willingly listen to the difficult way!

Offline GintsK

  • Hero Member
  • *****
  • Posts: 1257
  • BHP: 50
Re: Resolution of injector pulsewitdth in data logs from Megatune
« Reply #1 on: November 29, 2007, 12:20:22 pm »
May be try replace this entry in vems3.ini
 entry = pulseWidth,     "PW",          float,  "%.1f"


with this:
entry = pulseWidth,      "PW",          float,  "%.3f"

Please report is it works!

Gints

Offline dnb

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 837
  • BHP: 19
Re: Resolution of injector pulsewitdth in data logs from Megatune
« Reply #2 on: November 29, 2007, 01:14:30 pm »
So that should give me 3 decimal places if everything works - assuming it's the same convention as C...

Certainly will report back!

Offline GintsK

  • Hero Member
  • *****
  • Posts: 1257
  • BHP: 50
Re: Resolution of injector pulsewitdth in data logs from Megatune
« Reply #3 on: November 29, 2007, 03:53:05 pm »
So that should give me 3 decimal places if everything works - assuming it's the same convention as C...

Certainly will report back!
No it do not work. I just try it. This gives values like 3.600 and 3.700 in logs :(
I am interested too. I use MLV and little hacked vems3.ini. VE analyser works for me. Not so good as for Megasquirts, but I can use this feature with some precaution.

Offline hilly

  • Jr. Member
  • **
  • Posts: 53
  • BHP: 6
Re: Resolution of injector pulsewitdth in data logs from Megatune
« Reply #4 on: November 29, 2007, 04:12:46 pm »
The number sent down the RS232 port from VEMS for pulse width is only an 8 bit number (0x00 - 0xff or 0 - 255).
MegaTune divides this number by 10 for display giving a min 00.0ms to max of 25.5ms.

Increasing the display resolution will not make any difference, this is why it threw 3.700 at the screen.

Hilly