 | 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.1.17212.0 8_1_dev af417e8, built 2019-10-03 13:47:41 UTC
Syntaxpublic Task LoadConfig(
IDHMConfiguration dhmConfig,
Dictionary<MotorizedDevicesType, float> motorsOffset,
IProgressReporter progress
)
public:
virtual Task^ LoadConfig(
IDHMConfiguration^ dhmConfig,
Dictionary<MotorizedDevicesType, float>^ motorsOffset,
IProgressReporter^ progress
) sealed
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:
TaskImplements
IDHMDeviceLoadConfig(IDHMConfiguration, DictionaryMotorizedDevicesType, Single, IProgressReporter)
ExceptionsException | Condition |
---|
DHMConfigException | Thrown if the device is not initialized or if the sample configuration cannot be loaded. |
See Also