Cathode potential bias with respect of MCP.
(self)
| 178 | |
| 179 | @Feat(units='volt', limits=(-50, 50)) |
| 180 | def average_voltage(self): |
| 181 | """Cathode potential bias with respect of MCP. |
| 182 | """ |
| 183 | if self.revision >= 2.0: |
| 184 | ans = self.query_expect('AVE ?') |
| 185 | ans = between(ans, 'AVE ?', 'ok') |
| 186 | return float(ans.strip()) / 10. |
| 187 | else: |
| 188 | ans = self.query_expect('THRESHV @ .')[8:] |
| 189 | try: |
| 190 | pos = ans.index('.') |
| 191 | except ValueError: |
| 192 | raise InstrumentError('Unsupported operation.') |
| 193 | return float(ans[pos+2:pos+7]) / 10. |
| 194 | |
| 195 | @average_voltage.setter |
| 196 | def average_voltage(self, value): |
nothing calls this directly
no test coverage detected