Page 1 of 1

Counter Function?

PostPosted: Thu Feb 04, 2010 12:47 pm
by paul.livanos
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

Re: Counter Function?

PostPosted: Sun Feb 07, 2010 7:16 am
by Fermin
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]

Re: Counter Function?

PostPosted: Mon Feb 08, 2010 12:35 pm
by paul.livanos
Yes that seems to work.

Thanks for your help.