예제 #1
0
        public static void WriteMemory(ImaqdxSessionHandle session, ulong offset, byte[] values)
        {
            Debug.Assert(session != null, "The session parameter cannot be null.");
            Debug.Assert(!session.IsInvalid, "The session parameter must be a valid handle.");
            Debug.Assert(values != null, "The values parameter cannot be null.");

            int status = NiImaqdxDll.IMAQdxWriteMemory(session, (uint)offset, values, (uint)values.Length);

            ExceptionBuilder.CheckErrorAndThrow(status);
        }