Hi brainstorm,
It depends if you are going for accuracy or speed or channel count etc. Many tutorials and application notes can be found at ni.com/support. I've included below a link to a useful app note. Otherwise, let me know what you are looking to optimize and I might be able to provide some insight.
Reduce Errors Into Your High-Speed Data Acquisition Applications
http://zone.ni.com/devzone/conceptd.nsf/webmain/EF3A8913AFFDBBCC86256A4900532BCF?opendocument&node=DZ52301_US
Hope that helps. Have a good day.
Ron