I am tying to collect samples at the highest rate possible in order to determine the compression signal value I need.
The input task (with 4 analog inputs) is set at 1k samples at a rate of 10k (for now). I am writing the data to a text file using a case structure and write to data blocks.
{So,the program collects 1k samples at a rate of 10kS/s and then repeats (since it is in a while loop), right? So, the time between samples being written to file should be 1/10k, 10 microseconds, right? Should I bring the samples down to 2 (the minimum) so that the program is executed faster?}
However, the timestamp between the two samples give a time difference in the order of 2000 microseconds instead of 10 microseconds. Why is that? Is it the limitation of the write capablity of the module?
If I do not write it, can I expect to get better rate?