| Contents | Index |
xPC Target Library for Diamond
Hardware Input | Block Output Data Type | Scaling |
|---|---|---|
Volts | Double | 1 |
Enter the number of the first channel in a set of contiguous analog input channels. Depending on the channel configuration selected, the first channel number must be within the range 1 through 8 (Coupling parameter set to 8 differential channels) or 1 through 16 (Coupling parameter set to 16 single-ended channels).
Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.
Enter the number of input channels you want to use. The maximum number of channels varies between 1 and 16 and depends on the values of Coupling and the First channel number.
From the list, choose a voltage range. The input range applies to all channels.
From the list, select one from the following list of input modes:
Single-ended (16 channels)
Differential (8 channels)
This choice must correspond to the jumper setting in block J4 on the board.
Select this check box to add a port labeled E to the block and to display (the contents of) that special port. This output will always have a value of 0 unless a problem is detected while attempting an A/D conversion. In the unlikely event that an error occurs, the port has a nonzero value. This nonzero value takes the form of a real number whose binary representation of 1's and 0's (true and false) indicates which channels have errors.
Enter the base sample time or a multiple of the base sample time.
Enter the base address of the board. This entry must correspond to the base address DIP switch settings on the board. For example, if the base address is 300 (hexadecimal), enter
0x300

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 |