Esempio n. 1
0
        public static ImaqdxSessionHandle Open(string cameraName, ImaqdxCameraControlMode mode)
        {
            Debug.Assert(cameraName != null, "The cameraName parameter cannot be null.");

            ImaqdxSessionHandle session;
            int status = NiImaqdxDll.IMAQdxOpenCamera(cameraName, mode, out session);

            ExceptionBuilder.CheckErrorAndThrow(status);
            return(session);
        }