Account the number of time that something happen
Posted: Wed Feb 11, 2009 1:44 am
Hi, I dont speak english, but I wait that you can understand me. I seek a expression that it account the frequency, the number of times, that something happen, for example, the number of times that the car is in second gear, etc.
I can do this, but I need five expressions by each parameter that I want know the number of times
Example that I do:
A: 'Gear' == 2
B: time_shift('A',0.001) [Rate:1000Hz]
C: max('A' - 'B',0)
D: integrate('C') [Rate:1000Hz]
Nº of time in 2º gear: (stat_max('D') - stat_min('D')) * 1000 [Rate:1000Hz]
I seek something more simple, this way consume many resources of the PC.
Can you help me?
Thanks.
I can do this, but I need five expressions by each parameter that I want know the number of times
Example that I do:
A: 'Gear' == 2
B: time_shift('A',0.001) [Rate:1000Hz]
C: max('A' - 'B',0)
D: integrate('C') [Rate:1000Hz]
Nº of time in 2º gear: (stat_max('D') - stat_min('D')) * 1000 [Rate:1000Hz]
I seek something more simple, this way consume many resources of the PC.
Can you help me?
Thanks.