12-17-2007 10:28 PM
12-18-2007 02:10 AM - edited 12-18-2007 02:11 AM
12-19-2007 10:55 AM
Hello,
The 6601 has 4 counters and the 6602 and 6608 have 8 counters. I am assuming that you have a 6601, since it is only allowing you to run 4 threads at one time. Please confirm if this is the 660x board you have.
12-19-2007 01:22 PM
This is probably a transfer issue, these cards have 3 DMA channels so 3 operations will run super fast (10khz+) after vthe 1st 3 channels you will run into interrupt transfer of data and your balancing act will begin. Interrupts are very slow and the more interrupts that are running (i.e. at 5, 6, 7 and channel 😎 your system will slow down and your code might not keep up with the data transfer to ram. once this haqppens, the buffered data will build up and you will eventually have errors in the additional threads. Do you capture the error clusters and manage daq errors? This is just a guess. if you are doing low speed pulse width measurments continious at <1000Hz or just a finite # of acquisitions then you probably will not be a data transfer limitation due to the lack of dma transfer channels.
Paul
12-20-2007 09:26 AM
Tough to be sure -- can you provide more detail and/or code?
From my experience, I'm doubtful that the problem is a limited # of threads available. Samantha M's reply sounds quite plausible depending on your actual hardware device and how you've put together your program. Do you have a 6602 to support >4 simultaneous input measurements?
It sounds like you can vary the # of pulse width tasks to run -- how is this managed at run-time? Or do you have different programs to support the different # of tasks? When you have 4 run and 2 wait, is it the same 2 waiting every time? Could there be some dataflow sequencing causing this?
From the time you want to start your 6 measurements, how long until all 6 should have registered a valid pulse width? Do you want to wait for them all no matter what? Have you set your timeouts appropriately? Are you checking for timeout errors?
See, mostly questions until you can describe things in more detail and, better yet, post the code.
-Kevin P.