09-22-2023 11:00 AM
Hello, my LabVIEW program is freezing when running DAC output from a DT9834 device. The PC I am using is running with a Xeon E5-1620, 32gb of DDR3 1866 RAM, Quadro A2200.
When I execute this program with a sample rate of 20000 and a timing in the output loop of 100ms, it runs fine. If I push that sample rate to 25 or 30k+, or change the timing in the loop to increase the output rate, it freezes the program and the output also glitches. The device is capable of 500k samples a second, so it shouldn't have an issue at even 100k. I can provide any other information needed, below is my program:
Solved! Go to Solution.
09-22-2023 11:33 AM - edited 09-22-2023 11:47 AM
You probably should attach your program (*.vi). All I see is a picture.
Make sure that all controls have reasonable defaults and make sure all terminals have labels. Also include a typical data file.
I don't understand what the loop timing has to do with the sample rate. What's the size of the 2D array?
09-22-2023 12:17 PM
Attached is the VI and a typical data file. The array has 8000 total points. Thank you for the help.
09-23-2023 04:09 AM
Hi tareyes,
@tareyes wrote:
When I execute this program with a sample rate of 20000 and a timing in the output loop of 100ms, it runs fine.
Unfortunately you forgot to downconvert your VI so more people actually have the chance to open it.
(I guess you already have heard many of us still prefer LV2021 or even LV2019…)
On your image:
09-23-2023 09:49 AM
DAQmx Read/Write loops should be written to "time themselves". Get rid of the "Wait until next ms multiple" function inside the DAQmx Write loop -- when you do the Write, the function will finish (and let the loop finish, allowing the next loop to start) as soon as it is able to accept the next array of data to continue without interruption. "Artificially slowing the loop down" by putting an unnecessary additional "Wait" function will only invite trouble.
Bob Schor