Are we talking about the same VI? The one you posted has a sample rate of 1000/sec and you tell it to return however many samples are available.
In any case, I think I see a dataflow issue. Wire the error out of the dialog to the error in of the Start Task. That will make the Start Task occur after the dialog.