A4

The Angle of the Analyzer/Kidney Aparatus

System Name: SmplTwoTheta

Type: Virtual

Brief Description

This allows the kidney to be controlled in a higher level manner with the goal of putting an analyzer at the desired two-theta angle relative to the sample.

Restrictions

Devices which cannot be moved simultaneously with this device:

Other Restrictions:

None

Interactions

Devices which affect this device:

Devices which are affected by this device:

Whenever A4 is moved the kidney is moved to a postion which will put one of the 20
analyzer at the specified 2-theta angle relative to the sample.  The analyzer chosen
to sit at the 2-theta angle is chosen based on the current PTAI mode described below:

    Manual PTAI Mode:
        In this mode (which can be accessed with the ManualPTAI command) whenever A4 is 
        moved the kidney is moved so that the analyzer with the index corresponding 
        to PTAI's value is at the two theta position.
        
        Example:
            A4 is moved to 30 while in manual mode with the PTAI device at position 8.
            
            The kidney will be rotated so that analyzer 8 is sitting at a two-theta 
            position of 30 degrees.
    Auto PTAI Mode:
        In this mode (which can be accessed with the AutoPTAI command) whenever A4 is
        moved, PTAI's value is recalculated.  PTAI's value is choosen such that when
        the corresponding analyzer is moved to the two-theta angle, the kidney's angle
        will be as perpendicular to the wall as possible.  This position takes into
        account any simultaneous movement of the MBTSlide.
    
    BaseSampleTheta is simultaneously moved so that the sample's rotation (A3) ends
    at its last commanded destination.  This is typically a counter-rotation of same
    magnitude as the kidney's rotation.  When the kidney finishes moving
    and is within tolerance of the specified destination, BaseSampleTheta makes one last
    corrective move to account for a descrepency between the kidney's desired destination
    and its actual final angle.
    
    If in UB Matrix mode HKL is recalculated, other wise HKL is assigned the value N/A.