Esempio n. 1
0
    def __init__(self, device):
        super().__init__(device)
        self.properties = [
            'StatusIntlk-Mon', 'IntlkWarn-Mon',
            'PwrState-Sel', 'PwrState-Sts',
            'Current-SP', 'Current-Mon',
            'Connected-Mon']
        for ppty in self.properties:
            self._pvs[ppty] = _PV(
                _PVName(device).substitute(prefix=VACA_PREFIX, propty=ppty),
                connection_timeout=TIMEOUT_CONN)

        self.intlkwarn_bit = _PSE.LINAC_INTLCK_WARN.index('LoadI Over Thrs')

        splims = PSSearch.conv_psname_2_splims(device)
        self.test_current = splims['TSTV']
        self.test_tol = splims['TSTR']
Esempio n. 2
0
    def __init__(self, device):
        """Init."""
        super().__init__(device)
        self.properties = [
            'PSAmpOverCurrFlagL-Sts', 'PSAmpOverTempFlagL-Sts',
            'PSAmpOverCurrFlagR-Sts', 'PSAmpOverTempFlagR-Sts',
            'PwrState-Sel', 'PwrState-Sts',
            'CtrlLoop-Sel', 'CtrlLoop-Sts',
            'Current-SP', 'Current-RB',
            'TestOpenLoopTriang-Sel', 'TestOpenLoopTriang-Sts',
            'TestOpenLoopSquare-Sel', 'TestOpenLoopSquare-Sts',
            'TestClosedLoopSquare-Sel', 'TestClosedLoopSquare-Sts',
        ]
        for ppty in self.properties:
            self._pvs[ppty] = _PV(
                _PVName(device).substitute(prefix=VACA_PREFIX, propty=ppty),
                connection_timeout=TIMEOUT_CONN)

        splims = PSSearch.conv_psname_2_splims(device)
        self.test_current = splims['TSTV']
        self.test_tol = splims['TSTR']
Esempio n. 3
0
    def __init__(self, device):
        """Init."""
        super().__init__(device)

        self.properties = [
            'Reset-Cmd',
            'Intlk1-Mon', 'Intlk2-Mon', 'Intlk3-Mon', 'Intlk4-Mon',
            'Intlk5-Mon', 'Intlk6-Mon', 'Intlk7-Mon',
            'PwrState-Sel', 'PwrState-Sts',
            'Pulse-Sel', 'Pulse-Sts',
            'Voltage-SP', 'Voltage-RB', 'Voltage-Mon']
        if 'Kckr' in self.device:
            self.properties.append('Intlk8-Mon')

        for ppty in self.properties:
            self._pvs[ppty] = _PV(
                _PVName(device).substitute(prefix=VACA_PREFIX, propty=ppty),
                connection_timeout=TIMEOUT_CONN)

        splims = PSSearch.conv_psname_2_splims(device)
        self.test_voltage = splims['TSTV']
        self.test_tol = splims['TSTR']
Esempio n. 4
0
    def __init__(self, device):
        """Init."""
        super().__init__(device)

        self.properties = [
            'Reset-Cmd',
            'OpMode-Sel', 'OpMode-Sts',
            'PwrState-Sel', 'PwrState-Sts',
            'CtrlLoop-Sel', 'CtrlLoop-Sts',
            'Current-SP', 'CurrentRef-Mon', 'Current-Mon']
        self._intlk_pvs = get_ps_interlocks(psname=self.device)
        self.properties.extend(self._intlk_pvs)

        if PSSearch.conv_psname_2_psmodel(self.device) == 'FBP':
            self.properties.extend(['SOFBMode-Sel', 'SOFBMode-Sts'])

        for ppty in self.properties:
            self._pvs[ppty] = _PV(
                _PVName(device).substitute(prefix=VACA_PREFIX, propty=ppty),
                connection_timeout=TIMEOUT_CONN)

        splims = PSSearch.conv_psname_2_splims(device)
        self.test_current = splims['TSTV']
        self.test_tol = splims['TSTR']