This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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

Contec ADI12-16(PCI) Analog Input block


Simulink® Real-Time™ Library for Contec

Scaling Input to Output

I/O Module Output

Block Input 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).

Gain vector

To specify the gain, enter 1, 2, 4, or 8 for each of the channels in the channel vector. The gain vector must be the same length as the channel vector. If you enter a scalar, the value is replicated over the channel vector.

The gain is applied to the signal prior to sampling the voltage. After the signal voltage is sampled, the result is divided by the gain to obtain the block output signal value. To avoid clipping, make sure that the amplified gain falls within the range you selected.


From the list, select Bipolar -10V to +10V, Unipolar 0V to +10V, or Unipolar 4mA to 20mA. Choose a range that is consistent with the jumper settings on the board. This value 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')

See Also

External Websites

Was this topic helpful?