MCPcopy Create free account
hub / github.com/LabPy/lantz / voltage

Method voltage

lantz/drivers/examples/voltmeter.py:35–38  ·  view source on GitHub ↗

Measure the voltage.

(self, key)

Source from the content-addressed store, hash-verified

33
34 @DictFeat(units='V', keys=(0, 1))
35 def voltage(self, key):
36 """Measure the voltage.
37 """
38 return float(self.query('?MEAS {}'.format(key)))
39
40 @DictFeat(values={0.1: '0', 1: '1', 10: '2', 100: '3', 1000: '4'}, keys=(0, 1))
41 def range(self, key):

Callers

nothing calls this directly

Calls 1

queryMethod · 0.95

Tested by

no test coverage detected