MM Analog Input block
Simulink® Real-Time™ Library for Diamond
I/O Module Input
Block Output Data Type
If you select 16 channels (Coupling parameter
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
8 differential channels) enter a number
between 1 and 8.
Number the lines beginning with 1 even if this 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 the 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)
Input Range (V)
-10 to +10
0 to +10
-5 to +5
0 to +5
-2.5 to + 2.5
0 to +2
-1 to +1
0 to +1
-0.5 to +0.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 has 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
-1 means sample time is inherited).
Enter the base address of the board. This entry must correspond
to the DIP switch setting on the board. For example, if the DIP switch
setting is 300 (hexadecimal), enter