Skip to Main Content Skip to Search
Product Documentation

Real Time Devices DM6814 Incremental Encoder - DM6814 Incremental Encoder block

Library

xPC Target Library for Real Time Devices

Scaling Input to Output

Hardware Output

Block Input Data Type

Scaling

TTL

Double

counts

Block Parameters

Encode Channel

From the list choose, 1, 2, or 3. This parameter specifies which channel you use for this block. For the same board (same base address) two blocks cannot have the same channel number.

Counter initial value

Enter the initial value of the counter. The value must be between 1 and 216 − 1.

Enable counter reset on px.2 (index input)

If this check box is selected, the counter is reset to its initial value (default zero) whenever the incremental encoder is moved over its index mark.

For this purpose you must connect the incremental encoder index output to pin P0.2 for encoder channel 1, P2.2 for channel 2, and P4.2 for channel 3.

Sample time

Base sample time or a multiple of the base sample time.

Base address

Enter the base address of the board. This entry must correspond to the DIP switch settings on the board. For example, if the base address is 300 (hexadecimal), enter

0x300
  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS