Skip to Main Content
コグネックスサポートハブ
Logo

How to Save and Load Configuration Files Using the SDK (SetConfig/GetConfig)

SetConfig/GetConfig Usage Guide.

2026/02/09

Details

As many of you know, .cfg files were used as configuration files in older models. Currently, configuration files are packaged as .dmb files, which are compressed archives containing .cfg, .cdc, and other related files. (: cfg + cdc + etc = dmb)

Therefore, when using SetConfig and GetConfig, it is recommended to use both functions together to properly save and load configurations.
Recently, the DataMan Setup Tool only saves .dmb files, which has caused confusion for many customers.

Below is a sample implementation in code.

**** Important Note:

The SetConfig and GetConfig functions operate specifically with internal parameters stored in .cfg files. Please ensure that these functions are used accordingly.

How to Save and Load Configuration Files Using the SDK_image-1
How to Save and Load Configuration Files Using the SDK_image-2