01-12-2015 11:18 PM
As long as you're using the wait until multiple, you're working with software timing. In that event, a limitation of 100Hz isn't unexpected.
Your spec sheet says you have 2 counters. You'll want to move away from the wait until multiple and find out how to use those counters to time your tasks. Without that, you'll never reach the 200kS/s.
If you believe it's "unavoidable," you might as well stop trying to reach that level now. It's not going to happen. If you want to get higher rates, stop placing that limitation on yourself and find a way to use the counters to get hardware timing.
01-12-2015 11:31 PM - edited 01-12-2015 11:32 PM
Dennis and Natasftw: Thanks for your responses. BTW, Is what you indicated also true for other timing functions such as "Time Delay"? What is the best appraoch to reach the accurate and correct time step as well as high enough sampling rarte by using sample clock or any other timing function?
The revised version of the original vi file has been attached. Any comment is much appreciated.
01-12-2015 11:42 PM
01-12-2015 11:54 PM - edited 01-12-2015 11:55 PM
Dennis: A bunch of thanks for your quick reply. Unfortunately, no idea how to deploy the device's internal clock to control timing! You may examine the code attached to the previous post at your convenience.
01-13-2015 12:17 AM
01-13-2015 12:38 AM
Dennis: Thanks a lot. The snapshot of the block diagram is attached.
01-13-2015 12:58 AM
01-13-2015 01:07 AM
Thanks,
In fact, I tried to do so but it did not work, proabably because of the same issue you mentioned. To make sure to get the point , your advice is repetitive writing of the acquired data to the file by using while loop and discontinuous sampling mode, isn't it?
01-13-2015 06:57 AM
@Farzam wrote:
Thanks,
In fact, I tried to do so but it did not work, proabably because of the same issue you mentioned. To make sure to get the point , your advice is repetitive writing of the acquired data to the file by using while loop and discontinuous sampling mode, isn't it?
Nope. Use another loop for logging your data. Take a look at the Producer/Consumer.