Hello all. I have an application made in Labview. In it the main loop is a while-loop that includes DAQmx read and write functions. The purpose of this program is that it polls information from a file, which is written to by another program (so there are some file I/O functions in the loop as well).
function of the loop:
every 50 ms:
read file, read 4 analog inputs. Do stuff with these new data.
every 5 ms:
manipulate and write new data to digital output port.
Now the problem is that when I run these two programs together the Labview application slows down. What I want to happen every 5 ms happens about every 70 ms. Giving Labview higher priority in task manager helps alot, but slows down the other program. Also removing the DAQmx functions from the loop helps significantly, so I think they require alot of cpu.
My question is do you have a suggestion to improve the performance of my application? I can only select "1 sample (on demand)" from the DAQ assistant as the task timing choice (USB-6008 is not supported for N samples).