i2 Pro - automatically measuring times

Discussion and support for i2 Standard and i2 Pro applications

i2 Pro - automatically measuring times

Postby Robin Poenisch on Thu Sep 04, 2008 10:01 pm

Hi everybody,

i'd like to have the i2 automatically doing time measurements for me.
e.g. measuring time of "Throttle Position > 90%" with a maths channel. is there a simple way to do this? i didn't find a proper function.

for now i tried it with "integrate". but integrate(1, "TPos" > 90, "TPos" < 80) doesn't work. a constant with "1" doesn't work too. so i tried integrate("TPos" / "TPos", "TPos" > 90, "TPos" < 80), this works like i wanted it. but it is not really the simplest way :) in germany we say "pfusch", i think translated would be "botch job".

i am sure MoTeC guys implemented a better way to do this in i2 Pro?!

greets
Robin
Robin Poenisch Motorsport
Engineering Services
Electronic Systems

http://www.facebook.com/Poenisch.Motorsport
http://www.poenisch-motorsport.de
Robin Poenisch
 
Posts: 53
Joined: Tue Aug 05, 2008 5:16 pm
Location: Weinstadt/Germany

Re: i2 Pro - automatically measuring times

Postby DarrenR on Fri Sep 05, 2008 2:35 pm

Hi Robin,

There possibly is a better way to do what you want, but i don't see anything wrong with what you have. If it gives the correct result then you can't ask for much more.
No you can't use a constant in this function as it needs to be passed an array of data for the it's sample rate. It would be good in this case to use '1' but 'channel / channel' gives the same result.
Darren Reynolds
MoTeC Research Centre - Melbourne, Australia.
DarrenR
MoTeC
 
Posts: 176
Joined: Thu May 01, 2008 2:15 pm
Location: Melbourne, Australia

Re: i2 Pro - automatically measuring times

Postby Robin Poenisch on Fri Sep 05, 2008 6:45 pm

Hi,

yes it works. and im glad that its possible to do such things easily with i2 Pro! I just thought there could be a function i didn't find.

thanks
Robin
Robin Poenisch Motorsport
Engineering Services
Electronic Systems

http://www.facebook.com/Poenisch.Motorsport
http://www.poenisch-motorsport.de
Robin Poenisch
 
Posts: 53
Joined: Tue Aug 05, 2008 5:16 pm
Location: Weinstadt/Germany

Re: i2 Pro - automatically measuring times

Postby Fermin on Wed Feb 11, 2009 2:02 am

This is other way:

You do this once:

A: 1
B: integrate('A') [Rate:1000Hz]
Time: 'B' - stat_min('B') [Rate:1000Hz]

And after you do this by each parameter that you want measure the time

Z: 'Throttle Pos' > 90
Time with Throttle Pos > 90%: stat_mean('Z') * 'Time'

(You need only one integrate for everyone the parameters)
Fermin
 
Posts: 6
Joined: Tue Feb 10, 2009 2:10 am


Return to i2 Data Analysis Software

Who is online

Users browsing this forum: No registered users and 8 guests