Consult Logger - no play :-(

Discuss software bugs and related problems here.

Moderator: Matt

Post Reply
JCD
 

Posts: 57
Joined: Thu May 03, 2007 7:50 am

Consult Logger - no play :-(

Post by JCD »

Matt,

I’ve been driving around today to gather some data about my setup.
Engine is CA18DET, O2 is Innovate LM1, address file is S13_CA18_256_E.adr.

I used “Display Air/Fuel ratio Traceâ€
Attachments
NIStune_2007-11-18_1422_42.csv
(415.47 KiB) Downloaded 236 times
JCD
 

Posts: 57
Joined: Thu May 03, 2007 7:50 am

Post by JCD »

Matt,
Meanwhile I had a look at those screendumps and there seems to be something wrong there too :?
I don't know if this is linked to the Player problem, first 4 screendumps were taken before the Log session started.
I’m not shure but I guess that I started the Log between the 4th and 5th screendump, or just after the 5th.
First three dumps are from one and the same “AFR 3D Traceâ€
Attachments
1.JPG
(94.82 KiB) Downloaded 4177 times
2.JPG
(95.51 KiB) Downloaded 4177 times
3.JPG
(96.83 KiB) Downloaded 4177 times
JCD
 

Posts: 57
Joined: Thu May 03, 2007 7:50 am

Post by JCD »

last two
Attachments
4.JPG
(74.03 KiB) Downloaded 4176 times
5.JPG
(76.31 KiB) Downloaded 4176 times
Matt
Site Admin
 

Posts: 8993
Joined: Sun Jan 29, 2006 1:45 am
Location: Adelaide, Australia
Contact:

Post by Matt »

Hi Jean

In regards to your log file, the heading title in the log file saved by NIStune is incorrect.

I had an open problem report on this but could not find any problem with TechEdge... so assumed it was okay. So it must only occur with the Innovate wideband code

It appears that NIStune is saving the display names to the file rather than the field names. That should be a simple fix so I'll get that done quickly...

To fix the current file you posted, open in Excel or notepad and edit the top line
LM1_O2,LM1_1,LM1_2,LM1_3,LM1_4,LM1_5
to
AFR,Aux1,Aux2,Aux3,Aux4,Aux5
This will get your log file recognised again and you should be able to play it back when offline.
Is there another way for saving those results
The AFR playback screen can be obtained from the logger file by doing a fast playback using the >>> button

The AFR playback contains a history of upto 32000 entries for each cell for AFR, Aux1-6 values but there is no save feature on this a such. Hopefully the fast playback is sufficient to get your results back.

Looking at that log trace, it appears that 'current' is actually showing 'average'

If you look at the Curr/Aver fields at the bottom they are always the same. Problem is from the screenshots is the wideband window is minised so I cant see the real AFR reading.

Doesn't matter... I'll have a look through the code and see what is causing that too
ByReaL
 

Posts: 127
Joined: Fri Mar 23, 2007 11:46 pm
Location: Romania / SUA
Contact:

Post by ByReaL »

JCD wrote: D4: some 32.00 in Load column 10 – strange at least

regarding this problem, do the flowing test
logging unit connected to TPS and AFR and whatever senzors you want
Nistune board present .

start recording and afther that give a full throtle to the car or play a little with the gas pedal.

stop the recording

load the log file

select the TPS from Nistune board, and the TPS logged with the logging unit, and look at the2 graphs,
I have Type 1 board and Tech edge, and they are shifted a bit,


so AFR is from logging unit, and load and rpm are from nistune boards but since the 2 data chanels are not synchronized, you can experience such stuff. (i belive this is the cause for the probleb)

in my opinion a time shifting between the 2 data channels (nistune board / logging unit) must be introduced, in order to make it more accurate.

look at red and blue line, both lines are for TPS

so the AFR you are seeing in a cell (rpm x load) is not the AFR from that cell because AFR os taken from the logging unit, rpm and load are taken from nistune board and ..data is not synchronized...
Attachments
tpsp.jpg
(66.18 KiB) Downloaded 4157 times
Last edited by ByReaL on Mon Nov 19, 2007 6:15 pm, edited 1 time in total.
* Got CA18DET Love
Matt
Site Admin
 

Posts: 8993
Joined: Sun Jan 29, 2006 1:45 am
Location: Adelaide, Australia
Contact:

Post by Matt »

The latency issue was addressed in the latest version. However from the log you show above, there is still some latency there. So I must get the latency of techedge data to a minimum


I didn't try it out with the USB consult vs TechEdge so I will give that a run very soon
in my opinion a time shifting between the 2 data channels (nistune board / logging unit) must be introduced, in order to make it more accurate.
This isn't possible I'm afraid... the reason why is that there is two sources of data which are retrieving data from sensors, translating it to display values and then putting it into a data pool

If I delay the USB consult data going into the datapool then this will affect responsiveness of other things. The data pool is what gets logged and displayed on guages, windows, log player, maptracing, AFR logging etc

The data logger simply sits there and reads data every x amount of milliseconds and records to log file


I reduced the latency of the TechEdge wideband so that the timing between the consult data and wideband data was very close

Using the same test as you, putting TPS/AFM inputs into the wideband unit and measuring this

However the above change has caused a problem on slower machines with TechEdge which I need to investigate and released the 0.91122a test release on Friday

The innovate unit is different. It is event based, so we receive data as soon as the Innovate MTS library gives it us and put it into the pool straight away. There should be no delays introduced by NIStune software in this regard
ByReaL
 

Posts: 127
Joined: Fri Mar 23, 2007 11:46 pm
Location: Romania / SUA
Contact:

Post by ByReaL »

the only correct solving of this problem is to make 2 data channels, pools,

something like an oscilloscope with channel A and channel B, you see the 2 waves on same screen but you have controls for each channel.

this will be generally valid, each input (nistune type 1 or 2 or 3 board, techedge, LM 1, .....) will be considered as a different data stream, and with a time shifting options between the data channels, the user will be able to sync the data very precise


PS: that log file is old, i'll make a new one to see if the problem was fixed
* Got CA18DET Love
Matt
Site Admin
 

Posts: 8993
Joined: Sun Jan 29, 2006 1:45 am
Location: Adelaide, Australia
Contact:

Post by Matt »

Best solution is to get both of the data streams at the same latency.

Even if I split the datapools, those both contain realtime data. Only when you get to logging could you then potentially try and put latency in... but how do you do this when the data is logged together realtime also? And in addition to that what are you going to record at start / finish. Its too messy to do it this way and a bit of a hack

With an oscilloscope, there are two separate channels, each with veritcal position etc.... but only one horizontal position. My Techtronix realtime scope has this. You can adjust the h position, h trigger point etc... but all data is captured and recorded in realtime.

Imagine three threads running, two threads reading a stream in and passing to a stream out. Data is valid only in time instances. If one stream has a latency reading actual data when it was received compared to the other stream, then this will affect the output. Make the latencies between all inputs the same by reducing to the minimum then data will show at same rate assuming data fed in has minimal latency

TechEdge has been improved, latency is now shorter than USB consult latency. Might have to speed USB consult wait time up a little. Its very close now compared to that older log
Attachments
wideband_vs_consult_comparison.JPG
TechEdge Wideband vs USB Consult. Latency comparison
(161.6 KiB) Downloaded 4140 times
Matt
Site Admin
 

Posts: 8993
Joined: Sun Jan 29, 2006 1:45 am
Location: Adelaide, Australia
Contact:

Post by Matt »

changed USB consult to 30ms polling also... almost spot on now with wideband
Attachments
usb_consult_updated_vs_techedge.jpg
Updated USB consult
(123.08 KiB) Downloaded 4138 times
Matt
Site Admin
 

Posts: 8993
Joined: Sun Jan 29, 2006 1:45 am
Location: Adelaide, Australia
Contact:

Post by Matt »

Innovate code updated to record the correct heading entries now

The 32.00 would probably show up when the innovate has input just air (highest lean reading reached)

I've updated the code to now perform the averaging properly and display the count correctly

Reset button will reset the count and all values on the grid (and in history)

Also the AFR trace dropdown updated to display the external entries
JCD
 

Posts: 57
Joined: Thu May 03, 2007 7:50 am

Post by JCD »

It appears that NIStune is saving the display names to the file rather than the field names. That should be a simple fix so I'll get that done quickly...
To fix the current file you posted, open in Excel or notepad and edit the top line
That did the trick for my existing file!

If I understand this well, all other issues are fixed in NIStune 0.91223 8)
Thanks for the good service. I’ll let you know how the new release behaves here; unfortunately this will not be until next weekend... :roll:
Also ByReal, thanks for your input :)
Matt
Site Admin
 

Posts: 8993
Joined: Sun Jan 29, 2006 1:45 am
Location: Adelaide, Australia
Contact:

Post by Matt »

thats fine. keep me posted. I've got plenty to keep me busy in the meantime :shock:
Post Reply