I would rethink your stategy.
Start with a state maschine architekture
turn on one LED (blinking), let the lockin circuit do his work while capture AI for this LED
turn on other LED ...
start with software timing
see how your system works ... Lockin settle time? , improve timing
then start with sync DO and AI to get faster. (you can use the PFI as a start trigger for your AI)
YOu want to do two seperate measurements, so treat them as two different signals.
Greetings from Germany
Henrik
LV since v3.1
“ground” is a convenient fantasy
'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'