Справочник Пользователя для National Instruments 321645c-01
Chapter 2
Function Reference — AO_Configure
NI-DAQ FRM for PC Compatibles
2-40
©
National Instruments Corporation
If you make a reference voltage connection, you must assign refVoltage the value of the
external reference voltage in a call to
external reference voltage in a call to
AO_Configure
for the
AO_VWrite
and
AO_VScale
functions to operate properly. For devices that have no external reference pin, the output range
is determined by outputPolarity, and NI-DAQ ignores this parameter.
is determined by outputPolarity, and NI-DAQ ignores this parameter.
updateMode indicates whether an analog output channel is updated when written to:
0:
Updated when written to (default setting).
1:
Not updated when written to, but updated later after a call to
AO_Update
(later internal update mode).
2:
Not updated when written to, but updated later upon application of an active low
pulse. You should apply this pulse to the following:
pulse. You should apply this pulse to the following:
•
OUT2 pin for an MIO-16/16D device
•
EXTDACUPDATE pin for an MIO-F/16 device
•
EXTUPDATE pin for the AT-AO-6/10 and Lab and 1200 Series analog
output devices (later external update mode)
output devices (later external update mode)
•
PFI5 pin for the E Series devices. To alter the pin and polarity selections
you make with this function, for an E Series device, you can call
you make with this function, for an E Series device, you can call
Select_Signal
with signal =
ND_OUT_UPDATE
after you call
AO_Configure
.
Note
This mode is not valid for the VXI-AO-48XDC.
Using This Function
AO_Configure
stores information about the analog output channel on the specified device
in the configuration table for the analog channel. For the AT-AO-6/10, the outputPolarity
and updateMode information is stored for channel pairs. For example, analog output
channels 0 and 1 are grouped in a channel pair, and a call to
and updateMode information is stored for channel pairs. For example, analog output
channels 0 and 1 are grouped in a channel pair, and a call to
AO_Configure
for channel 0
record the outputPolarity and updateMode for both channels 0 and 1. Likewise, a call to
AO_Configure
for channel 1 records the outputPolarity and updateMode for both
channels 0 and 1. The AT-AO-6/10 channel pairs are as follows:
AT-AO-6/10 channel pairs:
•
Channels 0 and 1.
•
Channels 2 and 3.
•
Channels 4 and 5.
•
Channels 6 and 7 (AT-AO-10 only).
•
Channels 8 and 9 (AT-AO-10 only).