your vi is constantly changing the index of your array, where I assume you stored the speed of the motor. If you want to decrease the speed, you should add lower values into your array, or you can also develop some logic so that the index of the array decreases instead of increase indefinitely as it is now.
RKO