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.
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?
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:
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.