digital output (count down) while analog data is in acquisition

Have you looked a the the blink without delay example?