AOut()

Sets the value of a D/A channel.

Member of the MccBoard class.

Function Prototype

VB .NET

Public Function AOut(ByVal channel As Integer, ByVal range As MccDaq.Range, ByVal dataValue As Short) As MccDaq.ErrorInfo



Public Function AOut(ByVal channel As Integer, ByVal range As MccDaq.Range, ByVal dataValue As System.UInt16) As MccDaq.ErrorInfo




C# .NET

public MccDaq.ErrorInfo AOut(int channel, MccDaq.Range range, ushort dataValue)



public MccDaq.ErrorInfo AOut(int channel, MccDaq.Range range, short dataValue)

Parameters

channel

D/A channel number. The maximum allowable channel depends on which type of D/A board is being used.

range

D/A range code. The output range of the D/A channel can be set to any of those supported by the board. If the D/A board does not have programmable ranges then this parameter is ignored.

dataValue

Value to set D/A to. Must be in the range 0 - N where N is the value 2Resolution – 1 of the converter.

Exception: using 16-bit boards with Basic range is –32,768 to 32,767. Refer to the discussion on 16-bit values using a signed integer data type for more information.

Returns

Notes