After looking over the Basler User Manual for this camera, I cannot find any commands that should be resetting the ADC gain value for the camera. The commands in the camera file set the mode (edge, programmed, level, etc.) and the exposure time when in programmed mode, however features like gain and offset were not implemented. There also should not be any commands that manipulate the on-camera memory (user set, factory set, etc.).
I don't see right away why the gain values would be changing, unless changing the camera mode also reset the gain. This is not typical and I don't see any mention of it in the camera user manual.
In addition to the Basler camera control utility, try using the imgSerialRead and imgSerialWrite commands to communicate with the camera
manually. Make a change to the gain, and do queries before and after a grab to see if it has changed back.
> You can have access to the serial interface
> through imgSessionSerialWrite and
> imgSessionSerialRead in IMAQ.dll. For LabVIEW,
> you can find these low-level VIs in
> \vi.lib\vision\driver\imaqll.llb.
Regards,
Brent R.
Applications Engineer
National Instruments