FUTEK .NET API Documentation
FUTEK_USB_DLL Assembly / FUTEK_USB_DLL Namespace / USB_DLL Class / Set_Load_Switch Method
Type: System.IntPtr
The handle associated with the USB device.
Type: System.Int32
The simulated load associated with the USB device.
Type: System.Byte
The channel number associated with the USB device.


In This Topic
    Set_Load_Switch Method
    In This Topic
    Warning: The use of this function can affect the factory calibration of the USB device.
    Enables or disables the simulated load applied to the analog-to-digital converter (ADC).
    Syntax
    'Declaration
     
    
    Public Function Set_Load_Switch( _
       ByVal DeviceHandle As IntPtr, _
       ByVal SimulatedLoad As Integer, _
       Optional ByVal ChannelNumber As Byte _
    ) As String
    'Usage
     
    
    Dim instance As USB_DLL
    Dim DeviceHandle As IntPtr
    Dim SimulatedLoad As Integer
    Dim ChannelNumber As Byte
    Dim value As String
     
    value = instance.Set_Load_Switch(DeviceHandle, SimulatedLoad, ChannelNumber)

    Parameters

    DeviceHandle
    Type: System.IntPtr
    The handle associated with the USB device.
    SimulatedLoad
    Type: System.Int32
    The simulated load associated with the USB device.
    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 SimulatedLoad provides a known, electrical, unbalancing of a strain gage bridge similar to a shunt calibration.
    This will be in addition to any input from the sensor, therefore all preloads should be removed prior to enabling the simulated load.
    Frameworks
    Product Versions
    .NET net8.0
    .NET Framework net48
    See Also