Might want to take a look at the following whitepapers; they should provide enough details so that you can resolve this issue:
Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications
http://www.ni.com/white-paper/2835/en/
Complete Data Acquisition Tutorial
http://www.ni.com/white-paper/3116/en/