コード例 #1
0
        /// <summary>
        /// Common work<para>
        /// Sends a *RST to AWG</para><para>
        /// Does an unnecessary *OPC?</para><para>
        /// Does a *CLS which clears the error queue</para><para>
        /// Resets the UI context.? Is this the proper place?</para>
        /// </summary>
        /// <param name="awg"></param>
        void PutAwgIntoKnownState(IAWG awg)
        {
            // Put into a known state
            _awgSystemGroup.AwgRST(awg);

            // While not necessary for an implied *RST, do a *OPC? and test for health
            _awgSyncGroup.AwgOperationCompleteQuery(awg);

            // Clear out any errors in this AWG's error queue.
            _awgStatusGroup.AwgClearErrorQueue(awg);

            // Set UI context to top level
            AwgContextFunctions.SetContextToTopLevel();
        }
コード例 #2
0
        public void ClearTheErrorQueueOnAnAWG(string awgNumber)
        {
            IAWG awg = AwgSetupSteps.GetAWG(awgNumber);

            _awgStatusGroup.AwgClearErrorQueue(awg);
        }