Recording pattern from Ableton > DT

Hi,

I’ve managed to record notes from Ableton into the DT, but I can’t sync the beginning properly, so that my loop begins in the wrong place.

How should I set up the DT so that it waits for Ableton to launch, and start recording when it receives data?

Thanks
Vim