Is there a way to find DAQmx tasks programatically if you don't know the TaskHandle? I'm hoping for a function like "DAQmxFindTask" which would return either all task handles or only those that matched certain properties. Any chance?
There is a way to retrieve allsaved tasks in DAQmx. The DAQmx System property called Tasks returns an
array of the names of all saved tasks. This has nothing to do with
which tasks are running, but rather which tasks have previously been
configured and saved in Measurement and Automation Explorer. In C programming, call the functionDAQmxGetSysTasks.
As far as finding all open tasks, you could build an array of the names of all the tasks you start in your application and remove the names from that array as the tasks are closed.