Contec PIO-32/32L(PCI)H Digital Input

Contec PIO-32/32L(PCI)H Digital Input block


Simulink® Real-Time™ Library for Contec

Scaling Input to Output

I/O Module Input

Block Output Data Type



Double (Format:32 1-bit Channels)

uint32 (Format:Single 32-bit Port)

TTL low = 0.0

TTL high = 1.0

TTL low corresponding bit is clear

TTL high corresponding bit is set

Block Parameters


From the list, select either

  • 32 1-bit Channels — Indicates that the channel vector specifies the configuration of the block. Each output is a double with value of 0 or 1. The value is 0 when the input voltage is low.

  • Single 32-bit Port — Indicates that the output from the block is a 32-bit integer where all 32 bits on the board feed into the single output. The least significant bit is the lowest numbered bit in the manufacturer documentation.

    If you choose this mode, use the bit packing and unpacking blocks (Digital I/O Bit-Packing and Digital I/O Bit-Unpacking) to construct the required data frames.

Channel vector

(32 1-bit Channels mode only) Enter a vector of numbers to specify the output channels. For example, to use the first and third digital output channels, enter

[1, 3]

The channel numbers can occur in arbitrary order, but the numbers must be in the range 1 to 32.

Digital Filter

This parameter specifies the digital filter time. From the list, select

  • No filtering

  • 0.25 usec

  • 0.5 usec

  • 1 usec

  • 2 usec

  • 4 usec

  • 8 usec

See the Contec User Guide for further details on the digital filter time.

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?