Ah well, if you got it working there's no need to fix it! Well done.
Why does it work? DAQmx automatically determines the buffer size.
Perhaps below 1024 (1K) samples it just assigns what you've asked for, then above that it reserves larger chunks.
I guess you found the point where it changes over.
Troy - CLD
"If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument