Click or drag to resize

DHMDeviceBaseLoadConfig Method (IDHMConfiguration, DictionaryMotorizedDevicesType, Single, IProgressReporter)

Loads a configuration and sets the hardware parameters accordingly. Can only be called after initialization is done. Asynchronous function.

Namespace:  LynceeTec.DHM
Assembly:  LynceeTec.DHM (in LynceeTec.DHM.dll) Version: 8.2.31040.0 8_2_dev 785396c, built 2020-09-23 07:47:08 UTC
Syntax
public Task LoadConfig(
	IDHMConfiguration dhmConfig,
	Dictionary<MotorizedDevicesType, float> motorsOffset,
	IProgressReporter progress
)

Parameters

dhmConfig
Type: LynceeTec.InterfacesIDHMConfiguration
The dhm configuration (from the Measurement Config table in the database)
motorsOffset
Type: System.Collections.GenericDictionaryMotorizedDevicesType, Single
The offset for each motor. (Used for OPL compensation).
progress
Type: LynceeTec.InterfacesIProgressReporter
Provider for progress update. Can be null.

Return Value

Type: Task

Implements

IDHMDeviceLoadConfig(IDHMConfiguration, DictionaryMotorizedDevicesType, Single, IProgressReporter)
Exceptions
ExceptionCondition
DHMConfigExceptionThrown if the device is not initialized or if the sample configuration cannot be loaded.
See Also