Ejemplo n.º 1
0
        /// <summary>
        /// Perform an output
        /// </summary>
        /// <param name="BAR"></param>
        /// <param name="offset"></param>
        /// <param name="value"></param>
        public void Out32(short BAR, int offset, Int32 value)
        {
            if (IsSimulated)
            {
                // For now, trivial implementation of simulation ... simply cache the value
                mSimulatedRegisters[offset] = value;
                return;
            }

            CheckStatus(AgVisa32.viOut32(mSession, BAR, offset, value));
        }
Ejemplo n.º 2
0
        public void Out32(short bar, long barOffset, Int32 writeValue)
        {
            if (IsSimulated)
            {
                // For now, trivial implementation of simulation ... simply cache the value
                mSimulatedRegisters[(int)barOffset] = writeValue;
                return;
            }

            int error = AgVisa32.viOut32(mSession, bar, (int)barOffset, writeValue);

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