10-24-2006 08:03 PM
10-24-2006 09:26 PM
10-25-2006 01:33 AM
@ofro wrote:
I have three different instruments from which I am sampling, each at a different sampling rate. Each instrument is being sampled in its own While loop. How do I write all the samples I collect to a single text file? I would like something in the following format:
[Timestamp] [Instrument 1's First Sample] [Instrument 2's First Sample] [Instrument 3's First Sample]
[Timestamp] [Instrument 1's Second Sample] [Instrument 2's Second Sample] [Instrument 3's Second Sample]
...and so on..
This seems like a flawed project. 😉
If each loop samples at a different rate, the samples will arrive at different times. Typically there won't be a single timestamp for all three samples. Can you explain what you actually want to write to the file from each loop?
Do you want to write to the file incrementally inside each loop, or do you want to write everything at once after all loops have finished?
11-01-2006 01:52 AM