LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

slow DAQ function start a task

Hello,
We have a PXI1073 with 5 DIO cards.
We use the DAQ functions to control the DIOs.
After a few hours the function starts a task becomes abnormally slow.

 

We execute it several times in several FOR loops.
Where do you think the problem lies?

Thank you in advance

0 Kudos
Message 1 of 6
(2,534 Views)

Is the task settings changing? If NOT, why clear / create the task again?
Use only start-stop task in a loop, and create and clear task outside the loop.

0 Kudos
Message 2 of 6
(2,510 Views)

Yes, in fact we create several task as a result, in short to order a way we create a spot by way. It comes down to creating multiple tasks

0 Kudos
Message 3 of 6
(2,501 Views)

Can you read all lines, and then get necessary elements from array?

0 Kudos
Message 4 of 6
(2,491 Views)

yes, for us there is no problem all the outputs switch well. It's just that after a while the execution is very slow.
As if a buffer is filled without being emptied.
After that, maybe the problem would come from somewhere else in the code.
We are on it.

0 Kudos
Message 5 of 6
(2,487 Views)

Can you attach your code? It would be much easier to trouble shoot actual code.

 

My first guess is if this things slows down the longer it runs, you must have a memory leak. Look for references that you are not closing. You can also look to see if you are building an array that just keeps getting bigger. Look for things that are going to take up memory or call for memory to be allocated.

Tim
GHSP
0 Kudos
Message 6 of 6
(2,481 Views)