Hello,
If you go to www.ni.com/support there is a link to Example codes, where you will be able to search for various examples.
Here is a link to an example
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/3903b7680568a07c86256907004fa052?OpenDocument
also the following Knowledgebase would be very useful it is 'DAQ Register-Level Programming Resoruces' page
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/b08f4125a9325b3f862565cc0073e68f?OpenDocument
Good Luck,
Shruti T
National Instruments