Counter Function?

Discussion and support for i2 Standard and i2 Pro applications

Counter Function?

Postby paul.livanos on Thu Feb 04, 2010 12:47 pm

Hi,

Doing some brake testing. Have already setup a math channel so that when brake pedal position is greater than x%, "brake status" is '0' (off) or '1' (on).

What I would now like is a counter for brake status. Is this possible?

Thanks,
Paul
paul.livanos
 
Posts: 3
Joined: Fri Sep 11, 2009 6:39 pm

Re: Counter Function?

Postby Fermin on Sun Feb 07, 2010 7:16 am

I dont know if I understand you, but maybe I can help you.

If you seek a expression that say you the number o times that the brake pedal pos is greater than x% by each lap, for example, brake pedal pos greater than 50% by each lap, this is a way (i2 Pro V1.05.0013):

A: 'Brake Pedal Pos' [%] > 50
B: time_shift('A',0.001) [Rate:1000Hz]
C: max('A' - 'B',0)
D: integrate('C') [Rate:1000Hz]
Nº of time Brake Pedal Pos greater than 50%: (stat_max('D', 'Gear' < 100,range_change ("Outings:Laps")) - stat_min('D', 'Gear' < 100,range_change ("Outings:Laps"))) * 1000 [Rate:1000Hz]
Fermin
 
Posts: 6
Joined: Tue Feb 10, 2009 2:10 am

Re: Counter Function?

Postby paul.livanos on Mon Feb 08, 2010 12:35 pm

Yes that seems to work.

Thanks for your help.
paul.livanos
 
Posts: 3
Joined: Fri Sep 11, 2009 6:39 pm


Return to i2 Data Analysis Software

Who is online

Users browsing this forum: No registered users and 9 guests