Your logic for the booleans looks much better. Though the start of your acquisition relative to your digital pulses is unknown, as this is all timed in software. Once you switch to an M-series it will be very easy for both of these tasks to share a trigger. You won't be able to run them on the 6008, but you can look at the examples under DAQmx>>Synchronization>>Multi-function.
-Marshall R