Skip to Main Content Skip to Search
Product Documentation

Diamond Prometheus/Athena/Athena II Analog Input (A/D) - Prometheus/Athena Analog Input block

Library

xPC Target Library for Diamond

Scaling Input to Output

Hardware Input

Block Output Data Type

Scaling

Volts

Double

1

Block Parameters

First channel

Enter the number of the first channel in a set of contiguous channels. Depending on the channel configuration selected, the first channel number must be within the range:

  • 1 through 8, if the input coupling is differential

  • 1 through 16, if the input coupling is single-ended

    Number the channels beginning with 1 even if the board manufacturer starts numbering the channels with 0.

Number of channels

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 First channel and Input coupling. For example, if the value of First channel is 1 and Input coupling is Single-ended, the maximum value for Number of channels is 16.

Range (J13 setting)

From the list, choose a voltage range. The input range applies to all channels. This range must agree with jumper settings in block J13 on the board.

Input coupling (J13 setting)

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 J13 on the board.

Show error status output port

Select this check box to display real-time error information. This check box displays an output port labeled E. As long as no error is detected on any of the channels currently in use, this signal has a value of 0. Values of 1, 2, 4, 8, and so forth respectively indicate problems on channels 1, 2, 3, 4, and so forth. To use one signal to indicate errors on multiple channels, the driver combines these values. For example, the E value 1 + 2 = 3 encodes the concurrent errors on channels 1 and 2, the value 2 + 4 = 6 encodes the concurrent errors on channels 2 and 3, and so on.

Sample time

Enter the base sample time or a multiple of the base sample time.

Base address

Enter the base address of the board. It is important that this entry corresponds to the base address setting on the board. For example, if the base address is 280 (hexadecimal), enter

0x280
  


Related Products & Applications

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