// Open the Camera by IP. static bool CameraOpen(ref tCamera Camera) { // Open by the address of camera. if ((Pv.CameraOpenByAddr(Camera.S_addr, tAccessFlags.eAccessMaster, out Camera.Handle) == tErr.eErrSuccess)) { Pv.CameraInfoByAddr(Camera.S_addr, ref Camera.Info, ref Camera.Conf); return(true); } else { return(false); } }
// Opens the camera by IP. static bool CameraOpen(ref tCamera Camera) { // Get the camera's IP configuration. if ((Camera.lErr = Pv.CameraIpSettingsGet(Camera.UID, ref Camera.Conf)) == tErr.eErrSuccess) { Camera.sAddr = Camera.Conf.CurrentIpAddress; } // Open the Camera by the address of camera. if ((Pv.CameraOpenByAddr(Camera.sAddr, tAccessFlags.eAccessMaster, out Camera.Handle) == tErr.eErrSuccess)) { return(true); } else { return(false); } }