National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference WFM_Scale
©
National Instruments Corporation 2-439 NI-DAQ FRM for PC Compatibles
WFM_Scale
Format
status = WFM_Scale (deviceNumber, chan, count, gain, voltArray, binArray)
Purpose
Translates an array of floating-point values that represent voltages into an array of binary
values that produce those voltages when NI-DAQ writes the binary array to one of the board
DACs. This function uses the current analog output configuration settings to perform the
conversions.
Parameters
Input
Output
Parameter Discussion
chan indicates to which analog output channel the binary array is to be assigned.
Range: 0 or 1 for most devices.
0 through 5 for AT-AO-6.
0 through 9 for AT-AO-10.
count is the number of points in your buffer.
Range:1 through 2
32
– 1.
gain is a multiplier applied to the array as NI-DAQ performs the translation. If the result of
multiplying each element in the array by the value of gain produces a voltage that is out of
Name Type Description
deviceNumber i16 assigned by configuration utility
chan i16 analog output channel
count u32 number of points in buffer
gain f64 multiplier applied as the translation is performed
voltArray [f64] input double-precision values
Name Type Description
binArray [i16] binary values converted from the voltages