Esempio n. 1
0
        private void FrmThzMain_StagePositionChanged(OneDExperiment sender, int stageIndex, double stagePositinInMM)
        {
            if (InvokeRequired)
            {
                this.BeginInvoke(new InvokeDelegate(FrmThzMain_StagePositionChanged));
                return;
            }
            else
            {
                foreach (ExperimentStageControl item in experimentStageControls)
                {
                    if (item.StageIndex == stageIndex)
                    {
                        item.StagePositionInMM = stagePositinInMM;
                    }
                }
                dataPlot.UpdatePlot();
                if (sender.RunData.Count > 0)
                {
                    /*oneDSeries.ItemsSource = sender.RunData;
                    Plot.Model.Series.Clear();
                    Plot.Model.Series.Add(oneDSeries);

                    int z = TwoDimensionalScan[1].RunData.Count;*/
                }
            }
        }
Esempio n. 2
0
 private void FrmThzMain_ScanStateChanged(OneDExperiment sender, ExperimentStates scanState)
 {
     //do nothing for now.
 }