Syncing digital input and analogue input

You need to post your program so we can see how you are doing things. I don't think there should be any problem interleaving the two activities.

...R
Several Things at a Time