Your best bet is to use LabVIEW or CVI to do this. There are examples within the relevant application and on the NI Website for writing data to a spreadsheet.
Just to add one other option; you can also use Active-X steps to access Excel and call macos that you create to put data into the spreadsheet. We've done this for some of our test programs, but it requires a fair bit of knowledge in Visual Basic.