xPC Target | ![]() ![]() |
DT2821-F-16SE Analog Input (A/D)
Scaling of Input to Output
Hardware Input |
Block Output Data Type |
Scaling |
volts |
double |
1 |
Driver Block Parameters
Channel vector -- Enter numbers between 1 and 16. For example, to use the first and third analog output (A/D) channels, enter
Number the channels beginning with 1 even if the board manufacturer starts to number the channels with 0.
Gain vector -- Enter 1
, 2
, 4
, or 8
for each of the channels in the Channel vector to specify the gain for that channel. The gain vector must be the same length as the Channel vector. (If your enter a scalar, it is automatically expanded to channel vector). This driver allows the gain of each channel to be different. The gain is applied prior to sampling the voltage.
For example, if you have an input signal from -1 to +1 volts, and a gain of 8, the signal is amplified -8 to +8 volts. Select a range equal or larger than the amplified voltage. For example, select a range of +-10V
. After the signal voltage is sampled, this block divides by the gain to output the original signal value.
Range -- From the list, choose either +-10V
(-10 volts to +10 volts), or 0-10V
(0 volts to +10 volts). This specifies the effective range which is the same for all channels and must correspond with the input range setting on the board.
Sample time -- Enter the base sample time or 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 bass address setting on the board. For example, if the base address is 300 (hexadecimal), enter
![]() | DT2821-F-16SE | DT2821-F-16SE Analog Output (D/A) | ![]() |