Hi Coreyrkoch,
I've attached a quick example that shows how to acquire from multiple channels and write the data to a file. This example was created using one of our examples:
Cont Acq & Graph - Int Clk.VI
A Write to Measurement File.VI was added inside the loop, this will append the new data to the bottom of the existing data.
The timestamp comes from the following:
1. System clock is read when the acquisition is initiated (DAQmx Start Task), this is t0
2. dt is 1/sampling rate
The waveform data type consists of:
1. t0
2. dt
3. Y
Additionally, the loop rate will not affect the sampling rate for the following reason:
When performing a buffered acquisition, the DAQmx Read VI (the part inside the loop) simply moves data from the DAQ board and into LabVIEW memory. The DAQ board begins sampling when the DAQmx Start Task is issued; this means a buffer overrun will occur if you don't remove enough samples from the DAQ often enough.
Please post back if you have additional questions after looking at the example!
Have a great week.
Best regards,
MatthewW
Applications Engineer
National Instruments