Exemplo n.º 1
0
        public void readCameraValues()
        {
            frmImaging i = new frmImaging();

            imagingCamExposureDurationMins = Convert.ToInt16(i.numMins.Value);
            imagingCamExposureDurationSecs = Convert.ToInt16(i.numSecs.Value);
            imagingCamExposureDurationMs   = Convert.ToInt16(i.numMs.Value);
            imagingCamBinning          = Convert.ToInt16(i.numBinning.Value);
            imagingCamAutoRepeat       = i.chkAutoRepeat.Checked;
            imagingCamCoolerOn         = i.chkCoolerOn.Checked;
            imagingCamCoolerTargetTemp = Convert.ToInt16(i.numTargetTemp.Value);

            if (i.rbFlatFrame.Checked)
            {
                imagingCamFrameType = "Flat";
            }
            else if (i.rbDarkFrame.Checked)
            {
                imagingCamFrameType = "Dark";
            }
            else if (i.rbBiasFrame.Checked)
            {
                imagingCamFrameType = "Bias";
            }
            else
            {
                imagingCamFrameType = "Light";
            }
        }
Exemplo n.º 2
0
        public void setCameraValues()
        {
            frmImaging i = new frmImaging();

            ImagingCam.BinX = ImagingCam.BinY = (short)imagingCamBinning;
            ImagingCam.NumX = ImagingCam.CameraXSize;
            ImagingCam.NumY = ImagingCam.CameraYSize;
            if (imagingCamCoolerOn)
            {
                ImagingCam.CoolerOn          = true;
                ImagingCam.SetCCDTemperature = (int)i.numTargetTemp.Value;
            }
        }
Exemplo n.º 3
0
 public clsForms(ref frmMain main, ref frmImaging imaging, ref frmConfig config, ref frmGuiding guiding, ref frmImageRun imagerun)
 {
     MainForm = main; ImagingForm = imaging; ConfigForm = config; GuidingForm = guiding; ImageRunForm = imagerun;
 }