When I use the Level Crossing function to search for a value that does not fall exactly on a data point, I always get the data point BEFORE the level returned as the result.
For example: I use the Signal function in the Analysis folder of the Examples database. The signal is a y=x line. I use the following function in the formula:
LevelCrossings(Signal, 5.000, 0.001, EVENT_POSITIVE, EVENT_INDEX)
The Signal data set has two data points that fall on either side of 5.00 volts:
Signal = 4.994995
Signal = 5.005005
I would expect the result of the LevelCrossings function above to be 500 since that is the index of the first data point in the signal that has crossed the specified 5.000 level. In FlexPro, the result of the function is 499. Why is that the correct result?