NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents
Product DocumentationNI-DAQmx .NET Framework 4.0 API ReferenceAIChannelCollection.CreateTedsResistanceChannel Method (String, String, Double, Double, AIResistanceConfiguration, AIExcitationSource, Double, String)Current page
Table of Contents

AIChannelCollection.CreateTedsResistanceChannel Method (String, String, Double, Double, AIResistanceConfiguration, AIExcitationSource, Double, String)

AIChannelCollection.CreateTedsResistanceChannel Method (String, String, Double, Double, AIResistanceConfiguration, AIExcitationSource, Double, String)

AIChannelCollectionCreateTedsResistanceChannel Method (String, String, Double, Double, AIResistanceConfiguration, AIExcitationSource, Double, String)

Creates an AIChannel with the specified custom scale to measure resistance. This method adds one or more physical channels to the AIChannelCollection.

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

Syntax

public AIChannel CreateTedsResistanceChannel(
	string physicalChannelName,
	string nameToAssignChannel,
	double minimumValue,
	double maximumValue,
	AIResistanceConfiguration resistanceConfiguration,
	AIExcitationSource currentExcitationSource,
	double currentExcitationValue,
	string customScaleName
)
Public Function CreateTedsResistanceChannel ( 
	physicalChannelName As String,
	nameToAssignChannel As String,
	minimumValue As Double,
	maximumValue As Double,
	resistanceConfiguration As AIResistanceConfiguration,
	currentExcitationSource As AIExcitationSource,
	currentExcitationValue As Double,
	customScaleName As String
) As AIChannel

Parameters

physicalChannelName
Type: SystemString
The names of one or more physical channels to use to create one or more local virtual channels.
nameToAssignChannel
Type: SystemString
One or more names to assign to the created local virtual channels. To use the physical channel name as the local virtual channel name, set this value to Empty.
minimumValue
Type: SystemDouble
The minimum value expected from the measurement, in units.
maximumValue
Type: SystemDouble
The maximum value expected from the measurement, in units.
resistanceConfiguration
Type: NationalInstruments.DAQmxAIResistanceConfiguration
The number of wires to use for resistive measurements.
currentExcitationSource
Type: NationalInstruments.DAQmxAIExcitationSource
The source of excitation.
currentExcitationValue
Type: SystemDouble
The amount of excitation in amperes that the sensor requires. Refer to the sensor documentation to determine this value.
customScaleName
Type: SystemString
The name of the custom scale to apply to the local virtual channel.

Return Value

Type: AIChannel
The newly created AIChannel.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

You must configure the physical channel(s) with TEDS information to use this method.

The NI-DAQmx driver does not determine if the requested settings are possible until the task is verified. This method 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?