xPC Target | ![]() ![]() |
Scaling Input to Output
Hardware Input |
Block Output Data Type |
Scaling |
volts |
double |
1 |
Driver Block Parameters
Channel vector -- If 16 single-ended
or 16 single-ended common mode
is chosen from the MUX list, then enter numbers between 1 and 16 to select the individual channels. If 8 differential
is chosen from the MUX list, then enter numbers between 1 and 8 to select the A/D channels used. This driver allows the selection of individual A/D channels in any order. The number of elements defines the number of A/D channels used/
For example, to use the first, second and fifth channels, enter
Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.
Gain vector (1,2,4,8) -- Enter 1
, 2
, 4
, or 8
for each of the channels in the channel vector to choose the gain code of that channel. The gain vector must be the same length as the channel vector. This driver allows the gain of each channel to be different.
Notice that by increasing the gain code the voltage range is decreased. The gain divides the input voltage range.
For example, if the first channel has a gain code of 1 (10 volt range) and the second and fifth channels have a gain code of 2 (5 volt range), enter
Range -- From the list, choose either Bipolar
or Unipolar
.
The range setting defines if the board is working in bipolar or unipolar input mode. This setting is the same for all of the selected channels.
The following table is a list of the ranges for this driver given the gain entered and the range chosen.
Gain |
Bipolar Range (V) |
Unipolar Range (V) |
1 |
-10 to +10 |
0 to 10 |
2 |
-5 to + 5 |
0 to +5 |
4 |
-2.5 to 2.5 |
0 to 2.5 |
8 |
-1.25 to +1.25 |
0 to 1.25 |
MUX -- From the list, choose either 8 differential
, 16 single-ended
, or 16 single-ended common mode
. Your choice must correspond to the MUX-switch setting on the board.
Common-mode is similar to single-ended mode but the negative wire of the source to be measured is connected to input AI-SENSE instead of LLGND.
Sample time -- Base sample time of a multiple of the base sample time.
Base address -- Enter the base address of the board. It is important that this entry corresponds to the DIP-switch settings on the board. For example, if the base address is 300 (hexadecimal), enter
![]() | DAS-1800HR | DAS-1800HR Digital Input | ![]() |