| Contents | Index |
xPC Target Library for UEI
Hardware Output | Block Input Data Type | Scaling |
|---|---|---|
Volts | Double | 1 |
Select the specific board type from the list provided.
Enter a vector of numbers to specify the output channels between 1 and 8, 1 and 16, 1 and 32, or 1 and 96. For example, to use the first and second analog output (D/A) channels, enter
[1 2]
The channel numbers can occur in any order. Number the channels beginning with 1 even if the board manufacturer numbers them beginning with 0. The maximum allowable channel number for PD2-AO series boards is 8, 16, 32, or 96 depending on the specific board type.
Note, the UEI PD2-AO 96 channel board only works if you specify a contiguous group of channels. These channels also must be listed in order. If you enter a non-contiguous channel list in the Channel vector parameter, no output will be seen from the board.
As a workaround, use a contiguous specification like:
[1 2 3 4 5]
to see the output on all five channels. You can attach a ground or other signal to the channels you do not want to use. For example, if you only want to use channels 1, 3, and 5, attach a ground to 2 and 4.
The reset vector must be the same length as the channel vector. It contains values of 0 or 1. This parameter controls the behavior at model termination. A value of 1 causes the corresponding channel to be reset to the value specified in the initial value vector. A value of 0 causes the channel to remain at the last value attained while the model was running.
If your board has 96 analog output channels, the board reads only the first value in the vector and resets all the channels according to that first value. For example, if the first value of the vector is 1, the board resets all 96 channels to the values specified in the Initial value vector parameter.
The initial value vector must be the same length as the channel vector and should contain the initial voltage values for the output channels. The channels are set to these values between the time the model is downloaded and the time it is started.
Enter the base sample time or a multiple of the base sample time.
If only one board of this type is in the target computer, enter
-1
to automatically locate the board.
If two or more boards of this type are in the target computer, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber, SlotNumber]. To determine the bus number and the PCI slot number, type
getxpcpci

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 |