| Contents | Index |
xPC Target Library for Contec
Hardware Input | Block Output Data Type | Scaling |
|---|---|---|
TTL | Double (Format:32 1-bit Channels) uint32 (Format:Single 32-bit Port) | Double: TTL
high = 1.0 uint32: TTL high corresponding bit is set |
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.
(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.
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.
Enter the base sample time or a multiple of the base sample time.
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

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 |