09-29-2017 04:54 AM
Hi! I am running this simple loop, but I am not able to run it more than 3 minutes without getting an error saying that the application is not able to keep up with the hardware acquisition. The graph starts to slow Down after 75 seconds and stops completely after 3 minutes. The daq Assistant VI in the buttom left is configured to "continues samples" with "sample read" set to 1 and "sample rate" to 40Hz. The daq Assistant in the buttom right is configured to "continues samples" with "samples to write" to 100.
Could anyone please help me how to fix this?
Thanks in advance!
09-29-2017 06:25 AM
Hey, I would try increasing the number of sample read, try 40 and see if that stops the error
09-29-2017 06:33 AM
Hi! Thanks for your reply!
No this didn't work, now a new error message appeared. See attachment file.
09-29-2017 07:16 AM
1) What DAQ-hardware are you using?
2) Try to learn DAQmx and get rid of the DAQ-Assistents.
Regards, Jens
09-29-2017 07:49 AM
I am using an NI device called myDAQ.
Ok, I will try using daqmx.
09-29-2017 07:54 AM
@kristaje wrote:
I am using an NI device called myDAQ.
Of course. It's in the title of the thread...
09-29-2017 08:30 AM
Also you have to make sure that your both DAQ Assistants take the same amount of time. With your settings of 1 sample at 40 Hz for your analog-in daq assi the loop time has to be 0.025 s in average to not run into any buffer overflow.
The timimg for the analog-out daq assistant is unknown to us, as it depends on the settings of the simulate signal express vi.
You will probably also run into timing issues if you activate the "write to measurement file" express vi. Writing 1 value with this express vi might easily take longer than 0.025 s.
Regards, Jens