Click or drag to resize
DHMDeviceBaseLoadConfig Method (Int32, DictionaryMotorizedDevicesType, Single, IProgressInt32)
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: 6.5.0.22 DocUpdate 6777a38, built 2017-12-08 13:19:26 UTC
Syntax
public Task LoadConfig(
	int configId,
	Dictionary<MotorizedDevicesType, float> motorOffset,
	IProgress<int> progress
)

Parameters

configId
Type: SystemInt32
The id of the configuration (from the Production Table in the database).
motorOffset
Type: System.Collections.GenericDictionaryMotorizedDevicesType, Single
The offset for each motor. (Used for OPL compensation).
progress
Type: SystemIProgressInt32
Provider for progress update. Can be null.

Return Value

Type: Task

Implements

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