Example #1
0
        // Close the camera.
        static void CameraClose()
        {
            Thread.Sleep(1000);
            // Unsetup event channel.
            Pv.AttrUint32Set(GCamera.Handle, "EventsEnable1", 0);
            Pv.CameraEventCallbackUnRegister(GCamera.Handle, EventDone);

            // Clear the queue.
            Console.WriteLine("Clearing the queue...");
            Pv.CaptureQueueClear(GCamera.Handle);
            // close the camera
            Console.WriteLine("The camera is now closed.");
            Pv.CameraClose(GCamera.Handle);
        }