| xPC Target | ![]() |
www.kxcad.net Home > CAE Software Index > MATLAB Index >
DT2825 Analog Input block
xPC Target Library for Data Translation
Hardware Input | Block Output Data Type | Scaling |
|---|---|---|
Volts | Double | 1 |
If you choose Single-ended (16 channels) from the Input coupling list, enter numbers between 1 and 16. If you choose Differential (8 channels) from the Input coupling list, then enter numbers between 1 and 8. For example, to use the first and third analog output (A/D) channels, enter
[1,3]
Number the channels beginning with 1 even if the board manufacturer starts to number the channels with 0.
Enter 1, 10, 100, or 500 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.
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.
From the list, choose one of the input modes:
Single-ended channels (16 channels)
differential channels (8 channels)
This choice must correspond to the input mode setting on the board.
Enter the base sample time or a multiple of the base sample time.
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
0x300
| Data Translation DT2825 | Data Translation DT2825 Analog Output (D/A) | ![]() |
© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments