How to view loop time in data log?

General support questions and announcements for MS3. See also MS3 manuals.

Moderators: jsmcortina, muythaibxr

Post Reply
arran
Master MS/Extra'er
Posts: 617
Joined: Mon Oct 29, 2012 2:34 am
Location: Brisbane Australia
Contact:

How to view loop time in data log?

Post by arran »

Hi, as part of investigating another issue I went looking for 'main loop time' in my data logs. The parameter 'loop' is I think the correct one, but it seems to be permanently on 0.

I understand that this will provide visibility of how busy the CPU is, my install is using a number of features so it is something that I thought was worth checking out.

Doing a bit of searching I've added a 'main loop time' gauge to tuner studio (xcode dev sub menu).

Should I be seeing something meaningful in megalog viewer for parameter loop? How do I see the loop time in my data logs?
RX7 Series 2 13B Turbo. Megasquirt 3 with 3X Expander and V3 CPU. Firmware 1.4.1
Knock module, twin EGT, real time clock, WBO2, full sequential fuel and spark
http://web.aanet.com.au/arran
jsmcortina
Site Admin
Posts: 39619
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: How to view loop time in data log?

Post by jsmcortina »

'loop' is not the same as 'mainloop time'. Check the datalog fields listing in the TunerStudio Reference manual.

Mainloop time probably isn't logged by default as it is of little interest to most. You'd need to add a custom.ini with a datalogging directive for it.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
arran
Master MS/Extra'er
Posts: 617
Joined: Mon Oct 29, 2012 2:34 am
Location: Brisbane Australia
Contact:

Re: How to view loop time in data log?

Post by arran »

Thanks, I've sorted it.

Maincontroller.ini is located here C:\Users\arran\Documents\TunerStudioProjects\RX7\projectCfg

After looking through the Maincontroller.ini file I came across the "Datalog" section towards the bottom which looked promising.
I made an empty file custom.ini in that same projectcfg directory and put the below in it. I just performed a short engine off data log and "Mainloop time" was present in the MLV field dropdown. It is sitting at about 400uSecs waiting for the engine to start


;-------------------------------------------------------------------------------
;-- The entries are saved in the datalog file in the order in which they --
;-- appear in the list below. --
;-- --
;-- Channel - Case sensitive name of output channel to be logged. --
;-- Label - String written to header line of log. --
;-- Type - Data type of output, converted before writing. --
;-- Format - C-style output format of data. --



[Datalog]
; Channel Label Type Format
; -------------- ---------- ----- ------
entry = looptime, "Mainloop time", float, "%.3f"
RX7 Series 2 13B Turbo. Megasquirt 3 with 3X Expander and V3 CPU. Firmware 1.4.1
Knock module, twin EGT, real time clock, WBO2, full sequential fuel and spark
http://web.aanet.com.au/arran
arran
Master MS/Extra'er
Posts: 617
Joined: Mon Oct 29, 2012 2:34 am
Location: Brisbane Australia
Contact:

Re: How to view loop time in data log?

Post by arran »

Would anybody know how to interpret the Mainloop time value?

I'm seeing values around 900 to 1100. What does this mean?
RX7 Series 2 13B Turbo. Megasquirt 3 with 3X Expander and V3 CPU. Firmware 1.4.1
Knock module, twin EGT, real time clock, WBO2, full sequential fuel and spark
http://web.aanet.com.au/arran
slow_hemi6
Super MS/Extra'er
Posts: 4122
Joined: Fri May 07, 2004 3:33 am
Location: Australia

Re: How to view loop time in data log?

Post by slow_hemi6 »

I have read somewhere on here a post from James that said MS3 with everything on will run 15Krpm with a 60-2 wheel and have a mainloop around 2mS. Apparently that is close to flat out.
Find the Manuals up top under Quick links: Manuals. :RTFM:
Cheers Luke
arran
Master MS/Extra'er
Posts: 617
Joined: Mon Oct 29, 2012 2:34 am
Location: Brisbane Australia
Contact:

Re: How to view loop time in data log?

Post by arran »

Thanks, so if I am at 1000 uSecs that is going to be 1 mSec which is 50% utilisation
RX7 Series 2 13B Turbo. Megasquirt 3 with 3X Expander and V3 CPU. Firmware 1.4.1
Knock module, twin EGT, real time clock, WBO2, full sequential fuel and spark
http://web.aanet.com.au/arran
Post Reply