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 ReferenceCIChannelCollection.CreateTwoEdgeSeparationChannel Method (String, String, Double, Double, CITwoEdgeSeparationFirstEdge, CITwoEdgeSeparationSecondEdge, String)Current page
Table of Contents

CIChannelCollection.CreateTwoEdgeSeparationChannel Method (String, String, Double, Double, CITwoEdgeSeparationFirstEdge, CITwoEdgeSeparationSecondEdge, String)

CIChannelCollection.CreateTwoEdgeSeparationChannel Method (String, String, Double, Double, CITwoEdgeSeparationFirstEdge, CITwoEdgeSeparationSecondEdge, String)

CIChannelCollectionCreateTwoEdgeSeparationChannel Method (String, String, Double, Double, CITwoEdgeSeparationFirstEdge, CITwoEdgeSeparationSecondEdge, String)

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

Syntax

public CIChannel CreateTwoEdgeSeparationChannel(
	string counter,
	string nameToAssignChannel,
	double minimumValue,
	double maximumValue,
	CITwoEdgeSeparationFirstEdge firstEdge,
	CITwoEdgeSeparationSecondEdge secondEdge,
	string customScaleName
)
Public Function CreateTwoEdgeSeparationChannel ( 
	counter As String,
	nameToAssignChannel As String,
	minimumValue As Double,
	maximumValue As Double,
	firstEdge As CITwoEdgeSeparationFirstEdge,
	secondEdge As CITwoEdgeSeparationSecondEdge,
	customScaleName As String
) As CIChannel

Parameters

counter
Type: SystemString
The names of the counter to use to create the virtual channels.
nameToAssignChannel
Type: SystemString
The name to assign to the created channel. 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.
firstEdge
Type: NationalInstruments.DAQmxCITwoEdgeSeparationFirstEdge
The edge of the first signal to start each measurement.
secondEdge
Type: NationalInstruments.DAQmxCITwoEdgeSeparationSecondEdge
The edge of the first signal to stop each measurement.
customScaleName
Type: SystemString
The name of the custom scale to apply to the local virtual channel.

Return Value

Type: CIChannel
The newly created CIChannel.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

With the exception of devices that support multi-counter tasks, you can create only one CIChannel at a time with this function because a task can contain only one CIChannel. To read from multiple counters simultaneously, use a separate task for each counter.

This method creates a virtual channel for the physical channel name you specify.

If you do not provide a value for nameToAssignChannel, NI-DAQmx uses the counter as the local virtual channel name. If you use nameToAssignChannel to create a name for the local virtual channel, you must use this name in other properties and methods.

The NI-DAQmx driver does not determine if the requested settings are possible until the task is verified. CreateTwoEdgeSeparationChannel(String, String, Double, Double, CITwoEdgeSeparationFirstEdge, CITwoEdgeSeparationSecondEdge, 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?