Пример #1
0
        public static uint ReadRegister(ImaqdxSessionHandle session, ulong offset)
        {
            Debug.Assert(session != null, "The session parameter cannot be null.");
            Debug.Assert(!session.IsInvalid, "The session parameter must be a valid handle.");

            uint value;
            int  status = NiImaqdxDll.IMAQdxReadRegister(session, (uint)offset, out value);

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