FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Set_Calibration_Year Method
Type: System.IntPtr
The handle associated with the USB device.
Type: System.Int32
The calibration day associated with the USB device.
The value must be between 0 and 255.
Type: System.Byte
The channel number associated with the USB device.


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

    Parameters

    DeviceHandle
    Type: System.IntPtr
    The handle associated with the USB device.
    CalibrationYear
    Type: System.Int32
    The calibration day associated with the USB device.
    The value must be between 0 and 255.
    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 CalibrationYear is a numeric value representing the year when calibration of the USB device was performed.
    It is zero indexed from the year 2000.
    Example
    If the CalibrationYear = 15, then the calibration was performed in the year 2015.
    Requirements

    Target Platforms: Windows 10, Windows 11

    Target Framework: .NET Framework 4.8 or later

    See Also