/// <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(); }
public void PreferredResetAWG(string awgNumber) { IAWG awg = AwgSetupSteps.GetAWG(awgNumber); _awgSystemGroup.AwgRST(awg); _awgSyncGroup.AwgOperationCompleteQuery(awg); //AwgContextFunctions.SetContextToAwgMode(); //Above sets UI context to AWG mode - this is one of a few places where a PI command can screw up the UI. Not sure if needed }