Menu Bar Motion Capture Card Technical Summary


  • Technical Summary
  • Block/Connector Diagram
  • Hardware Specifications
  • Software drivers
  • User/Driver Manuals

    The ability to easily and accurately measure position, velocity and acceleration from an encoder requires more than simply an encoder interface and counters. The discussion below addresses the hardware functionality required to facilitate easy and accurate encoder measurements. The topics are broken down into the following:



    Hardware/Software components available for making encoder measurements.

     

    Although a few applications are served by a simple encoder interface and digital pulse counter, a good encoder interface card that serves any application well must include the following features:

    • Position Counters That Never Rollover - Although all digital counters have a finite number of bits, you shouldn't have to bare the burden of tracking counter rollovers.
    • Time Measurment - Time measurement is a must if you are going to measure position accurately and compute velocity and acceleration.
    • On-board memory - Memory on the card ensures no loss of data at high sampling rates and allows you to perform background acquisitions.
    • Sample Rate Generator - Hardware based sampling guarantees uniform time sampling and is not effected by CPU load.
    • Software Programmable Encoder Inputs - You shouldn't have to build external hardware to interface to encoders or suffer from jumper selections that can't be changed without opening the computer.

    The table below provides a comparison between the motion capture card and other encoder/counter cards.

    SpecificationMotion Capture CardOther Encoder Interface CardsCards Containing Counter Chips
    Encoder InputsSoftware programmable for RS-422, TTL signals; optional differential termination; ESD protected.Most often requires opening the computer to change jumper selections. No ESD Protection.NONE
    Encoder ModesSoftware programmable Tachometer, 1X, 4X and Stepper Motor modes.1X, 2X, 4X modes onlyNONE
    Position Counters32 Bit counters automatically extended to double precision floating point representation in hardware/software. You never have to write, debug or manage overflow routines. On board logic tracks counters event when you are not acquiring data.Requires writing an interrupt routine or reading the counter card often enough to catch/manage overflows.Requires writing an interrupt routine or reading the counter card often enough to catch/manage overflows.
    Time MeasurementTime measurement facilitates very accurate position, velocity and acceleration measurements.NONENONE
    MemoryOn-board memory ensures no loss of data at high sampling rates and allows you to acquire/store data for delayed processing (background data acquisition).NONENONE
    Sampling SystemBuilt-in sampling sub-system lets you sample based on time, external event or based on the position of a moving object. Time sampling guarantees uniform time samples needed for many data processing routines.
    NONE

    Only sampling based on time. Accuracy sensitive to CPU load or interrupt response rate.
    NONE

    Only sampling based on time. Accuracy sensitive to CPU load or interrupt response rate.
    Software
    • Full DLL and LabVIEW support
    • Detailed control of all interface parameters
    • Counter Over/Under flow automatically managed by the driver.
    • Sampling specifications at the timebase level - E.g. sample every 10mS for 35 seconds
    • Transparent interrupt support - Interrupt routine for unloading data already written. Enabled/disabled with a single flag. No code to write or debug.
    • High level language supports multiple boards/channels simultaneously
    LabVIEW support
    Low-level drivers
    LabVIEW support
    Analog SupportTrigger other data acquisition cards at the sampling rate of the motion capture card to produce synchronous measurements of motion with other measurements.NONENONE
    Trigger SystemAcquire one or more blocks of data in a controlled fashion.NONENONE
    PowerResetable fused power supplies provide power to external sensors for stand alone applications.NONENONE
    Why Time measurement is important when measuring position, velocity and acceleration?

     

    Time Measurement and Position
    Encoders, photo-interrupters and other motion sensors generate a pulse in response to a known incremental move in position. The position of an object can be continually measured by connecting the output of an encoder (or other sensor) to a counter that increments or decrements every time the sensor generates a pulse. The value of the counter indicates the position of the object quantized to the resolution of the sensor. That is, if a sensor generates 10 pulses per revolution, the resolution of the position measurement can be no better than 1/10th of a revolution.

    Standard encoder/counter cards measure the position of an object by capturing the value of the position counter at user specified times. Because counter cards only provide counter values as a means of measuring position, the position measured using counter cards will always be quantized to +/- 1/2 count.

    In contrast to the measurement of position strictly using counters, the Motion Capture card measures the time of pulse transitions from encoders to more accurately measure the position of an object. These time/position value pairs represent the actual position of the encoder at the measured time because it is at these transition times that the position counter increments/decrements. As illustrated below, the actual time/position values can be used to interpolate to sample times to more accurately convey the motion measured by the encoder. Of course the Motion Capture card also supports the direct measurement of the position counters without time measurement to accommodate applications that only need strobed position measurements.

    Measurements of Position

    Time Measurement and Velocity Computations
    Low Resolution ImageThe computation of velocity requires that you know two position values and the time at which an object was at these two positions. Velocity can be approximated using a counter card by reading a computer's clock every time the counter card is read. Although valid for approximating velocity, you are precluded from accurately measuring velocity because there is always an uncertainty in time between the event of reading the computer's clock and the event of reading the counter card. Using precisely timed interrupts greatly enhances your ability to measure velocity, but the counter card approach still stuffers because the resolution of the velocity measurement drops as the velocity of an object decreases to zero. This can be illustrated by a quick example. Assume a position sensor on a rotating object generates a pulse every 15mS and you are sampling the counter card every 10mS. Sometimes you'll read two different position values (velocity > 0) and sometimes you'll read two identical position values (velocity = 0). Your measured velocity will subsequently hunt between 0.0 and some finite value. Because the motion capture hardware from Euclid Research gives you time measurement values with your position measurements, you can accurately compute velocities down to zero.

    Why counters can't be used to measure direction from quadrature signals?

     

    One might be tempted to consider the counter/timer cards based on the 9513 and/or 8253/8254 counter chips to measure position, velocity and acceleration. These cards are suitable if you simply want to measure unidirectional position and you don't mind providing external logic to translate the RS-422 signal levels of optical encoders to TTL/CMOS levels. The use of counter cards becomes questionable when you attempt to measure bi-directional motion or attempt to accurately measure/compute velocity or acceleration.

    False Counting ImageThe use of counters to track the direction of an encoder is precluded by the counter's inability to differentiate between stationary vibration and real rotation. Without the appropriate state machine to track the quadrature signal states of an encoder, there are conditions when a counter will indicate motion when in fact the object is simply moving back and forth ever so slightly.

    For example, it is often suggested that an encoder can be connected to a bi-directional counter by connecting the A signal of the encoder to the clock input of the counter, and the B encoder signal to the up/down input. As illustrated to the left, it is possible for the encoder to be stopped and vibrating (or rotating and vibrating for that matter) so that one of the quadrature signals repeatedly generates an edge while the other quadrature signal remains low (or high). In such a condition, the counter will continue to count up (or down) as if the object is actually rotating in one direction. The motion capture hardware from Euclid Research does not have this problem.


    Euclid Research · 2 North 1st Street, 6th Floor · San Jose, CA 95113-1201
    Tel: (408) 283-9020 · Fax: (408) 283-9029

    Copyright © 1997-2001 Euclid Research