I think the issue is related to triggering. The tasks are setup to use the same clock, but not syncronized to start at the same time. A start trigger should fix the 6-7 ms delay. Figure 7 of this link shows implementation of a digital edge trigger:
↧