FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Set_Decimal_Point Method
Type: System.IntPtr
The handle associated with the USB device.
Type: System.Int32
The decimal point format associated with the USB device.
The value must be between 0 and 5.
Type: System.Byte
The channel number associated with the USB device.


In This Topic
    Set_Decimal_Point Method
    In This Topic
    Warning: The use of this function can affect the factory calibration of the USB device.
    Sets the decimal point format stored in the EEPROM of the microcontroller.
    Syntax
    'Declaration
     
    
    Public Function Set_Decimal_Point( _
       ByVal DeviceHandle As IntPtr, _
       ByVal DecimalPoint As Integer, _
       Optional ByVal ChannelNumber As Byte _
    ) As String
    'Usage
     
    
    Dim instance As USB_DLL
    Dim DeviceHandle As IntPtr
    Dim DecimalPoint As Integer
    Dim ChannelNumber As Byte
    Dim value As String
     
    value = instance.Set_Decimal_Point(DeviceHandle, DecimalPoint, ChannelNumber)
    public string Set_Decimal_Point( 
       IntPtr DeviceHandle,
       int DecimalPoint,
       byte ChannelNumber
    )

    Parameters

    DeviceHandle
    Type: System.IntPtr
    The handle associated with the USB device.
    DecimalPoint
    Type: System.Int32
    The decimal point format associated with the USB device.
    The value must be between 0 and 5.
    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 numeric values assigned by Set_Load_of_Loading_Point and returned by Get_Load_of_Loading_Point should be formatted using DecimalPoint.
    Example
    Since only whole numbers can be stored in the EEPROM of the microcontroller, DecimalPoint should be used to format a numeric value using the following expression: DecimalValue = NumericValue / 10DecimalPoint
    If the NumericValue = 1000 and the DecimalPoint = 2, then the DecimalValue = 1000 / 102 = 1000 / 100 = 10.00
    Requirements

    Target Platforms: Windows 10, Windows 11

    Target Framework: .NET Framework 4.8 or later

    See Also