User Sets

The User Sets camera feature allows you to save or load camera settings. You can also specify which settings will be loaded at camera startup.

A user set (also called "configuration set") is a group of parameter values. It contains all parameter settings needed to control the camera, with a few exceptions.

Some user sets are preset and read-only. These user sets are also called "factory sets".

In this topic Hide

Using the Feature

What's in a User Set?

Each user set includes the values of all camera parameters, with the following exceptions:

This means that when you load or save a user set, the values of all camera parameters will be loaded or saved, except the parameters listed above.

Loading a User Set

  1. Set the UserSetSelector parameter to one of the available user sets, e.g., UserSet1.
  2. Execute the UserSetLoad command.

Saving a User Set

  1. Set the UserSetSelector parameter to one of the available user sets, e.g., UserSet1.
  2. Execute the UserSetSave command.

Choosing a Startup Set

  1. Set the UserSetDefaultSelectorUserSetDefault parameter to one of the available user sets, e.g., UserSet1.
  2. Power-cycle the camera for the new startup set to become effective.

Available User Sets

Depending on your camera model, the following user sets are available:

Default

The Default user set is a read-only factory set. This is the default startup set on all cameras, except Basler MED ace cameras.

Loading this set configures the camera to provide good camera performance for a variety of applications under average operating conditions.

The Default user set contains the factory default settings of all the camera's parameter values.

High Gain

The HighGain user set is a read-only factory set.

Loading this set increases the gain by 6 dB.

The HighGain user set contains the same parameter values as the Default user set, with the following exceptions:

Auto Functions

The AutoFunctions user set is a read-only factory set.

Loading this user set enables the camera's Exposure Auto and Gain Auto auto functions.

The AutoFunctions user set contains the same parameter values as the Default user set, with the following exceptions:

Color

The Color user set is a read-only factory set.

Loading this user set configures the camera to produce good color images under the most common lighting conditions.

The Color user set contains the same parameter values as the Default user set, with the following exceptions:

Color Raw

The ColorRaw user set is a read-only factory set.

Loading this set disables the color enhancement features.

The ColorRaw user set contains the same parameter values as the Default user set, with the following exceptions:

Light Microscopy

The LightMicroscopy user set is a read-only factory set. This is the default startup set on Basler MED ace cameras.

Loading this set configures the camera to produce good images with light microscopes.

The LightMicroscopy user set contains the same parameter values as the Default user set, with the following exceptions:

User Set 1, User Set 2, and User Set 3

You can use the UserSet1, UserSet2, and UserSet3 user sets to load and save your own camera settings.

Initially, these user sets contain the same parameter values as the Default user set. You can overwrite those values with your own settings to create a user set that is customized for your application.

To restore those settings every time the camera is reset, choose a user set as the startup set.

Specifics

Camera Model Available User Sets
All ace 2 GigE camera models
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
All ace 2 USB 3.0 camera models
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
acA640-90gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA640-90gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA640-120gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA640-120gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA640-121gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA640-300gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA640-300gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA720-290gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA720-290gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA780-75gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA780-75gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA800-200gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA800-200gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1280-60gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1280-60gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA1300-22gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1300-22gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA1300-30gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1300-30gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA1300-60gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1300-60gmNIR
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1300-60gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA1300-75gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1300-75gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1440-73gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1440-73gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1600-20gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1600-20gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA1600-60gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1600-60gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA1920-25gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-25gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA1920-40gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-40gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1920-48gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-48gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1920-50gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-50gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA2000-50gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2000-50gmNIR
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2000-50gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA2040-25gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2040-25gmNIR
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2040-25gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA2040-35gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2040-35gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA2440-20gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2440-20gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA2500-14gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2500-14gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA2500-20gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2500-20gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA2500-20gmMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA2500-20gcMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
  • Light Microscopy
acA3088-16gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA3088-16gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA3800-10gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA3800-10gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA4024-8gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA4024-8gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA4096-11gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA4096-11gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA4112-8gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA4112-8gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA4600-7gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color
acA5472-5gm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA5472-5gc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA640-750um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA640-750uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA640-90um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA640-90uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA640-120um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA640-120uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA720-520um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA720-520uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA800-510um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA800-510uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1300-200um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1300-200uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1300-30um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1300-30uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1440-220um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1440-220uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1600-20um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1600-20uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-25um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-25uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-40um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-40uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1920-40umMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA1920-40ucMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
  • Light Microscopy
acA1920-150um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-150uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1920-155um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA1920-155uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA1920-155umMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA1920-155ucMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
  • Light Microscopy
acA2040-90um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2040-90umNIR
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2040-90uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2000-165um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2000-165umNIR
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2000-165uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2040-55um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2040-55uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA2040-120um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2040-120uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA2440-35um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2440-35uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA2440-35umMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA2440-35ucMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
  • Light Microscopy
acA2440-75um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2440-75uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA2440-75umMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA2440-75ucMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
  • Light Microscopy
acA2500-14um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2500-14uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2500-60um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA2500-60uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA3088-57um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA3088-57uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA3800-14um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA3800-14uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA4024-29um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA4024-29uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA4096-30um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA4096-30uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA4096-30umMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA4096-30ucMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA4096-40um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA4096-40uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA4096-40umMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA4096-40ucMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA4112-20um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA4112-20uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA4112-20umMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA4112-20ucMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA4112-30um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA4112-30uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
acA4112-30umMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA4112-30ucMED
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Light Microscopy
acA4600-10uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA5472-17um
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
acA5472-17uc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
  • High Gain
  • Auto Functions
  • Color Raw
boA4096-93cm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
boA4096-93cc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
boA4112-68cm
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
boA4112-68cc
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
All dart BCON for LVDS camera models
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
All dart BCON for MIPI camera models User Sets feature not supported
All dart USB 3.0 camera models
  • User Set 1
  • User Set 2
  • User Set 3
  • Default
All pulse USB 3.0 camera models
  • User Set 1
  • User Set 2
  • User Set 3
  • Default

Sample Code

// Load the High Gain user set
camera.UserSetSelector.SetValue(UserSetSelector_HighGain);
camera.UserSetLoad.Execute();
// Load the User Set 1 user set
camera.UserSetSelector.SetValue(UserSetSelector_UserSet1);
camera.UserSetLoad.Execute();
// Adjust some camera settings
camera.Width.SetValue(600);
camera.Height.SetValue(400);
camera.ExposureTime.SetValue(3500.0);
// Save the settings in User Set 1
camera.UserSetSelector.SetValue(UserSetSelector_UserSet1);
camera.UserSetSave.Execute();
// Designate User Set 1 as the startup set
camera.UserSetDefault.SetValue(UserSetDefault_UserSet1);
INodeMap& nodemap = camera.GetNodeMap();
// Load the High Gain user set
CEnumerationPtr(nodemap.GetNode("UserSetSelector"))->FromString("HighGain");
CCommandPtr(nodemap.GetNode("UserSetLoad"))->Execute();
// Load the User Set 1 user set
CEnumerationPtr(nodemap.GetNode("UserSetSelector"))->FromString("UserSet1");
CCommandPtr(nodemap.GetNode("UserSetLoad"))->Execute();
// Adjust some camera settings
CIntegerPtr(nodemap.GetNode("Width"))->SetValue(600);
CIntegerPtr(nodemap.GetNode("Height"))->SetValue(400);
CFloatPtr(nodemap.GetNode("ExposureTime"))->SetValue(3500.0);
// Save the settings in User Set 1
CEnumerationPtr(nodemap.GetNode("UserSetSelector"))->FromString("UserSet1");
CCommandPtr(nodemap.GetNode("UserSetSave"))->Execute();
// Designate User Set 1 as the startup set
CEnumerationPtr(nodemap.GetNode("UserSetDefault"))->FromString("UserSet1");
// Load the High Gain user set
camera.Parameters[PLCamera.UserSetSelector].SetValue(PLCamera.UserSetSelector.HighGain);
camera.Parameters[PLCamera.UserSetLoad].Execute();
// Load the User Set 1 user set
camera.Parameters[PLCamera.UserSetSelector].SetValue(PLCamera.UserSetSelector.UserSet1);
camera.Parameters[PLCamera.UserSetLoad].Execute();
// Adjust some camera settings
camera.Parameters[PLCamera.Width].SetValue(600);
camera.Parameters[PLCamera.Height].SetValue(400);
camera.Parameters[PLCamera.ExposureTime].SetValue(3500.0);
// Save the settings in User Set 1
camera.Parameters[PLCamera.UserSetSelector].SetValue(PLCamera.UserSetSelector.UserSet1);
camera.Parameters[PLCamera.UserSetSave].Execute();
// Designate User Set 1 as the startup set
camera.Parameters[PLCamera.UserSetDefault].SetValue(PLCamera.UserSetDefault.UserSet1);
// Load the High Gain user set
Pylon.DeviceFeatureFromString(hdev, "UserSetSelector", "HighGain");
Pylon.DeviceExecuteCommandFeature(hdev, "UserSetLoad");
// Load the User Set 1 user set
Pylon.DeviceFeatureFromString(hdev, "UserSetSelector", "UserSet1");
Pylon.DeviceExecuteCommandFeature(hdev, "UserSetLoad");
// Adjust some camera settings
Pylon.DeviceSetIntegerFeature(hdev, "Width", 600);
Pylon.DeviceSetIntegerFeature(hdev, "Height", 400);
Pylon.DeviceSetFloatFeature(hdev, "ExposureTime", 3500.0);
// Save the settings in User Set 1
Pylon.DeviceFeatureFromString(hdev, "UserSetSelector", "UserSet1");
Pylon.DeviceExecuteCommandFeature(hdev, "UserSetSave");
// Designate User Set 1 as the startup set
Pylon.DeviceFeatureFromString(hdev, "UserSetDefault", "UserSet1");
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Load the High Gain user set */
errRes = PylonDeviceFeatureFromString(hdev, "UserSetSelector", "HighGain");
CHECK(errRes);
errRes = PylonDeviceExecuteCommandFeature(hdev, "UserSetLoad");
CHECK(errRes);
/* Load the User Set 1 user set */
errRes = PylonDeviceFeatureFromString(hdev, "UserSetSelector", "UserSet1");
CHECK(errRes);
errRes = PylonDeviceExecuteCommandFeature(hdev, "UserSetLoad");
CHECK(errRes);
/* Adjust some camera settings */
errRes = PylonDeviceSetIntegerFeature(hdev, "Width", 600);
CHECK(errRes);
errRes = PylonDeviceSetIntegerFeature(hdev, "Height", 400);
CHECK(errRes);
errRes = PylonDeviceSetFloatFeature(hdev, "ExposureTime", 3500.0);
CHECK(errRes);
/* Save the settings in User Set 1 */
errRes = PylonDeviceFeatureFromString(hdev, "UserSetSelector", "UserSet1");
CHECK(errRes);
errRes = PylonDeviceExecuteCommandFeature(hdev, "UserSetSave");
CHECK(errRes);
/* Designate User Set 1 as the startup set */
errRes = PylonDeviceFeatureFromString(hdev, "UserSetDefault", "UserSet1");
CHECK(errRes);

You can also use the pylon Viewer to easily set the parameters.