The read is something you would have had to call. Either you called a BeginRead method somewhere, starting an asynchronous read, or you called a Read method from another thread than you are attempting to call Stop from.
If you look for the "NI-DAQmx Driver Error Codes" topic in your online help, you can see a long list of conditions that will cause the NI-DAQmx driver to throw an exception. In general, NI-DAQmx will throw an exception when it cannot complete an operation you initiated. For instance, if you call Read it will throw an exception if the read times out and it cannot complete, if the task is aborted, if the task is acquiring data too fast and your read buffer overflowed, or possibly other types of error conditions only supported b
y particular hardware devices.
Tony H.
Measurement Studio