Creates a channel to measure the angular velocity of a digital signal. With the exception of devices that support multi-counter tasks, you can create only one counter input channel at a time with this VI 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.


icon

Inputs/Outputs

  • ci32.png decoding type

    decoding type specifies how to count and interpret the pulses the encoder generates on signal A and signal B. X1, X2, and X4 are valid for quadrature encoders only. Two Pulse Counting is valid only for two-pulse encoders.

    X2 and X4 decoding are more sensitive to smaller changes in position than X1 encoding, with X4 being the most sensitive. However, more sensitive decoding is more likely to produce erroneous measurements if vibration exists in the encoder or other noise exists in the signals.

    Two Pulse Counting (10313)

    Increment the count on rising edges of signal A. Decrement the count on rising edges of signal B. If you select this value, z index phase is ignored.

    X1 (10090)

    If signal A leads signal B, count the rising edges of signal A. If signal B leads signal A, count the falling edges of signal A.

    X2 (10091)

    Count the rising and falling edges of signal A.

    X4 (10092)

    Count the rising and falling edges of signal A and signal B.

  • cdbl.png minimum value

    minimum value specifies in units the minimum value you expect to measure.

  • cdbl.png maximum value

    maximum value specifies in units the maximum value you expect to measure.

  • cgenclassrntag.png task in

    task in specifies the task to which to add the virtual channels this VI creates. If you do not specify a task, NI-DAQmx creates a task for you and adds the virtual channels this VI creates to that task.

  • cdaqmxscale.png counter

    counter specifies the name of the counter to use to create the virtual channel. The DAQmx physical channel constant lists all physical channels, including counters, for devices installed in the system.

  • cstr.png name to assign

    name to assign specifies a name to assign to the virtual channel this VI creates. If you do not wire a value to this input, NI-DAQmx uses the physical channel name as the virtual channel name.

    If you use this input to provide your own names for the virtual channels, you must use the names when you refer to these channels in other NI-DAQmx VIs and Property Nodes, such as the source input of the DAQmx Trigger VI.

    If you create multiple virtual channels with one DAQmx Create Virtual Channel VI, you can specify a comma-separated list of names to assign to the virtual channels. If you provide fewer names than the number of virtual channels you create, NI-DAQmx automatically assigns names to the virtual channels.

  • ci32.png units

    units specifies in which unit to return velocity measurements from the channel.

    RPM (16080)

    Revolutions per minute.

    Radians/s (16081)

    Radians per second.

    Degrees/s (16082)

    Degrees per second.

    From Custom Scale (10065)

    Units a custom scale specifies. If you select this value, you must wire a custom scale name to the custom scale name input.

  • cerrcodeclst.png error in

    error in describes error conditions that occur before this VI or function runs.

    The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.

  • cdaqmxscale.png custom scale name

    custom scale name specifies the name of a custom scale for the channel. If you want the channel to use a custom scale, wire the name of the custom scale to this input and set units to From Custom Scale.

  • cu32.png pulses per revolution

    pulses per revolution is 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.

  • igenclassrntag.png task out

    task out is a reference to the task after this VI runs. The task contains any newly created virtual channels. If you did not wire a value to task in, NI-DAQmx automatically creates the task this output refers to.

  • ierrcodeclst.png error out

    error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, error out describes the error status that this VI or function produces.

    Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.