Actually, it will be ideal to post this thread in the Multifunction DAQ board. Plus, there is an example called "Multi-Function-Synch AI-Read Dig Chan.vi" at the NI Example Finder under Hardware Input and Output»DAQmx»Synchronization»Multi Function that does exactly what you are looking for. A piece of advice, the shipping examples are built using DAQmx low level APIs so it would be a good Idea to check there first, plus. I would recommend not to use the timed loop unless you are running your application in a real time OS. Good luck!
Alejandro | Academic Program Engineer | National Instruments