Hi George,
Well, there is a way to retrieve all
saved 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. Just so you know, here's how to retrieve this property in each programming language:
In LabVIEW: Use the
DAQmx System Property Node with the
Tasks property selected.
In C: Call the function
DAQmxGetSysTasks.
In .NET: Use the
DAQSystem.Tasks property.
If you want to be able to programmatically clear all
open tasks, you should probably build an array of the names of all the tasks you start in your application. This way, you could just index through the array and call the Clear Task function for each element.
I hope this information helps!
Best regards,