FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Get_ADC_PGA_Setting Method


In This Topic
    Get_ADC_PGA_Setting Method
    In This Topic
    Get_ADC_PGA_Setting is a Function that returns a value representing the ADC PGA (Programmable Gain Amplifier) Setting.
    Syntax
    'Declaration
     
    
    Public Function Get_ADC_PGA_Setting( _
       ByVal DeviceHandle As IntPtr, _
       Optional ByVal ChannelNumber As Byte _
    ) As String
    'Usage
     
    
    Dim instance As USB_DLL
    Dim DeviceHandle As IntPtr
    Dim ChannelNumber As Byte
    Dim value As String
     
    value = instance.Get_ADC_PGA_Setting(DeviceHandle, ChannelNumber)
    public string Get_ADC_PGA_Setting( 
       IntPtr DeviceHandle,
       byte ChannelNumber
    )

    Parameters

    DeviceHandle
    ChannelNumber

    Return Value

    If successful, The Return Value will be:

    For USB100 and USB200:

    Return Value = "Error"; There is no PGA Setting for this Type of Board

    For USB110 and USB210:

    Return Value = (00H); PGA Setting Gain = 1

    Return Value = (01H); PGA Setting Gain = 2

    Return Value = (02H); PGA Setting Gain = 4

    Return Value = (03H); PGA Setting Gain = 8

    Return Value = (04H); PGA Setting Gain = 16

    Return Value = (05H); PGA Setting Gain = 32

    Return Value = (06H); PGA Setting Gain = 64

    Return Value = (07H); PGA Setting Gain = 128

    If Unsuccessful, the Return Value will be:

    Return Value = "Error"; An Error occured when attempting to Get_ADC_PGA_Setting

    Requirements

    Target Platforms: Windows 10, Windows 11

    Target Framework: .NET Framework 4.8 or later

    See Also