Documentation

Contec PI-64L(PCI)H Digital Input

Contec PI-64L(PCI)H Digital Input block

Library

Simulink® Real-Time™ Library for Contec

Scaling Input to Output

I/O Module Input

Block Output Data Type

Scaling

TTL

Double (Format:32 1-bit Channels)

Double:
TTL low = 0.0

TTL high = 1.0

uint32 (Format:Single 32-bit Port)

uint32:
TTL low corresponding bit is clear

TTL high corresponding bit is set

Block Parameters

Format

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 Contec 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.

Group

From the list, select either

  • A (Bits 0-31) — Selects the 32-bit word from group A to address.

  • B (Bits 32-63) — Selects the 32-bit word from group B to address.

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 input channels, enter

[1, 3]

This vector indexes into group A or B channels. For group A, channel vector [1, 3] specifies channels 0 and 2. For group B, channel vector [1, 3] specifies channels 32 and 34.

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 documentation 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')

External Websites

Was this topic helpful?