//-------------------------------------------------------------------------
 public f_selected_sodx()
 {
     InitializeComponent();
     _sodx_command             = null;
     UpdatedDataToFormDelegate = new UpdatedDataToFormDelegateHandler(FuncUpdatedDataToForm);
     UpdatedFormToDataDelegate = new UpdatedFormToDataDelegateHandler(FuncUpdatedFormToData);
     _threadProcess            = new cThreadProcess(Enum.GetValues(typeof(eThreadAction)).Length);
     _threadProcess.StartThread(new ThreadStart(ThreadLoop));
 }
Exemplo n.º 2
0
        private void ParametersVerification(ref cSodxCommand sodxCommand)
        {
            #region Roughness/Waviness
            if ((sodxCommand.RoughnessWavinessProcessing.Roughness) || (sodxCommand.RoughnessWavinessProcessing.Waviness))
            {
                Signal.ThicknessPeak1             = false;
                Signal.ThicknessPeak2             = false;
                Signal.ThicknessPeak3             = false;
                sodxCommand.Signal.ThicknessPeak1 = false;
                sodxCommand.Signal.ThicknessPeak2 = false;
                sodxCommand.Signal.ThicknessPeak3 = false;
                sodxCommand.Signal.AltitudePeak1  = false;
                sodxCommand.Signal.AltitudePeak2  = false;
                sodxCommand.Signal.AltitudePeak3  = false;
                sodxCommand.Signal.AltitudePeak4  = false;
                switch (sodxCommand.RoughnessWavinessProcessing.RoughnessSignal)
                {
                case eRoughnessSignal.AltitudePeak1:
                    sodxCommand.Signal.AltitudePeak1 = true;
                    Signal.AltitudePeak2             = false;
                    Signal.AltitudePeak3             = false;
                    Signal.AltitudePeak4             = false;
                    break;

                case eRoughnessSignal.AltitudePeak2:
                    sodxCommand.Signal.AltitudePeak2 = true;
                    Signal.AltitudePeak1             = false;
                    Signal.AltitudePeak3             = false;
                    Signal.AltitudePeak4             = false;

                    break;

                case eRoughnessSignal.AltitudePeak3:
                    sodxCommand.Signal.AltitudePeak3 = true;
                    Signal.AltitudePeak1             = false;
                    Signal.AltitudePeak2             = false;
                    Signal.AltitudePeak4             = false;
                    break;

                case eRoughnessSignal.AltitudePeak4:
                    sodxCommand.Signal.AltitudePeak4 = true;
                    Signal.AltitudePeak1             = false;
                    Signal.AltitudePeak2             = false;
                    Signal.AltitudePeak3             = false;
                    break;
                }
            }
            #endregion
            #region Thickness
            if (Signal.ThicknessPeak1)
            {
                sodxCommand.Signal.AltitudePeak1 = Signal.ThicknessPeak1;
            }
            if ((Signal.ThicknessPeak1) || (Signal.ThicknessPeak2))
            {
                sodxCommand.Signal.AltitudePeak2 = Signal.ThicknessPeak1 || Signal.ThicknessPeak2;
            }
            if ((Signal.ThicknessPeak2) || (Signal.ThicknessPeak3))
            {
                sodxCommand.Signal.AltitudePeak3 = Signal.ThicknessPeak2 || Signal.ThicknessPeak3;
            }
            if (Signal.ThicknessPeak3)
            {
                sodxCommand.Signal.AltitudePeak4 = Signal.ThicknessPeak3;
            }
            #endregion
            #region ThicknessPeak1
            if (sodxCommand.Signal.ThicknessPeak1 == false)
            {
                sodxCommand.FibersDataStatistics.Thickness1.Average            = false;
                sodxCommand.FibersDataStatistics.Thickness1.Min                = false;
                sodxCommand.FibersDataStatistics.Thickness1.Max                = false;
                sodxCommand.FibersDataStatistics.Thickness1.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.Thickness1.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.Thickness1.Average           = false;
                sodxCommand.LineProfileStatistics.Thickness1.Min               = false;
                sodxCommand.LineProfileStatistics.Thickness1.Max               = false;
                sodxCommand.LineProfileStatistics.Thickness1.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.Thickness1.PeakToValley      = false;
            }
            #endregion
            #region ThicknessPeak2
            if (sodxCommand.Signal.ThicknessPeak2 == false)
            {
                sodxCommand.FibersDataStatistics.Thickness2.Average            = false;
                sodxCommand.FibersDataStatistics.Thickness2.Min                = false;
                sodxCommand.FibersDataStatistics.Thickness2.Max                = false;
                sodxCommand.FibersDataStatistics.Thickness2.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.Thickness2.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.Thickness2.Average           = false;
                sodxCommand.LineProfileStatistics.Thickness2.Min               = false;
                sodxCommand.LineProfileStatistics.Thickness2.Max               = false;
                sodxCommand.LineProfileStatistics.Thickness2.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.Thickness2.PeakToValley      = false;
            }
            #endregion
            #region ThicknessPeak3
            if (sodxCommand.Signal.ThicknessPeak3 == false)
            {
                sodxCommand.FibersDataStatistics.Thickness3.Average            = false;
                sodxCommand.FibersDataStatistics.Thickness3.Min                = false;
                sodxCommand.FibersDataStatistics.Thickness3.Max                = false;
                sodxCommand.FibersDataStatistics.Thickness3.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.Thickness3.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.Thickness3.Average           = false;
                sodxCommand.LineProfileStatistics.Thickness3.Min               = false;
                sodxCommand.LineProfileStatistics.Thickness3.Max               = false;
                sodxCommand.LineProfileStatistics.Thickness3.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.Thickness3.PeakToValley      = false;
            }
            #endregion
            #region AltitudePeak1
            if (sodxCommand.Signal.AltitudePeak1 == false)
            {
                sodxCommand.FibersDataStatistics.AltitudePeak1.Average            = false;
                sodxCommand.FibersDataStatistics.AltitudePeak1.Min                = false;
                sodxCommand.FibersDataStatistics.AltitudePeak1.Max                = false;
                sodxCommand.FibersDataStatistics.AltitudePeak1.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.AltitudePeak1.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.AltitudePeak1.Average           = false;
                sodxCommand.LineProfileStatistics.AltitudePeak1.Min               = false;
                sodxCommand.LineProfileStatistics.AltitudePeak1.Max               = false;
                sodxCommand.LineProfileStatistics.AltitudePeak1.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.AltitudePeak1.PeakToValley      = false;
            }
            #endregion
            #region AltitudePeak2
            if (sodxCommand.Signal.AltitudePeak2 == false)
            {
                sodxCommand.FibersDataStatistics.AltitudePeak2.Average            = false;
                sodxCommand.FibersDataStatistics.AltitudePeak2.Min                = false;
                sodxCommand.FibersDataStatistics.AltitudePeak2.Max                = false;
                sodxCommand.FibersDataStatistics.AltitudePeak2.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.AltitudePeak2.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.AltitudePeak2.Average           = false;
                sodxCommand.LineProfileStatistics.AltitudePeak2.Min               = false;
                sodxCommand.LineProfileStatistics.AltitudePeak2.Max               = false;
                sodxCommand.LineProfileStatistics.AltitudePeak2.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.AltitudePeak2.PeakToValley      = false;
            }
            #endregion
            #region AltitudePeak2
            if (sodxCommand.Signal.AltitudePeak3 == false)
            {
                sodxCommand.FibersDataStatistics.AltitudePeak3.Average            = false;
                sodxCommand.FibersDataStatistics.AltitudePeak3.Min                = false;
                sodxCommand.FibersDataStatistics.AltitudePeak3.Max                = false;
                sodxCommand.FibersDataStatistics.AltitudePeak3.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.AltitudePeak3.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.AltitudePeak3.Average           = false;
                sodxCommand.LineProfileStatistics.AltitudePeak3.Min               = false;
                sodxCommand.LineProfileStatistics.AltitudePeak3.Max               = false;
                sodxCommand.LineProfileStatistics.AltitudePeak3.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.AltitudePeak3.PeakToValley      = false;
            }
            #endregion
            #region AltitudePeak4
            if (sodxCommand.Signal.AltitudePeak4 == false)
            {
                sodxCommand.FibersDataStatistics.AltitudePeak4.Average            = false;
                sodxCommand.FibersDataStatistics.AltitudePeak4.Min                = false;
                sodxCommand.FibersDataStatistics.AltitudePeak4.Max                = false;
                sodxCommand.FibersDataStatistics.AltitudePeak4.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.AltitudePeak4.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.AltitudePeak4.Average           = false;
                sodxCommand.LineProfileStatistics.AltitudePeak4.Min               = false;
                sodxCommand.LineProfileStatistics.AltitudePeak4.Max               = false;
                sodxCommand.LineProfileStatistics.AltitudePeak4.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.AltitudePeak4.PeakToValley      = false;
            }
            #endregion
            #region IntensityRawPeak1
            if (sodxCommand.Signal.IntensityRawPeak1 == false)
            {
                sodxCommand.FibersDataStatistics.IntensityRawPeak1.Average            = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak1.Min                = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak1.Max                = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak1.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak1.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak1.Average           = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak1.Min               = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak1.Max               = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak1.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak1.PeakToValley      = false;
            }
            #endregion
            #region IntensityRawPeak2
            if (sodxCommand.Signal.IntensityRawPeak2 == false)
            {
                sodxCommand.FibersDataStatistics.IntensityRawPeak2.Average            = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak2.Min                = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak2.Max                = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak2.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak2.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak2.Average           = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak2.Min               = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak2.Max               = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak2.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak2.PeakToValley      = false;
            }
            #endregion
            #region IntensityPercentagePeak3
            if (sodxCommand.Signal.IntensityRawPeak3 == false)
            {
                sodxCommand.FibersDataStatistics.IntensityRawPeak3.Average            = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak3.Min                = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak3.Max                = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak3.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak3.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak3.Average           = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak3.Min               = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak3.Max               = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak3.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak3.PeakToValley      = false;
            }
            #endregion
            #region IntensityRawPeak4
            if (sodxCommand.Signal.IntensityRawPeak4 == false)
            {
                sodxCommand.FibersDataStatistics.IntensityRawPeak4.Average            = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak4.Min                = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak4.Max                = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak4.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.IntensityRawPeak4.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak4.Average           = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak4.Min               = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak4.Max               = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak4.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.IntensityRawPeak4.PeakToValley      = false;
            }
            #endregion
            #region IntensityLevelPeak1
            if (sodxCommand.Signal.IntensityLevelPeak1 == false)
            {
                sodxCommand.FibersDataStatistics.IntensityLevelPeak1.Average            = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak1.Min                = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak1.Max                = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak1.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak1.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak1.Average           = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak1.Min               = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak1.Max               = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak1.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak1.PeakToValley      = false;
            }
            #endregion
            #region IntensityLevelPeak2
            if (sodxCommand.Signal.IntensityLevelPeak2 == false)
            {
                sodxCommand.FibersDataStatistics.IntensityLevelPeak2.Average            = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak2.Min                = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak2.Max                = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak2.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak2.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak2.Average           = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak2.Min               = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak2.Max               = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak2.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak2.PeakToValley      = false;
            }
            #endregion
            #region IntensityLevelPeak3
            if (sodxCommand.Signal.IntensityLevelPeak3 == false)
            {
                sodxCommand.FibersDataStatistics.IntensityLevelPeak3.Average            = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak3.Min                = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak3.Max                = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak3.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak3.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak3.Average           = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak3.Min               = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak3.Max               = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak3.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak3.PeakToValley      = false;
            }
            #endregion
            #region IntensityLevelPeak4
            if (sodxCommand.Signal.IntensityLevelPeak4 == false)
            {
                sodxCommand.FibersDataStatistics.IntensityLevelPeak4.Average            = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak4.Min                = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak4.Max                = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak4.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.IntensityLevelPeak4.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak4.Average           = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak4.Min               = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak4.Max               = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak4.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.IntensityLevelPeak4.PeakToValley      = false;
            }
            #endregion
            #region Roughness
            if (sodxCommand.RoughnessWavinessProcessing.Roughness == false)
            {
                sodxCommand.FibersDataStatistics.Roughness.Average            = false;
                sodxCommand.FibersDataStatistics.Roughness.Min                = false;
                sodxCommand.FibersDataStatistics.Roughness.Max                = false;
                sodxCommand.FibersDataStatistics.Roughness.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.Roughness.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.Roughness.Average           = false;
                sodxCommand.LineProfileStatistics.Roughness.Min               = false;
                sodxCommand.LineProfileStatistics.Roughness.Max               = false;
                sodxCommand.LineProfileStatistics.Roughness.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.Roughness.PeakToValley      = false;
            }
            #endregion
            #region Waviness
            if (sodxCommand.RoughnessWavinessProcessing.Waviness == false)
            {
                sodxCommand.FibersDataStatistics.Waviness.Average            = false;
                sodxCommand.FibersDataStatistics.Waviness.Min                = false;
                sodxCommand.FibersDataStatistics.Waviness.Max                = false;
                sodxCommand.FibersDataStatistics.Waviness.StandardDeviation  = false;
                sodxCommand.FibersDataStatistics.Waviness.PeakToValley       = false;
                sodxCommand.LineProfileStatistics.Waviness.Average           = false;
                sodxCommand.LineProfileStatistics.Waviness.Min               = false;
                sodxCommand.LineProfileStatistics.Waviness.Max               = false;
                sodxCommand.LineProfileStatistics.Waviness.StandardDeviation = false;
                sodxCommand.LineProfileStatistics.Waviness.PeakToValley      = false;
            }
            #endregion
        }
Exemplo n.º 3
0
        public cSodxCommand GetSodx(bool basicMode)
        {
            try
            {
                cSodxCommand sodxCommand = new cSodxCommand();

                if (basicMode)
                {
                    #region BasicMode_Section
                    #region MeasurementMode
                    sodxCommand.Signal.ThicknessPeak1                 = Signal.ThicknessPeak1;
                    sodxCommand.Signal.ThicknessPeak2                 = false;
                    sodxCommand.Signal.ThicknessPeak3                 = false;
                    sodxCommand.Signal.AltitudePeak1                  = Signal.AltitudePeak1;
                    sodxCommand.Signal.AltitudePeak2                  = Signal.AltitudePeak2;
                    sodxCommand.Signal.AltitudePeak3                  = false;
                    sodxCommand.Signal.AltitudePeak4                  = false;
                    sodxCommand.Signal.IntensityRawPeak1              = false;
                    sodxCommand.Signal.IntensityRawPeak2              = false;
                    sodxCommand.Signal.IntensityRawPeak3              = false;
                    sodxCommand.Signal.IntensityRawPeak4              = false;
                    sodxCommand.Signal.IntensityLevelPeak1            = Signal.IntensityLevelPeak1;
                    sodxCommand.Signal.IntensityLevelPeak2            = Signal.IntensityLevelPeak2;
                    sodxCommand.Signal.IntensityLevelPeak3            = false;
                    sodxCommand.Signal.IntensityLevelPeak4            = false;
                    sodxCommand.Signal.RefractiveIndexTableThickness1 = Signal.RefractiveIndexTableThickness1;
                    sodxCommand.Signal.RefractiveIndexTableThickness2 = Signal.RefractiveIndexTableThickness2;
                    sodxCommand.Signal.RefractiveIndexTableThickness3 = Signal.RefractiveIndexTableThickness3;
                    #endregion
                    #region GlobalSignals
                    sodxCommand.GlobalSignal.SampleCounter  = GlobalSignal.SampleCounter;
                    sodxCommand.GlobalSignal.StartPositionX = GlobalSignal.StartPositionX;
                    sodxCommand.GlobalSignal.StopPositionX  = GlobalSignal.StopPositionX;
                    sodxCommand.GlobalSignal.StartPositionY = GlobalSignal.StartPositionY;
                    sodxCommand.GlobalSignal.StopPositionY  = GlobalSignal.StopPositionY;
                    sodxCommand.GlobalSignal.StartPositionZ = GlobalSignal.StartPositionZ;
                    sodxCommand.GlobalSignal.StopPositionZ  = GlobalSignal.StopPositionZ;
                    sodxCommand.GlobalSignal.StartPositionU = GlobalSignal.StartPositionU;
                    sodxCommand.GlobalSignal.StopPositionU  = GlobalSignal.StopPositionU;
                    sodxCommand.GlobalSignal.StartPositionV = GlobalSignal.StartPositionV;
                    sodxCommand.GlobalSignal.StopPositionV  = GlobalSignal.StopPositionV;
                    #endregion
                    #endregion
                }
                else
                {
                    #region ExpertMode_Section
                    #region MeasurementMode
                    sodxCommand.Signal.ThicknessPeak1                 = Signal.ThicknessPeak1;
                    sodxCommand.Signal.ThicknessPeak2                 = Signal.ThicknessPeak2;
                    sodxCommand.Signal.ThicknessPeak3                 = Signal.ThicknessPeak3;
                    sodxCommand.Signal.AltitudePeak1                  = Signal.AltitudePeak1;
                    sodxCommand.Signal.AltitudePeak2                  = Signal.AltitudePeak2;
                    sodxCommand.Signal.AltitudePeak3                  = Signal.AltitudePeak3;
                    sodxCommand.Signal.AltitudePeak4                  = Signal.AltitudePeak4;
                    sodxCommand.Signal.IntensityRawPeak1              = false;
                    sodxCommand.Signal.IntensityRawPeak2              = false;
                    sodxCommand.Signal.IntensityRawPeak3              = false;
                    sodxCommand.Signal.IntensityRawPeak4              = false;
                    sodxCommand.Signal.IntensityLevelPeak1            = Signal.IntensityLevelPeak1;
                    sodxCommand.Signal.IntensityLevelPeak2            = Signal.IntensityLevelPeak2;
                    sodxCommand.Signal.IntensityLevelPeak3            = Signal.IntensityLevelPeak3;
                    sodxCommand.Signal.IntensityLevelPeak4            = Signal.IntensityLevelPeak4;
                    sodxCommand.Signal.RefractiveIndexTableThickness1 = Signal.RefractiveIndexTableThickness1;
                    sodxCommand.Signal.RefractiveIndexTableThickness2 = Signal.RefractiveIndexTableThickness2;
                    sodxCommand.Signal.RefractiveIndexTableThickness3 = Signal.RefractiveIndexTableThickness3;
                    #endregion
                    #region GlobalSignals
                    sodxCommand.GlobalSignal.SampleCounter    = GlobalSignal.SampleCounter;
                    sodxCommand.GlobalSignal.StartPositionX   = GlobalSignal.StartPositionX;
                    sodxCommand.GlobalSignal.StopPositionX    = GlobalSignal.StopPositionX;
                    sodxCommand.GlobalSignal.StartPositionY   = GlobalSignal.StartPositionY;
                    sodxCommand.GlobalSignal.StopPositionY    = GlobalSignal.StopPositionY;
                    sodxCommand.GlobalSignal.StartPositionZ   = GlobalSignal.StartPositionZ;
                    sodxCommand.GlobalSignal.StopPositionZ    = GlobalSignal.StopPositionZ;
                    sodxCommand.GlobalSignal.StartPositionU   = GlobalSignal.StartPositionU;
                    sodxCommand.GlobalSignal.StopPositionU    = GlobalSignal.StopPositionU;
                    sodxCommand.GlobalSignal.StartPositionV   = GlobalSignal.StartPositionV;
                    sodxCommand.GlobalSignal.StopPositionV    = GlobalSignal.StopPositionV;
                    sodxCommand.GlobalSignal.TriggerLostCount = GlobalSignal.TriggerLostCount;
                    sodxCommand.GlobalSignal.ExposureFlags    = GlobalSignal.ExposureFlags;
                    sodxCommand.GlobalSignal.StartTime        = GlobalSignal.StartTime;
                    #endregion
                    #endregion
                }
                ParametersVerification(ref sodxCommand);
                return(sodxCommand);
            }
            catch
            {
                return(null);
            }
        }