Unfortunately, this function only works with the new NI PXI-5421 Arbitrary Waveform Module. The hardware architecture of the NI 5401, NI 5411, and NI 5431 does not provide for a method of checking when generation has been completed.
The best way to answer the original question for a NI 5411 is to generate a marker signal on the last sample of the waveform, and use a digital module and software event determine when the waveform is done. The marker signal is a pulse 8 samples wide.
Jerry L
National Instruments