LoadTask(string)
- Updated2026-02-03
- 1 minute(s) read
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
| Name | Type | Description |
|---|---|---|
| persistedName | string | The name of the task to load. |
Returns
A Task that represents the task that is stored in MAX.
Exceptions
| Type | Description |
|---|---|
| NationalInstruments.DAQmx.DaqException | The NI-DAQmx driver returned an error. |