FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Set_Calibration_Register Method
Type: System.IntPtr
The handle associated with the USB device.
Type: System.Byte
The calibration register associated with the USB device.
The value must be between 0 and 19.
Type: System.Byte
The high byte of data to assign the calibration register.
Type: System.Byte
The low byte of data to assign the calibration register.
Type: System.Byte
The channel number associated with the USB device.


In This Topic
    Set_Calibration_Register Method
    In This Topic
    Warning: The use of this function can affect the factory calibration of the USB device.
    Sets the calibration registers stored in the EEPROM of the microcontroller including: Resistance, Voltage, Current and Temperature.
    Syntax
    'Declaration
     
    
    Public Function Set_Calibration_Register( _
       ByVal DeviceHandle As IntPtr, _
       ByVal Register 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 Register As Byte
    Dim HighByte As Byte
    Dim LowByte As Byte
    Dim ChannelNumber As Byte
    Dim value As String
     
    value = instance.Set_Calibration_Register(DeviceHandle, Register, HighByte, LowByte, ChannelNumber)
    public string Set_Calibration_Register( 
       IntPtr DeviceHandle,
       byte Register,
       byte HighByte,
       byte LowByte,
       byte ChannelNumber
    )

    Parameters

    DeviceHandle
    Type: System.IntPtr
    The handle associated with the USB device.
    Register
    Type: System.Byte
    The calibration register associated with the USB device.
    The value must be between 0 and 19.
    HighByte
    Type: System.Byte
    The high byte of data to assign the calibration register.
    LowByte
    Type: System.Byte
    The low byte of data to assign the calibration register.
    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 HighByte and LowByte are used to pass data to the Register. Only the following calibration registers require data to be passed:
    Register 0x07: 50% Load + Multimeter Reading (Voltage in Volts)
    Register 0x0A: 50% load + Multimeter Reading (Current in mA)
    Register 0x0C: Temperatures + 00.00 (˚C)
    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

    CalibrationRegisterCodes