Ef01-20

Energies Corresponding to Analyzer Mounted in the Kidney

System Name: Ef01-20

Type: Virtual

Brief Description

Each device controls the energy of one of the analyzers mounted in the kidney. When moved the underlying analyzer's scattering angle is moved accordingly.

Restrictions

Devices which cannot be moved simultaneously with this device:

Other Restrictions:

Interactions

Devices which affect this device:

Devices which are affected by this device:

Whenever an EfNN is moved:

    The correspond AnalyzerThetaNN device's value is calculated using the following formula:
        AnalyzerThetaNN = arcsin(sqrt(81.81/EfNN)/(2*d-spacing))
    
    A5's value is recalculated by taking the average of all analyzer's positions and
    comparing this to the last commanded position for A5 (directly or indirectly via 
    Ef, Ef01-20, A6, HKL).  If the average position is within tolerance of the commanded
    position then the average is reported as the value, otherwise the value is reported as
    N/A.
    
    A6's value is recalculated from A5 using the following formula:
        A6 = 2 * A5 
        A6 = N/A if A5 is N/A.
    
    Ef's value is recalculated from A5 using the following formula:
        Ef = 81.81 / ((2 * d-spacing * sin(A5)) ^ 2) or
        Ef = N/A if A5 is N/A