Bruxton Logo

SIDXGainSet

Syntax

C/C++

int SIDXGainSet(void* camera, int index);

Visual Basic

Function SIDXGainSet (ByVal camera As Long, ByVal index As Long) As Long

IGOR Pro

SIDXGainSet camera, index, status

ITT IDL

status = SIDXGainSet(camera, index)

Parameters

camera
The open camera handle created by either SIDXSettingsOpenCamera or SIDXCameraOpen or SIDXDialogCameraSelector or SIDXSettingsRestoreCamera.
index
A zero based gain index.

The return value is non-zero if the function failed, zero if it succeeded.

Discussion

Choose a gain setting with the index of the gain. The gain index must be in the range zero to the gain count minus one. Use SIDXGainGetCount to get the gain count.