problem with loops and voids and saving outputs in a SD card

beacause i want 2 loops functions but i dont know if this is possible, i need tow diferent delays.