Adlink PCI-6208A Analog Output block (not recommended)
Simulink® Real-Time™ Library of Drivers No Longer Recommended for Use.
To open this library, type
xpcobsoletelib in the Command
I/O Module Output
Block Input Data Type
Enter a vector of numbers to specify the output channels.
For example, to use the first and second analog output (D/A) channels enter
The channel numbers can occur in arbitrary order. Number the channels beginning with 1 even if this board manufacturer numbers them beginning with 0. The maximum allowable channel number is 4.
From the list, choose
0 to 20 ma
5 to 25 ma
4 to 20 ma
Signal input to the block is in milliamperes (mA). The output voltage maximum is 10 volts. If the resistance is too large to get the chosen current, the voltage measured across the output load will saturate.
For example, assume an input sine wave with:
Input = 10*sin(omega*t) + 10
If you set the range to
0 to 20
ma, the current should oscillate from 0
to 20 ma at
omega radians per
second. The current will only reach 20 ma if the
load resistance is less than or equal to 500 ohms.
If the load resistance is 1000 ohms, the maximum
current that 10 volts can drive is only 10 ma. The
top half of the sine wave will be clipped
Note the following:
This block is scaled for the current output ports, not the voltage output ports.
This block limits output to positive values only. This is in response to the manufacturer documentation, which cautions that driving a negative voltage from the D/A converter to the voltage to current output board might cause damage to the current output.
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 replicated over the channel vector. 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. For example, if
Channel vector is
2] and the Reset
action taken will be the same as if Reset vector
was set to
[1 1]. Both channels
will be reset to their initial values when model
execution is stopped.
The initial value vector contains the
initial current 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 replicated as initial value
over the channel vector. The channels are set to
the initial values between the time the model is
downloaded and the time it is started. When model
execution is stopped, the corresponding position
in Reset vector is checked.
Depending on that value, the channel is either
reset to the initial value or remains at the last
value attained while the model was running. For
example, assume that Channel
Reset vector is
0], and Initial value
vector is [2.3 5.6]. On initial
download, channel 1 is set to 2.3 ma and channel 2
to 5.6 ma. When the model is stopped, channel 1
resets to 2.3 ma and channel 2 remains at the last
Enter the base sample time or a multiple of the base sample
-1 means sample time is inherited).