Hi,
you haven't said what actual hardware / versions of drivers etc you're using, so I'd suggest looking at the shipping DAQ examples for the environment you're in (I'm assuming Labview since you say "wait until next multiple ms".)
If you go to the help menu item, and into the example finders, you're looking under traditional, or DAQmx, depending on your driver version and what your device supports. Look for things like external (or ext), and pre / post trigger (digital).
Hope that helps
Sacha Emery
National Instruments (UK)
// it takes almost no time to rate an answer