The MAX task is in "continuous" mode and the type of sample clock is set to "internal".
Yes, dataflow sequencing is used with the error lines. Also the digital task is started before the analog task is started.
I found the problem: The "number of samples" for DAQmx Read was only specified for the digital task - not for the analog task (at least not in Labview, only in MAX).
Thanks for your help Kevin.