Example #1
0
        private void StopExposure_Click(object sender, EventArgs e)
        {
            AtikPInvoke.ArtemisStopExposure(handle);
            stopProcessing = true;

            StopExposure.Enabled        = false;
            StartExposureButton.Enabled = true;
        }
Example #2
0
 private void StopFastModeButton_Click(object sender, EventArgs e)
 {
     AtikPInvoke.ArtemisStopExposure(handle);
     StartFastModeButton.Enabled = true;
     StopFastModeButton.Enabled  = false;
     fastMode         = false;
     fastModeNmrImage = 0;
 }
Example #3
0
        private void Disconnect_Click(object sender, EventArgs e)
        {
            checkTemperature = false;
            // Stop cooling otherwise camera will continue
            // to cool when disconnected
            if (StopCooling.Enabled)
            {
                AtikPInvoke.ArtemisCoolerWarmUp(handle);
                StopCooling.Enabled = false;
            }

            AtikPInvoke.ArtemisStopExposure(handle);
            AtikPInvoke.ArtemisDisconnect(handle);
            ConnectedLabel.Text = "Not Connected";
            Temperature.Text    = "No Camera";

            Disconnect.Enabled          = false;
            Connect.Enabled             = true;
            StartCoolingButton.Enabled  = false;
            StartExposureButton.Enabled = false;
            CMOSOptionsBox.Visible      = false;
            FastModeBox.Visible         = false;
            fastModeNmrImage            = 0;
        }