Thanks D.K., works much nicer! I attached the basic design, the read write functions will be in the outer loop, timing in the inner loop. One more question, if I put a stop button on each while loop, it works, but then you have one too many buttons! If wire the stop funtions to one stop switch it doesnt work anymore, so I used a local variable on the inner loop associated with the outer loop stop button. Seems to work ok,can you see any problems I might run into with this configuration? Any easier ways to accomplish the same thing? Thanks!
Doug M.