Monitors
Monitors interface with widgets to surface process variable information. They are initialized using a lume-model variable and a controller used to access values over EPICs.
PVImage
Monitor for updating and formatting image data.
Attributes:
Name | Type | Description |
---|---|---|
variable |
ImageVariable
|
Image process variable to be displayed. |
controller |
Controller
|
Controller object for accessing process variable. |
pvname |
str
|
Name of the process variable to access. |
axis_units |
str
|
Units associated with the image axes. |
axis_labels |
str
|
Labels associated with the image axes. |
Source code in lume_epics/client/monitors.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
|
__init__(variable, controller)
Initialize monitor for an image variable.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
variable |
ImageVariable
|
Image process variable to be displayed. |
required |
controller |
Controller
|
Controller object for accessing process variable. |
required |
Source code in lume_epics/client/monitors.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
poll()
Collects image data and builds image data dictionary.
Source code in lume_epics/client/monitors.py
57 58 59 60 61 62 |
|
PVScalar
Monitor for scalar process variables.
Attributes:
Name | Type | Description |
---|---|---|
variable |
ScalarVariable
|
Variable to monitor for value. |
controller |
Controller
|
Controller object for accessing process variable. |
units |
str
|
Units associated with the variable. |
varname |
str
|
Name of the model variable to access. |
Source code in lume_epics/client/monitors.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
|
__init__(variable, controller)
Initializes monitor attributes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
variable |
ScalarVariable
|
Variable to monitor for value. |
required |
controller |
Controller
|
Controller object for accessing process variable. |
required |
Source code in lume_epics/client/monitors.py
139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
|
poll()
Poll variable for value,
Source code in lume_epics/client/monitors.py
154 155 156 157 158 159 |
|
PVTimeSeries
Monitor for time series variables.
Attributes:
Name | Type | Description |
---|---|---|
time |
np.ndarray
|
Array of times sampled. |
data |
np.ndarray
|
Array of sampled data. |
variable |
ScalarVariable
|
Variable monitored for time series. |
controller |
Controller
|
Controller object for accessing process variable. |
units |
str
|
Units associated with the variable |
varname |
str
|
Name of the model variable to access |
Source code in lume_epics/client/monitors.py
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
|
__init__(variable, controller)
Initializes monitor attributes.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
variable |
ScalarVariable
|
Variable to monitor for time series |
required |
controller |
Controller
|
Controller object for accessing process variable. |
required |
Source code in lume_epics/client/monitors.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
|
poll()
Collects image data via appropriate protocol and returns time and data.
Source code in lume_epics/client/monitors.py
105 106 107 108 109 110 111 112 113 114 115 116 117 |
|