Example #1
0
    def __init__(self, moduleRow):
        widgets = [
            ValueGB(moduleRow, 'pcmPower1', '24V-UPS', 2, '{:.3f}'),
            ValueGB(moduleRow, 'pcmPower2', '24V-AUX', 2, '{:.3f}')
        ]

        ValuesRow.__init__(self, widgets, title='Inputs')
    def __init__(self, moduleRow, name):
        widgets = [
            ValueGB(moduleRow, f'{name}wheel', 'Position', 0, '{:d}'),
            ValueGB(moduleRow, f'{name}wheel', 'Hole', 1, '{:s}')
        ]

        ValuesRow.__init__(self, widgets, title=f'{name.capitalize()} Wheel')
        self.grid.setContentsMargins(1, 6, 1, 1)
Example #3
0
    def __init__(self, moduleRow, shId):
        widgets = [
            ValueGB(moduleRow, shId, 'open', 0, '{:d}'),
            ValueGB(moduleRow, shId, 'close', 1, '{:d}'),
            ValueGB(moduleRow, shId, 'error', 2, '{:d}')
        ]

        ValuesRow.__init__(self, widgets, title=self.shutterName[shId])
        self.grid.setContentsMargins(1, 6, 1, 1)
Example #4
0
    def __init__(self, controlPanel, name):
        heaterNb = controlPanel.heaterChannels[name]
        self.name = name
        widgets = [
            SwitchGB(controlPanel.moduleRow, 'heaters', 'enabled', heaterNb,
                     '{:g}'),
            ValueGB(controlPanel.moduleRow, 'heaters', 'fraction',
                    heaterNb + 2, '{:.2f}')
        ]

        ValuesRow.__init__(self, widgets, title=name.capitalize())
Example #5
0
    def __init__(self, moduleRow, powerName, pduPort):
        self.powerName = powerName
        self.pduPort = pduPort
        widgets = [
            SwitchGB(moduleRow, pduPort, 'state', 1, '{:s}'),
            ValueGB(moduleRow, pduPort, 'volts', 2, '{:.3f}'),
            ValueGB(moduleRow, pduPort, 'amps', 3, '{:.3f}'),
            ValueGB(moduleRow, pduPort, 'watts', 4, '{:.3f}')
        ]

        ValuesRow.__init__(self, widgets, title=f'{powerName.capitalize()}')
Example #6
0
    def __init__(self, moduleRow, pumpId):
        widgets = [
            SwitchGB(moduleRow, f'ionpump{pumpId}', 'state', 0, '{:g}'),
            ValueGB(moduleRow, f'ionpump{pumpId}', 'volts', 1, '{:g}'),
            ValueGB(moduleRow, f'ionpump{pumpId}', 'amps', 2, '{:g}'),
            ValueGB(moduleRow, f'ionpump{pumpId}', 'temp', 3, '{:g}'),
            ValueGB(moduleRow, f'ionpump{pumpId}', 'pressure', 4, '{:g}')
        ]

        ValuesRow.__init__(self,
                           widgets,
                           title=f'ionpump{pumpId}'.capitalize())

        self.grid.addWidget(
            ValueGB(moduleRow, f'ionpump{pumpId}Errors', 'errorMask', 0,
                    '{:02X}'), 1, 0)
        self.grid.addWidget(Status(moduleRow, pumpId), 1, 1, 1, 4)
Example #7
0
 def __init__(self, moduleRow, key, title, fontSize=styles.smallFont):
     widgets = [
         ValueGB(moduleRow, key, c, i, '{:.5f}', fontSize)
         for i, c in enumerate(Coordinates.posName)
     ]
     ValuesRow.__init__(self, widgets, title=title, fontSize=fontSize)