Skip to Main Content Skip to Search
Product Documentation

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

Library

xPC Target Library for Contec

Scaling Input to Output

Hardware Input

Block Output Data Type

Scaling

TTL

Double (Format:32 1-bit Channels)

uint32 (Format:Single 32-bit Port)

Double:
TTL low = 0.0

TTL high = 1.0

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 hardware 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 user manual.

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

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