| Contents | Index |
xPC Target Library for Diamond
Hardware Input | Block Output Data Type | Scaling |
|---|---|---|
Volts | Double | 1 |
If you select 16 channels (Coupling parameter set to 16 single-ended channels) enter a number between 1 and 16 to select the number of single A/D channels used. If you select eight channels (Coupling parameter set to 8 differential channels) enter a number between 1 and 8.
Number the lines beginning with 1 even if the board manufacturer starts numbering the lines with 0.
Note, you cannot select the starting channel for this block, you can only select the number of channels. This block works differently from the Diamond-MM-32-AT A/D block, where you can specify the starting channel.
Enter an input range code for all A/D channels. This driver does not allow the selection of a different range for each channel. The input range is the same for all A/D channels.
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 to +10 | 10 |
-5 to +5 | -5 | 0 to +5 | 5 |
-2.5 to + 2.5 | -2.5 | 0 to +2 | 2 |
-1 to +1 | -1 | 0 to +1 | 1 |
-0.5 to +0.5 | -5 |
The gain jumpers on the board have to be set for the required range. The bipolar jumper on the board has to be in the bipolar position, if a bipolar range is used or in the unipolar position, when a unipolar range is used.
From the list, select one from the following list of input modes:
16 single-ended channels
8 differential channels
This choice must correspond to the jumper setting in block J6 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 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 |