Example #1
0
        public byte[] MoveIn8(short bar, long barOffset, int numBytesToRead)
        {
            byte[] buf8  = new byte[numBytesToRead];
            int    error = AgVisa32.viMoveIn8(mSession,
                                              bar,
                                              (int)barOffset,
                                              numBytesToRead,
                                              buf8);

            if (error < 0)
            {
                AgVisa32Exception.Throw(error);
            }

            return(buf8);
        }