National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference SCXI_AO_Write
©
National Instruments Corporation 2-319 NI-DAQ FRM for PC Compatibles
SCXI_AO_Write
Format
status = SCXI_AO_Write (SCXIchassisID, moduleSlot, channel, opCode, rangeCode,
voltCurrentData, binaryData, binaryWritten)
Purpose
Sets the DAC channel on the SCXI-1124 module to the specified voltage or current output
value. You can also use this function to write a binary value directly to the DAC channel,
or to translate a voltage or current value to the corresponding binary value.
Parameters
Input
Output
Parameter Discussion
channel is the number of the analog output channels on the module.
Range: 0 to 5.
opCode specifies the type of data to write to the DAC channel. You can also use opCode to
tell
SCXI_AO_Write to translate a voltage or current value and return the corresponding
binary pattern in binaryWritten without writing anything to the module.
0: Write a voltage or current to channel.
1: Write a binary value directly to channel.
Name Type Description
SCXIchassisID i16 chassis ID number
moduleSlot i16 module slot number
channel i16 the DAC channel of the module to write to
opCode i16 type of data
rangeCode i16 the voltage/current range to be used
voltCurrentData f64 voltage or current to be produced at the channel
binaryData i16 binary value to be written to the DAC
Name Type Description
binaryWritten i16 actual binary value written to the DAC