Documentation

Humusoft MF624 Encoder Input

HUMUSOFT MF624 Encoder Input block

Library

Simulink® Real-Time™ 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

Enter numbers between 1 and 4. This driver allows the selection of individual channels in arbitrary order. The number of elements defines the number of channels used.

For example, to use the first, second, and fourth , enter

[1,2,4]

Number the lines beginning with 1, even if this 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 (-1 means sample time is inherited).

PCI slot (-1:autosearch)

If only one board of this type is in the target computer, enter -1 to locate the board.

If two or more boards of this type are in the target computer, 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:

tg = slrt;
getPCIInfo(tg, 'installed')

Was this topic helpful?