07-07-2017 02:13 AM
Hi,
I want to create a timed loop which runs 60 seconds with a frequency higher than 1kHz. A classic while loop doesn't work because it runs to fast or to slow depending on the content of the loop. (Less operations in the loop: array storage is to small, more operations in the loop: Strong dependence on the windows system)
I thought about the following (see attachment):
A DAQ timing source is used to create a frequency for the loop. If I just run the loop for 5 seconds instead of 60 it works quite well indeed I'm not sure if the frequency fits. Otherwise the array is not updated despite no error is thrown.
Does anybody have an idea how to fix the issue? Or maybe a completely different solution?
LabView 2016
NI USB-6343
07-07-2017 06:49 AM
[Note -- I won't be "shocked" to find people who disagree with that last point. I've not seen this said explicitly, but it seems to work for me in a number of routines I've written].
Bob Schor