NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

DaqSystem.CreateSwitchScanTask Method

DaqSystem.CreateSwitchScanTask Method

DaqSystemCreateSwitchScanTask Method

Note: This API is now obsolete.

Creates a new switch scanning task with the sequence specified in the scan list.

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

Syntax

[ObsoleteAttribute("This method is obsolete.")]
public Task CreateSwitchScanTask(
	string taskName,
	string scanList
)
<ObsoleteAttribute("This method is obsolete.")>
Public Function CreateSwitchScanTask ( 
	taskName As String,
	scanList As String
) As Task

Parameters

taskName
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.
scanList
Type: SystemString
The sequence of connections and disconnections for the task. This sequence is specified using a special syntax.

Return Value

Type: Task
The Task that this method creates.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

The NI-DAQmx driver does not determine if the requested settings are possible until the task is verified. CreateSwitchScanTask(String, String) does not throw an exception for parameter values that are not compatible with your hardware or other settings in your task. To determine if all of the settings for a Task are valid, you must verify the task by starting the task, either with Start or by reading from or writing to the task, or by calling Control(TaskAction) with Verify.

See Also

Was this information helpful?