I know that using a for loop can record, but when using a for loop, I cannot perform other testing steps. For example, I want to keep recording a certain signal, and when recording this signal, I can perform other testing steps. However, when the signal exceeds a certain range, I stop testing.