Contec AD12-16(PCI) Analog Input (A/D)

Contec AD12-16(PCI) Analog Input (A/D) 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

I/O Module Input

Block Output Data Type





Block Parameters

Channel vector

Enter a vector of numbers to specify the input channels. For example to use the first three analog input (A/D) channels, enter

[1, 2, 3]

The channel numbers can occur in arbitrary order. Number them beginning with 1 even if this board manufacturer numbers them beginning with 0.

The maximum allowable channel number for this board is 8 (differential-ended) or 16 (single-ended). If the highest channel number you specify is n, the I/O module converts all the channels between 1 and n, whether or not they occur in your channel vector. It is more efficient to specify a contiguous range of channels. (Permuting the order of such a range has little impact on efficiency however.)

Range vector

This board allows the range of each channel to be selected independently. Enter a scalar, in which case the same value is replicated over the channel vector, or a vector the same length as the channel vector.

The range vector entries must be range codes selected from the following table:

Input Range (V)

Range Code

Input Range (V)

Range Code

-10 to +10


0 to 10


-5 to +5


0 to 5


-2.5 to 2.5


0 to 2.5


-1.25 to 1.25


0 to 1.25



Choose single-ended or double-ended (differential-ended). This setting is replicated over the channel vector.

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?