Esempio n. 1
0
        /// <summary>
        /// Setups streaming. After calling this method the application is ready to receive data.
        /// StartAcquisition will instruct the device to actually start sending data.
        /// </summary>
        private void StartStreaming()
        {
            // Create display thread, hook display event
            displayThread = new PvDisplayThread();
            displayThread.OnBufferDisplay += OnBufferDisp;

            // Start threads
            displayThread.Start(pipeline, device.Parameters);
            displayThread.Priority = PvThreadPriority.AboveNormal;

            // Configure acquisition state manager
            acquisitionManager = new PvAcquisitionStateManager(device, stream);

            // Start pipeline
            pipeline.Start();
        }
Esempio n. 2
0
        /// <summary>
        /// Setups streaming. After calling this method the application is ready to receive data.
        /// StartAcquisition will instruct the device to actually start sending data.
        /// </summary>
        private void StartStreaming()
        {
            // Configure status control
            statusControl.Stream        = mStream;
            statusControl.DisplayThread = mDisplayThread;

            // Start threads
            mDisplayThread.Start(mPipeline, mDevice.Parameters);
            mDisplayThread.Priority = PvThreadPriority.AboveNormal;

            // Configure acquisition state manager
            mAcquisitionManager = new PvAcquisitionStateManager(mDevice, mStream);
            mAcquisitionManager.OnAcquisitionStateChanged += new OnAcquisitionStateChanged(OnAcquisitionStateChanged);

            // Start pipeline
            mPipeline.Start();
        }