siriushla.as_ps_diag
Code Documentation
siriushla.as_ps_diag.main module
Interface to handle power supply diagnostic.
- class siriushla.as_ps_diag.main.LogTable(parent=None, channels=[], label2width={}, is_status=False)[source]
Bases:
QTreeView
,PyDMWidget
Log Table.
- updated
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- siriushla.as_ps_diag.main.MyLedMultiChannel
alias of
MyLed
- siriushla.as_ps_diag.main.MyLedMultiConnection
alias of
MyLed
siriushla.as_ps_diag.monitor module
Interface to handle general status.
- class siriushla.as_ps_diag.monitor.MyLed(parent=None, init_channel=None, init_tooltip='', **kws)[source]
Bases:
PyDMLed
Monitor Led.
- default_colorlist = [<PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>, <PyQt5.QtGui.QColor object>]
- value_changed(new_val)[source]
Receive new value and set led color accordingly.
For int or float data type the standard led behaviour is to be red when the value is 0, and green otherwise.
If a
bit
is set the value received will be treated as an int and the bit value is extracted using a mask. The led represents the value of the chosen bit.
siriushla.as_ps_diag.ps_graph_mon module
PS Graph Monitor.
- class siriushla.as_ps_diag.ps_graph_mon.PSGraph(parent=None, psnames=[], y_data=[], symbols=[], color='blue')[source]
Bases:
SiriusWaveformPlot
Power supply data graph.
- property psnames
Return psnames.
- property sector
Return sector.
- property symbols
Return symbols.
- property tooltips
Return tooltips.
- property x_data
Return x_data.
- property y_data
Return y_data.
- class siriushla.as_ps_diag.ps_graph_mon.PSGraphDevicesSelWidget(parent, psnames)[source]
Bases:
QWidget
Power supply selection widget.
- matype_changed
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- psnames_changed
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class siriushla.as_ps_diag.ps_graph_mon.PSGraphMonWidget(parent=None, prefix=siriuspy.envars.VACA_PREFIX, psnames='')[source]
Bases:
QWidget
Power supply graph monitor widget.
- propLineChanged
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- propSymbChanged
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- psnamesChanged
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- class siriushla.as_ps_diag.ps_graph_mon.PSGraphMonWindow(parent=None, prefix=siriuspy.envars.VACA_PREFIX, filters='')[source]
Bases:
_SiriusWindow
Power supply graph monitor window.
- class siriushla.as_ps_diag.ps_graph_mon.PSGraphProptySelWidget(parent)[source]
Bases:
QWidget
Power supply property selection widget.
- PROP_LINE_DEFAULT = ['Current-Mon', 'Current-SP', 'Current-RB', 'CurrentRef-Mon', 'DiagCurrentDiff-Mon', 'WfmSyncPulseCount-Mon', 'PRUCtrlQueueSize-Mon']
- PROP_LINE_FASTCORR = ['Current-Mon', 'Current-SP', 'Current-RB', 'CurrentRef-Mon', 'DiagCurrentDiff-Mon']
- PROP_SYMB_DEFAULT = ['DiagStatus-Mon', 'IntlkSoft-Mon', 'IntlkHard-Mon', 'PwrState-Sel', 'PwrState-Sts', 'OpMode-Sel', 'OpMode-Sts', 'CtrlMode-Mon', 'CtrlLoop-Sel', 'CtrlLoop-Sts', 'CycleEnbl-Mon']
- PROP_SYMB_FASTCORR = ['DiagStatus-Mon', 'AlarmsAmp-Mon', 'AlarmsAmpLtc-Mon', 'PwrState-Sel', 'PwrState-Sts']
- propty_line_changed
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- propty_symb_changed
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
siriushla.as_ps_diag.util module
Util module.