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


In This Topic
    Get_Gain_Switch Method
    In This Topic
    Get_Gain_Switch is a Function that returns a value representing the Gain Switch of the Device.
    Syntax
    'Declaration
     
    
    Public Function Get_Gain_Switch( _
       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_Gain_Switch(DeviceHandle, ChannelNumber)
    public string Get_Gain_Switch( 
       IntPtr DeviceHandle,
       byte ChannelNumber
    )

    Parameters

    DeviceHandle
    ChannelNumber

    Return Value

    If successful, The Return Value will be:

    Return Value = Number between 0 and 255;

    If Unsuccessful, the Return Value will be:

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

    Requirements

    Target Platforms: Windows 10, Windows 11

    Target Framework: .NET Framework 4.8 or later

    See Also