Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Managing multiple ascychronous DIO bits

Chuck:

Aborting the task will cause the exception you describe to get thrown in any other threads that may be working with the task while the task was aborted. So, when you're using asynchronous I/O, this exception may get thrown in the callback thread if the main thread calls abort. The exception should not be thrown from the abort operation itself in the main thread. If that's the case in your application, could you please attach a sample program that demonstrates this?

I'm attaching a small program I've written that uses a slow analog acquisition and uses Abort in the way you describe.

-- Chris
Message 11 of 12
(1,220 Views)
Thank you Chris, yes that is exactly right.
We added the condition to out exception handler in OnDataReady and that solved the problem.
0 Kudos
Message 12 of 12
(1,201 Views)