Hello Shen,
The other example that Spencer referenced (ai_acq.prj example) will be a synchronous analog input example that will allow you to acquire at a higher rate with hardware timing. It uses the ScanOp function which is a synchronous function.
I hope this helps.
Regards,
Todd D.
NI Applications Engineer