xPC Target | ![]() ![]() |
Scaling Input to Output
Hardware Input |
Block Output Data Type |
Scaling |
volts |
double |
1 |
Driver Block Parameters
Channel vector -- Enter numbers between 1 and 16. 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.
Range vector -- Enter a range code for each of the channels in the channel vector. The range vector must be the same length as the channel vector. This board allows the range of each channel to be different.
The following table is a list of the ranges for this driver and the corresponding range codes.
Input Range (V) |
Range Code |
Input Range (V) |
Range Code |
-10 to +10 |
-10 |
0 - 10 |
10 |
-5 to +5 |
-5 |
For example, if the first channel is -10 to +10 volts, and the second channel is 0 to 10 volts, enter
Gain vector -- Enter 1
, 2
, 4
, 8
, 16
, or 32
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.
The following table is a list of the ranges for this driver given the gain entered in the gain vector.
Gain |
Range (V) |
1 |
0 to 10 |
2 |
0 to +5 |
4 |
0 to 2.5 |
8 |
0 to 1.25 |
16 |
0 to 0.625 |
32 |
0 to 0.312 |
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
Coupling vector -- Enter either 0 (single-ended) or 1 (differential) for each of the channels in the channel vector to choose the coupling code. The coupling vector must be the same length as the channel vector. This driver allows the coupling of each channel to be different.
For example, if the first and second channels are single-ended and the fifth channel is a differential input, enter
The driver selects a second differential input 8 channels higher than the first channel. In the example above, the driver would select the thirteenth channel as a differential input with the fifth channel.
Sample time -- Base sample time or a multiple of the base sample time.
PCI Slot (-1:autosearch) -- Enter a number between -1 and n. If only one board of this type is physically present in the target PC, enter
If two or more boards of this type are physically present 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
![]() | DM7420 | DM7420 Digital Input | ![]() |