<filename>nicos_sinq/amor/setups/virtual_source.py
description = 'Virtual source for the Selene guide'

devices = dict(
    dvv = device('nicos_sinq.amor.devices.virtual_source.NumberSwitcher',
        description = 'Diaphragm virtual Source Vertical',
        mapping = {
            1: 0.,
            2: 45.,
            3: 90.,
            4: 135.,
            5: 180.,
            6: 225,
            7: 270,
            8: -45.
        },
        precision=0.1,
        moveable = 'dvv_motor',
        fmtstr = '%d',
    ),
    dvv_motor = device('nicos_ess.devices.epics.motor.EpicsMotor',
        epicstimeout = 3.0,
        description = 'Diaphragm virtual Source Vertical motor',
        motorpv = 'SQ:AMOR:motd:dvv',
        errormsgpv = 'SQ:AMOR:motd:dvv-MsgTxt',
        precision=0.1,
    ),
    dvh = device('nicos_sinq.amor.devices.virtual_source.NumberSwitcher',
        description = 'Diaphragm virtual Source Horiziontal',
        mapping = {
            1: 0.,
            2: 45.,
            3: 90.,
            4: 135.,
            5: 180.,
            6: 225,
            7: 270,
            8: -45.
        },
        fmtstr = '%d',
        moveable = 'dvh_motor',
        precision=0.1,
    ),
    dvh_motor = device('nicos_ess.devices.epics.motor.EpicsMotor',
        epicstimeout = 3.0,
        description = 'Diaphragm virtual Source Horiziontal motor',
        motorpv = 'SQ:AMOR:motd:dvh',
        errormsgpv = 'SQ:AMOR:motd:dvh-MsgTxt',
        precision = 0.1,
    ),
    dmf = device('nicos_sinq.amor.devices.virtual_source.NumberSwitcher',
        description = 'Diaphragm virtual Source Vertical',
        mapping = {
            1: 288.,
            2: 0.,
            3: 72,
            4: 144,
            5: 216.
        },
        fmtstr = '%d',
        precision=0.1,
        moveable = 'dmf_motor',
    ),
    dmf_motor = device('nicos_ess.devices.epics.motor.EpicsMotor',
        epicstimeout = 3.0,
        description = 'Diaphragm virtual Source Vertical motor',
        motorpv = 'SQ:AMOR:motd:dmf',
        errormsgpv = 'SQ:AMOR:motd:dmf-MsgTxt',
        precision=0.1,
    ),
)

<filename>nicos_sinq/amor/setups/virtual_source.py
description = 'Virtual source for the Selene guide'

devices = dict(
    dvv = device('nicos_sinq.amor.devices.virtual_source.NumberSwitcher',
        description = 'Diaphragm virtual Source Vertical',
        mapping = {
            1: 0.,
            2: 45.,
            3: 90.,
            4: 135.,
            5: 180.,
            6: 225,
            7: 270,
            8: -45.
        },
        precision=0.1,
        moveable = 'dvv_motor',
        fmtstr = '%d',
    ),
    dvv_motor = device('nicos_ess.devices.epics.motor.EpicsMotor',
        epicstimeout = 3.0,
        description = 'Diaphragm virtual Source Vertical motor',
        motorpv = 'SQ:AMOR:motd:dvv',
        errormsgpv = 'SQ:AMOR:motd:dvv-MsgTxt',
        precision=0.1,
    ),
    dvh = device('nicos_sinq.amor.devices.virtual_source.NumberSwitcher',
        description = 'Diaphragm virtual Source Horiziontal',
        mapping = {
            1: 0.,
            2: 45.,
            3: 90.,
            4: 135.,
            5: 180.,
            6: 225,
            7: 270,
            8: -45.
        },
        fmtstr = '%d',
        moveable = 'dvh_motor',
        precision=0.1,
    ),
    dvh_motor = device('nicos_ess.devices.epics.motor.EpicsMotor',
        epicstimeout = 3.0,
        description = 'Diaphragm virtual Source Horiziontal motor',
        motorpv = 'SQ:AMOR:motd:dvh',
        errormsgpv = 'SQ:AMOR:motd:dvh-MsgTxt',
        precision = 0.1,
    ),
    dmf = device('nicos_sinq.amor.devices.virtual_source.NumberSwitcher',
        description = 'Diaphragm virtual Source Vertical',
        mapping = {
            1: 288.,
            2: 0.,
            3: 72,
            4: 144,
            5: 216.
        },
        fmtstr = '%d',
        precision=0.1,
        moveable = 'dmf_motor',
    ),
    dmf_motor = device('nicos_ess.devices.epics.motor.EpicsMotor',
        epicstimeout = 3.0,
        description = 'Diaphragm virtual Source Vertical motor',
        motorpv = 'SQ:AMOR:motd:dmf',
        errormsgpv = 'SQ:AMOR:motd:dmf-MsgTxt',
        precision=0.1,
    ),
)
