Hi Rosencrantz,
Probably the simplest way to acquire data and log it to file is to use the DAQ Assistant (an express VI located on the DAQmx functions palette). The DAQ Assistant will help you configure your input task and will return dynamic data (as opposed to waveform data). This dynamic data output can then be wired into a Write LV Measurement File VI which writes timestamp and data information to a spreadsheet file. These two VIs will acquire and log data and you can just put them in a while loop if you would like to do this continually.
I hope this is helpful! Please post if you have any further questions.
Happy coding,
Megan B.
Applications Engineer
National Instruments