LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Increase buffer size mydaq

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!

0 Kudos
Message 1 of 7
(3,940 Views)

Hey, I would try increasing the number of sample read, try 40 and see if that stops the error

0 Kudos
Message 2 of 7
(3,914 Views)

Hi! Thanks for your reply!

No this didn't work, now a new error message appeared. See attachment file.

0 Kudos
Message 3 of 7
(3,908 Views)

1) What DAQ-hardware are you using?

 

2) Try to learn DAQmx and get rid of the DAQ-Assistents.

 

Regards, Jens

Kudos are welcome...
0 Kudos
Message 4 of 7
(3,901 Views)

I am using an NI device called myDAQ.

 

Ok, I will try using daqmx.

0 Kudos
Message 5 of 7
(3,895 Views)

@kristaje wrote:

I am using an NI device called myDAQ.

 


Of course. Smiley Embarassed It's in the title of the thread...

Kudos are welcome...
0 Kudos
Message 6 of 7
(3,888 Views)

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

Kudos are welcome...
0 Kudos
Message 7 of 7
(3,878 Views)