FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Set_ADC_Configuration2 Method
Type: System.IntPtr
The handle associated with the USB device.
Type: System.Int32
The gain and sampling rate associated with the USB device.
Type: System.Byte
The channel number associated with the USB device.


In This Topic
    Set_ADC_Configuration2 Method
    In This Topic
    Warning: The use of this function can affect the factory calibration of the USB device.
    Sets the gain and the sampling rate of the analog-to-digital converter (ADC) stored in the EEPROM of the microcontroller.
    Syntax
    'Declaration
     
    
    Public Function Set_ADC_Configuration2( _
       ByVal DeviceHandle As IntPtr, _
       ByVal ADCConfiguration As Integer, _
       Optional ByVal ChannelNumber As Byte _
    ) As String
    'Usage
     
    
    Dim instance As USB_DLL
    Dim DeviceHandle As IntPtr
    Dim ADCConfiguration As Integer
    Dim ChannelNumber As Byte
    Dim value As String
     
    value = instance.Set_ADC_Configuration2(DeviceHandle, ADCConfiguration, ChannelNumber)
    public string Set_ADC_Configuration2( 
       IntPtr DeviceHandle,
       int ADCConfiguration,
       byte ChannelNumber
    )

    Parameters

    DeviceHandle
    Type: System.IntPtr
    The handle associated with the USB device.
    ADCConfiguration
    Type: System.Int32
    The gain and sampling rate 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 ADCConfiguration is used to configure the gain and the sampling rate of the analog-to-digital converter (ADC) and applies to the conversion rate of the hardware.
    The rate at which data is recorded or collected by software will vary depending on the design of the software and the performance of the hardware that is running it.
    Requirements

    Target Platforms: Windows 10, Windows 11

    Target Framework: .NET Framework 4.8 or later

    See Also