Documentation

Diamond MM Analog Input (A/D)

MM Analog Input block (not recommended)

Library

Simulink® Real-Time™ Library of Drivers No Longer Recommended for Use

Scaling Input to Output

I/O Module Input

Block Output Data Type

Scaling

Volts

Double

1

Block Parameters

Number of channels

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 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.

Range

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)

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.

Coupling

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.

Show error status output (E)

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.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

Base address

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 0x300.

External Websites

Was this topic helpful?