Hello:
If you had Visual C++ installed before you ran the NI-DAQ installation then it should have installed a bunch of great examples for you to use. They can be found here: C:\Program Files\National Instruments\NI-DAQ\Examples\VisualC\Ai. If you don't see them, please re-run the NI-DAQ installer and make sure to add in C++ / text-based support...
The example "DAQdoubleBuf.C" acquires data continuously using a double-buffer. We don't have any examples that write to disk but that will show you how to do all the DAQ stuff. Writing to disk will be your own task as we don't support C++, just NI-DAQ functions...
Good Luck!
Sincerely,
Brooks B
Applications Engineer
National Instruments