Exemplo n.º 1
0
        public static void Sequence(ImaqdxSessionHandle session, VisionImage[] images)
        {
            Debug.Assert(session != null, "The session parameter cannot be null.");
            Debug.Assert(!session.IsInvalid, "The session parameter must be a valid handle.");
            Debug.Assert(images != null, "The images parameter cannot be null.");

            IntPtr[] imagePtrs = new IntPtr[images.Length];
            for (int i = 0; i < images.Length; i++)
            {
                imagePtrs[i] = images[i]._image;
            }
            int status = NiImaqdxDll.IMAQdxSequence(session, imagePtrs, (uint)imagePtrs.Length);

            ExceptionBuilder.CheckErrorAndThrow(status);
        }