Humusoft MF624 Counter Input

HUMUSOFT MF624 Counter Input block (not recommended)


Simulink® Real-Time™ Library of Drivers No Longer Recommended for Use.

To open this library, type xpcobsoletelib in the Command Window.

Scaling Input to Output

Hardware Output

Block Input Data Type




< 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


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

Reset after read

From the list, select:

  • No — Do not reset counter after reading. Counting continues without stop.

  • Yes — Reset counter after reading. Read number of pulses per sample period.

Clock active edge

From the list, select:

  • Rising — Increment the counter on the rising edge of the signal.

  • Falling — Increment the counter on the falling edge of the signal.

  • Either — Increment the counter on both edges of the signal. For example, with periodic signals, count twice the number of pulses (rising or falling).

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?