Example #1
0
        static void Main(string[] args)
        {
            tErr err = 0;

            // Initialize the API.
            if ((err = Pv.InitializeNoDiscovery()) == 0)
            {
                System.Net.IPAddress IP = System.Net.IPAddress.Parse(args[0]);
                tCamera Camera          = new tCamera();

                Camera.S_addr = (uint)IP.Address;

                // Open the camera.
                if (CameraOpen(ref Camera))
                {
                    // List some infomation.
                    DisplayInfo(ref Camera);

                    // Unsetup the camera.
                    CameraClose(ref Camera);
                }
                else
                {
                    Console.WriteLine("Failed to open camera.");
                }

                // Uninitialize the API.
                Pv.UnInitialize();
            }
            else
            {
                Console.WriteLine("Failed to initalize.");
            }
        }