05-22-2018 04:40 AM
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
05-22-2018 06:20 AM
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.
05-22-2018 07:43 AM
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
05-22-2018 08:10 AM
Can you read all lines, and then get necessary elements from array?
05-22-2018 08:19 AM
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.
05-22-2018 08:28 AM
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.