What I am assuming is the problem is that both loops are fighting each other. I assume that you are probably sampling faster than you need too. Try and place a wait in each of the loops and let one run faster than the other one. I am once again assuming that this is the problem. Hope this helps.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor