Hello Sandra,
I have a Test class (the top level class that contains everything else). I then have AI/DI/CI and 1 CO classes. These work in conjunction with testtype classes and my analaysis class to determine what type of analysis can be run.
If not recording, then I have the timing of the ai/di set to continous and the ci set to hardware single point with the one co generating the pulse.
If recording data then single or multiple is determined by the number of ci's currently enabled. if <= 1 then I am using continous with async callbacks to get the data, if >1 then I would like to use the irq with a reduced timing from DMA and continue to use the async callbacks, but currently I have this configured to use a windows timer and have the ai/di set to continous and the ci set to hardware single point. I then grab a sample when the timer goes off (SLOW).
With IRQ the application runs and starts recording, it just doesn't come back and visual studio doesnt' respond either. The number of samples and the pulse freq were available to configure these were dropped down to a very slow rate with a very small sample size (I dont' remember just how slow). This was run three time and I had to use ctl+alt+del each time to stop it. Each time the samples and frequency were dropped down each time.
The code below stars with a comment before each routine.
Thanks again for yoru help,
cm