NI-DAQmx .NET Framework 4.0 API Reference

CIChannelCollection.CreateAngularVelocityChannel Method (String, String, Double, Double, Int64, CIVelocityEncoderType, CIVelocityAngularEncoderUnits)

  • Updated2023-02-21
  • 2 minute(s) read
CIChannelCollection.CreateAngularVelocityChannel Method (String, String, Double, Double, Int64, CIVelocityEncoderType, CIVelocityAngularEncoderUnits)
Creates a channel to measure angular velocity.

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

Syntax

public CIChannel CreateAngularVelocityChannel(
	string counter,
	string nameToAssignChannel,
	double minimumValue,
	double maximumValue,
	long pulsesPerRevolution,
	CIVelocityEncoderType decodingType,
	CIVelocityAngularEncoderUnits units
)
Public Function CreateAngularVelocityChannel ( 
	counter As String,
	nameToAssignChannel As String,
	minimumValue As Double,
	maximumValue As Double,
	pulsesPerRevolution As Long,
	decodingType As CIVelocityEncoderType,
	units As CIVelocityAngularEncoderUnits
) As CIChannel

Parameters

counter
Type: SystemString
The name of the counter to use to create virtual channels.
nameToAssignChannel
Type: SystemString
The name(s) to assign to the created virtual channel(s). If you do not specify a name, NI-DAQmx uses the physical channel name as the virtual channel name. If you specify your own names for nameToAssignChannel, use the names when you refer to these channels in other NI-DAQmx functions. If you create multiple virtual channels with one call to this function, specify a list of names separated by commas. If you provide fewer names than the number of virtual channels you create, NI-DAQmx automatically assigns names to the virtual channels.
minimumValue
Type: SystemDouble
The minimum value, in units, that you expect to measure.
maximumValue
Type: SystemDouble
The maximum value, in units, that you expect to measure.
pulsesPerRevolution
Type: SystemInt64
The number of pulses the encoder generates per revolution. This value is the number of pulses on either signal A or signal B, not the total number of pulses on both signal A and signal B.
decodingType
Type: NationalInstruments.DAQmxCIVelocityEncoderType
Specifies how to count and interpret the pulses that the encoder generates on signal A and signal B.
units
Type: NationalInstruments.DAQmxCIVelocityAngularEncoderUnits
Specifies in which unit to return velocity measurements from the channel.

Return Value

Type: CIChannel

Remarks

With the exception of devices that support multi-counter tasks, you can create only one counter input channel at a time with this function because a task can contain only one counter input channel. To read from multiple counters simultaneously, use a separate task for each counter. Connect the input signal to the default input terminal of the counter unless you select a different input terminal.

See Also

Log in to get a better experience