Cumulative total from log file

Discussion and support for i2 Standard and i2 Pro applications

Cumulative total from log file

Postby jwickman on Wed Jun 14, 2023 9:01 am

Hi all,

is there a way to create a maths channel that adds the cumulative total of a channel i.e. fuel used across multiple start / stops of the firmware in a single log.

Cheers John
jwickman
 
Posts: 16
Joined: Mon Dec 16, 2019 12:28 pm
Location: Tauranga, New Zealand

Re: Cumulative total from log file

Postby MalcolmG on Tue Jun 20, 2023 1:11 pm

If you're using i2 Pro, you can take the derivative of the channel, then integrate the derivative except any time that the derivative is negative. Make sure you set the calculation rates to the same frequency and it should give you what you're looking for.

E.g:
accumulator.png
accumulator.png (24.68 KiB) Viewed 3368 times

accumulator result.png
accumulator result.png (17.31 KiB) Viewed 3368 times
MalcolmG
Pro User
 
Posts: 76
Joined: Fri Dec 18, 2015 1:34 pm
Location: Auckland, NZ

Re: Cumulative total from log file

Postby jwickman on Thu Jul 06, 2023 12:37 pm

Hi Malcolm,

Unfortunately im not using the Pro version. Im guessing i need the advanced maths functions to be able to do this.
jwickman
 
Posts: 16
Joined: Mon Dec 16, 2019 12:28 pm
Location: Tauranga, New Zealand


Return to i2 Data Analysis Software

Who is online

Users browsing this forum: No registered users and 2 guests