Loads a task that is stored in Measurement & Automation Explorer (MAX).

Syntax

Namespace: NationalInstruments.DAQmx

public unsafe Task LoadTask(string persistedName)

Remarks

You can use the Tasks property to get a list of tasks on the system.

Parameters

NameTypeDescription
persistedNamestring

The name of the task to load.

Returns

A Task that represents the task that is stored in MAX.

Exceptions

TypeDescription
NationalInstruments.DAQmx.DaqException

The NI-DAQmx driver returned an error.