The CompactRIO Waveform Reference Library contains host VIs, FPGA templates, and example projects for performing waveform data acquisition on NI RIO hardware. The configuration and acquisition VIs incorporate optimizations and best practices for the RIO platform, and you can easily modify the examples to jump-start your application development.
Code and Documentation: http://www.ni.com/example/31206/en/
Discussion Forum: http://forums.ni.com/ni/board/message?board.id=Components&thread.id=235