private void RunExport3()
        {
            HTuple WindowID = hWindowControlWPF1.HalconID;

            HDevExp.RunCAM3(WindowID);

            this.Dispatcher.Invoke(new Action(() => {
                labelStatus.Content  = "Finished.";
                buttonCAM1.IsEnabled = true;
            }));
        }