 | DHMDeviceBaseLoadConfig Method (IDHMConfiguration, 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: 7.3.77.25127 8_0_dev ee7cc19, built 2018-08-31 12:03:08 UTC
Syntaxpublic Task LoadConfig(
IDHMConfiguration dhmConfig,
Dictionary<MotorizedDevicesType, float> motorOffset,
IProgress<int> progress
)
public:
virtual Task^ LoadConfig(
IDHMConfiguration^ dhmConfig,
Dictionary<MotorizedDevicesType, float>^ motorOffset,
IProgress<int>^ progress
) sealed
Parameters
- dhmConfig
- Type: LynceeTec.InterfacesIDHMConfiguration
The dhm configuration (from the Measurement Config 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:
TaskImplements
IDHMDeviceLoadConfig(IDHMConfiguration, DictionaryMotorizedDevicesType, Single, IProgressInt32)
ExceptionsException | Condition |
---|
DHMConfigException | Thrown if the device is not initialized or if the sample configuration cannot be loaded. |
See Also