Search code examples
pythonlabviewnidaqmx

NiDAQMX close all created tasks


I would like to close all the previously created tasks in the nidaqmx-python module.

How can I do this?

In example, I have a number of previously opened tasks:

for i in range(10):
    nidaqmx.Task()

which I did not close. However, I want to close them now.


Solution

  • Have you tried using a reset_device() on the device you are using? It should make all tasks associated with the device able to be started again.

    edit: though it cleared the tasks, but it only aborts them.