コード例 #1
0
ファイル: Controller.cs プロジェクト: bharath87/EDMSuite
        /* This is a convenient way to add a block, if you're using standard demodulation
         * configurations. This method is thread-safe.
         */
        //public void AddBlock(Block b, string[] demodulationConfigs)
        //{
        //    log("Adding block " + b.Config.Settings["cluster"] + " - " + b.Config.Settings["clusterIndex"]);
        //    BlockDemodulator blockDemodulator = new BlockDemodulator();
        //    foreach (string dcName in demodulationConfigs)
        //    {
        //        DemodulationConfig dc = DemodulationConfig.GetStandardDemodulationConfig(dcName, b);
        //        //DemodulatedBlock dBlock = blockDemodulator.DemodulateBlockNL(b, dc);
        //        DemodulatedBlock dBlock = blockDemodulator.DemodulateBlock(b, dc);
        //        blockStore.AddDBlock(dBlock);
        //    }
        //}

        public void AddBlock(Block b)
        {
            BlockDemodulator blockDemodulator = new BlockDemodulator();

            log("Demodulating block " + b.Config.Settings["cluster"] + " - " + b.Config.Settings["clusterIndex"]);
            DemodulatedBlock db = blockDemodulator.DemodulateBlock(b, DemodulationConfig.MakeStandardDemodulationConfig());

            blockStore.AddDBlock(db);
            TimeSpan ts2 = DateTime.Now.Subtract(threadManager.GetCurrentAnalysisStart());

            log("Added block " + b.Config.Settings["cluster"] + " - " + b.Config.Settings["clusterIndex"] + " after " + ts2.TotalSeconds.ToString() + " seconds.");
        }
コード例 #2
0
        /* This is a convenient way to add a block, if you're using standard demodulation
         * configurations. This method is thread-safe.
         */
        public void AddBlock(Block b, string[] demodulationConfigs)
        {
            log("Adding block " + b.Config.Settings["cluster"] + " - " + b.Config.Settings["clusterIndex"]);
            BlockDemodulator blockDemodulator = new BlockDemodulator();

            foreach (string dcName in demodulationConfigs)
            {
                DemodulationConfig dc = DemodulationConfig.GetStandardDemodulationConfig(dcName, b);
                //DemodulatedBlock dBlock = blockDemodulator.DemodulateBlockNL(b, dc);
                DemodulatedBlock dBlock = blockDemodulator.DemodulateBlock(b, dc);
                blockStore.AddDBlock(dBlock);
            }
        }
コード例 #3
0
ファイル: Controller.cs プロジェクト: JaylinLee/EDMSuite
        public void AcquisitionFinished(Block b)
        {
            this.Block = b;
            mainWindow.AppendToTextArea("Demodulating block.");
            // "cgate11Fixed" for Ar, "centreFixedKr" for Kr
            DemodulationConfig dc = DemodulationConfig.GetStandardDemodulationConfig("wgate5", b); // was cgate11fixed

            DBlock = blockDemodulator.DemodulateBlock(b, dc);                                      // blockDemodulator.DemodulateBlock(b, dc);
            liveViewer.AddDBlock(DBlock);

            //config.g
            haveBlock = true;
            appState  = AppState.stopped;
            mainWindow.AppendToTextArea("Acquisition finished");
            SetStatusReady();
        }