Hi snh,
The problem here could be with your queues... You might want to try instead of using queues for this application just use a local variable for your stop button if you want to stop loops all at the same time. You can also get rid of the multiple while loops and do everything in the main while loop without queues. You would just have to build an array with the data out of the counter read, put it into a shift register, wire the beginning of the shift register back into the build array, and then take the rightmost shift register out into a Write to Measurement File. This will compile all of your data into an array and save it all when you are done. You could also put an indicator within the while loop to look at your data while it is running.
Does this help?
Brian H. -- Electronics & Measurements Product Marketing Manager