Hi Dave,
First of all, thanks so much for helping me for my program and I think it is now doing what I want. But now I realized my program has a problem from your question about the "start/stop monitoring" switch.
About this switch "start/stop monitoring", my original idea was to use this switch as a start and stop button of my program. When I turn it on, it is supposed to start the outside loop A (which will activate the main program) and then continue to run loop B to record data. The modified program from you is currently doing that. Thanks a lot!! 🙂
When this switch is turned off, not only it should stop the inner loop B, I would also like the main program to be turn off as well. In other words, when the "start/stop" switch is turn off, I would like loop A to be continue running but not to start the main program and not to run loop B. Do you think this is possible? Or I should modify the logic of my VI completely. Or can you suggest a better way of running what I want to do? Many thanks in advance.
tak