| Contents | Index |
xPC Target Library for Contec
Hardware Input | Block Output Data Type | Scaling |
|---|---|---|
Volts | Double | 1 |
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 any order. Number them beginning with 1 even if the 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 hardware converts all the channels between 1 and n, whether or not they occur in your channel vector. It is most efficient to specify a contiguous range of channels. (Permuting the order of such a range has no impact on efficiency however.)
This board allows the range of each channel to be selected independently. Enter a scalar, in which case the same range will be used for all channels, 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 | -10 | 0 to 10 | 10 |
-5 to +5 | -5 | 0 to 5 | 5 |
-2.5 to 2.5 | -2 | 0 to 2.5 | 2 |
-1.25 to 1.25 | -1 | 0 to 1.25 | 1 |
Choose single-ended or double-ended (differential-ended). This setting applies to all channels.
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
The Device ID of this board is 8153.

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 |