FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Set_Average_Setting Method
Type: System.IntPtr
The handle associated with the USB device.
Type: System.Int32
The average setting associated with the USB device.
Type: System.Byte
The channel number associated with the USB device.


In This Topic
    Set_Average_Setting Method
    In This Topic
    Warning: The use of this function can affect the factory calibration of the USB device.
    Enables or disables the average applied to the analog-to-digital converter (ADC) values.
    Syntax
    'Declaration
     
    
    Public Function Set_Average_Setting( _
       ByVal DeviceHandle As IntPtr, _
       ByVal AverageSetting As Integer, _
       Optional ByVal ChannelNumber As Byte _
    ) As String
    'Usage
     
    
    Dim instance As USB_DLL
    Dim DeviceHandle As IntPtr
    Dim AverageSetting As Integer
    Dim ChannelNumber As Byte
    Dim value As String
     
    value = instance.Set_Average_Setting(DeviceHandle, AverageSetting, ChannelNumber)
    public string Set_Average_Setting( 
       IntPtr DeviceHandle,
       int AverageSetting,
       byte ChannelNumber
    )

    Parameters

    DeviceHandle
    Type: System.IntPtr
    The handle associated with the USB device.
    AverageSetting
    Type: System.Int32
    The average setting associated with the USB device.
    ChannelNumber
    Type: System.Byte
    The channel number associated with the USB device.

    Return Value

    Type: System.String
    A value equal to 0; otherwise Error
    Remarks
    The AverageSetting can be used to disable averaging or to enable a moving or mean average.
    The number of sample that are used in the average can be selected from 2 to 256 samples.
    Requirements

    Target Platforms: Windows 10, Windows 11

    Target Framework: .NET Framework 4.8 or later

    See Also