FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Set_Digital_Components Method
Type: System.IntPtr
The handle associated with the USB device.
Type: System.Byte
The switch number associated with the USB device.
Type: System.Byte
The high byte of data to assign the digital component.
Type: System.Byte
The low byte of data to assign the digital component.
Type: System.Byte
The channel number associated with the USB device.


In This Topic
    Set_Digital_Components Method
    In This Topic
    Warning: The use of this function can affect the factory calibration of the USB device.
    Sets the digital components of the USB device.
    Syntax
    'Declaration
     
    
    Public Function Set_Digital_Components( _
       ByVal DeviceHandle As IntPtr, _
       ByVal SwitchNumber As Byte, _
       ByVal HighByte As Byte, _
       ByVal LowByte As Byte, _
       Optional ByVal ChannelNumber As Byte _
    ) As String
    'Usage
     
    
    Dim instance As USB_DLL
    Dim DeviceHandle As IntPtr
    Dim SwitchNumber As Byte
    Dim HighByte As Byte
    Dim LowByte As Byte
    Dim ChannelNumber As Byte
    Dim value As String
     
    value = instance.Set_Digital_Components(DeviceHandle, SwitchNumber, HighByte, LowByte, ChannelNumber)

    Parameters

    DeviceHandle
    Type: System.IntPtr
    The handle associated with the USB device.
    SwitchNumber
    Type: System.Byte
    The switch number associated with the USB device.
    HighByte
    Type: System.Byte
    The high byte of data to assign the digital component.
    LowByte
    Type: System.Byte
    The low byte of data to assign the digital component.
    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 SwitchNumber can be used to select which digital component is going to be assigned a value.
    Requirements

    Target Platforms: Windows 10, Windows 11

    Target Framework: .NET Framework 4.8 or later

    See Also

    Reference

    USB_DLL Class
    USB_DLL Members

    Related

    SwitchNumberCodes
    DigitalComponentCodes