I am working with the NI DAQ USB 6259.
My purpose is to acquire data from an analog voltage input. My problem is showed in the attached image and consists in a RANDOM time delay between the execution of two consecutive while loop that contains the acquisition and the writing operations.
If you observe the image attached, you can notice that samples are taken at regular interval (which I can specify) only within one loop, then between the instant of the last sample of one cycle and the one of the first sample of the next cycle, a random delay occurrs.
I attach also my block diagram which is very simple.
I am forced to use the option "N samples" in the daq assistant because if I use continuous acquisition an error is returned, I guess because my acquisition can last minutes.
It's like I were blind for a random duration between consecutive iterations of the while!
Do you know an alternative solution to avoid this problem or its solution?
Best regard,
Roberto Rodio