NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

Task Constructor (String)

  • Updated2023-02-21
  • 1 minute(s) read
Task Constructor (String)
Initializes a new instance of the Task class with the specified name.

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

Syntax

public Task(
	string name
)
Public Sub New ( 
	name As String
)

Parameters

name
Type: SystemString
The name of the task to create. If you specify Empty or , the NI-DAQmx driver assigns a unique name to the new task.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

This constructor creates a new task in the current process. To load a task from Measurement Automation Explorer (MAX), use the LoadTask(String) method on the Local instance of DaqSystem.

See Also

Log in to get a better experience