Skip to Main Content Skip to Search
Product Documentation

Diamond Ruby-MM Analog Output (D/A) - Ruby-MM Analog Output block

Library

xPC Target Library for Diamond

Scaling Input to Output

Hardware Output

Block Input Data Type

Scaling

Volts

Double

1

Block Parameters

Channel vector

List the output channels as a vector. Up to 8 different channels can be listed. To specify the first three channels, enter

[1,2,3]

The board comes in two different hardware versions. If the 4-channel version of the hardware is used and the channels 5-8 are listed, the those outputs will not show an error, but the data will be ignored.

Range

The output range of the board is selected with jumpers on the board. Each group of 4 channels can be jumpered for any of the available ranges. The range you select in the Block Parameters must correspond to the range specified by the jumper settings or you will obtain unexpected results.

Reset vector

The reset vector controls the behavior of the channel at model termination. Enter a scalar or a vector that is the same length as the channel vector. If you specify a scalar value, that setting is used for all channels. If you specify a value of 1, the corresponding channel is reset to the value specified in the initial value vector. If you specify a value of 0, the channel remains at the last value attained while the model was running.

Initial value vector

The initial value vector contains the initial voltage values for the output channels. Enter a scalar or a vector that is the same length as the channel vector. If you specify a scalar value, that value is the initial value for all channels. The channels are set to the initial values between the time the model is downloaded and the time it is started.

Sample time

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

Base address

Enter the base address of the board in hexadecimal (such as 0x300) as selected with the hardware jumpers on the board.

  


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