Ejemplo n.º 1
0
        public uint SetCameraEMGain(int gain)
        {
            if (!SystemInitialized)
            {
                return(NOT_INITIALIZED);
            }

            uint uiErrorCode;

            int lowGain  = 0;
            int highGain = 0;

            MyCamera.GetEMGainRange(ref lowGain, ref highGain);
            if (gain > highGain)
            {
                gain = highGain;
            }
            if (gain < lowGain)
            {
                gain = lowGain;
            }

            uiErrorCode = MyCamera.SetEMCCDGain(gain);

            return(uiErrorCode);
        }