Skip to Main Content Skip to Search
Product Documentation

Humusoft MF624 Encoder Input - HUMUSOFT MF624 Encoder Input block

Library

xPC Target Library for Humusoft

Scaling Input to Output

Hardware Output

Block Input Data Type

Scaling

TTL

Double

< 0.5 = TTL low
≥ 0.5 = TTL high

Channel Vector

From the list, select 1, 2, 3, or 4. This driver allows the selection of the encoder channel numbers in any order. The number of elements defines the number of encoder input channels used.

For example, to use the first, second, and fourth PWM channel lines, enter

[1,2,4]

Number the lines beginning with 1, even if the board manufacturer starts numbering the lines with 0.

Input Filter Vector (0=Off, 1=On)

Enter a vector of 0s and 1s, one for each encoder channel in Channel Vector. The length of this vector must be the same as the length of Channel Vector. Each Input Filter Vector element corresponds to its equivalent in Channel Vector. Enter 1 to filter, or 0 to not filter the measured signal. Use this parameter to eliminate short spurious pluses. The input noise filters are disabled by default.

  • 0 — Disables the input noise filter.

  • 1 — Enables the input noise filter.

Index Function Vector (see help)

Specify the function of the I input (index). Enter a vector of values, one for each PWM channel in Channel Vector. The length of this vector must be the same as the length of Channel Vector. Each Input Function Vector element corresponds to its equivalent in Channel Vector. Enter one of the following values for each channel:

ValueOperation
0No function (disabled)
1Reset counter when low
2Reset counter when high
3Reset counter on rising edge
4Reset counter on falling edge
5Reset counter on either edge
6Enable counting when high
7Enable counting when low

Sample time

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

PCI Slot (-1:autosearch)

If only one board of this type is in the target PC, enter

-1

to automatically locate the board.

If two or more boards of this type are in the target PC, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber, SlotNumber]. To determine the bus number and the PCI slot number, type

getxpcpci
  


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