National Instruments Welding System 321645c-01 Manual De Usuario

Descargar
Página de 554
Chapter 2
Function Reference — AO_Write
©
 National Instruments Corporation
2-47
NI-DAQ FRM for PC Compatibles
AO_Write
Format
status = AO_Write (deviceNumber, chan, value)
Purpose
Writes a binary value to one of the analog output channels, changing the voltage produced at 
the channel.
Parameters
Input
 
Parameter Discussion
chan is the analog output channel number.
Range:
0 or 1 for Lab and 1200 Series analog output and MIO devices.
0 through 5 for AT-AO-6.
0 through 9 for AT-AO-10.
0 through 47 for the VXI-AO-48XDC.
value is the digital value to be written to the analog output channel. value has several ranges, 
depending on whether the analog output channel is configured for unipolar or bipolar 
operations and on the analog output resolution of the device as shown in the following table.
Using This Function
AO_Write
 
writes value to the DAC in the analog output channel. If you configure the analog 
output channel for immediate update, which is the default setting, the output voltage or 
current changes immediately. Otherwise, the output voltage or current changes on a call to 
AO_Update
 or the application of an external pulse.
Name
Type
Description
deviceNumber
i16
assigned by configuration utility
chan
i16
analog output channel number
value
i16
digital value to be written
Device
Bipolar
Unipolar
Most devices
–2,048 to +2,047
0 to +4,095
AT-MIO-16X, 16-bit E Series devices
–32,768 to +32,767
0 to +65,535