I have a USB-9161 device hooked up to a cRIO-9215 analog input and I am using version 1.4 DAQmx Base. I am developing an app in Visual C++ 6.0 and have a few questions.
1. I am reading from the channels in a worker thread. Before the thread stops, I call DAQmxBaseStopTask and the program gets stuck here. Do I need to clear out buffers or anything before stopping the task? This worker thread creates and initializes the task. Can I rely of DAQmxBaseClearTask to clean up the task?
2. After stopping the thread that reads from the channels, I cannot re-start the thread and get it to successfully read from the same channels. I need to completely close down my applicaiton. The thread get stuck in the call to DAQmxBaseReadAnalogF64. Any ideas here?
Thanks