Deletes the specified task that is stored in Measurement & Automation Explorer (MAX).

Syntax

Namespace: NationalInstruments.DAQmx

public void DeleteTask(string persistedName)

Remarks

This method does not clear the copy of the task stored in memory.

Parameters

NameTypeDescription
persistedNamestring

The name of the task to delete.

Exceptions

TypeDescription
NationalInstruments.DAQmx.DaqException

The NI-DAQmx driver returned an error.