NI-DAQmx .NET Framework 4.0 API Reference

DaqSystem.LoadTask Method

  • Updated2023-02-21
  • 1 minute(s) read
DaqSystem.LoadTask Method
Loads a task that is stored in Measurement Automation Explorer (MAX).

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

public Task LoadTask(
	string persistedName
)
Public Function LoadTask ( 
	persistedName As String
) As Task

Parameters

persistedName
Type: SystemString
The name of the task to load.

Return Value

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

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

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

See Also

Log in to get a better experience