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

Method mode

lantz/drivers/kentech/hri.py:216–231  ·  view source on GitHub ↗

Gain modulation mode. HRI Machine Modes and Mode Indices None Mode 0 INHIBIT 2-10 COMB modes 200 ps to 1 ns inclusive (High rate operation) 11-20 COMB modes 100 ps to 3 ns inclusive (Low rate (+GOI) operation) 21 RF 22

(self, mode)

Source from the content-addressed store, hash-verified

214 @Feat(None, values={'inhibit': 0, 'rf': 21, 'ldc': 22, 'hdc': 23, 'dc': 24,
215 'user1': 25, 'user2': 26, 'user3': 27, 'user4': 28})
216 def mode(self, mode):
217 """Gain modulation mode.
218
219 HRI Machine Modes and Mode Indices
220 None Mode
221 0 INHIBIT
222 2-10 COMB modes 200 ps to 1 ns inclusive (High rate operation)
223 11-20 COMB modes 100 ps to 3 ns inclusive (Low rate (+GOI) operation)
224 21 RF
225 22 logic low duty cycle (LDC)
226 23 logic high duty cycle
227 24 DC
228 25-28 user modes 1 to 4
229 """
230 #TODO: Modes [11-20] not available in rev < 2.0
231 return self.query_expect("{} !MODE".format(mode))
232
233 @Feat(None)
234 def rfgain(self, value):

Callers

nothing calls this directly

Calls 1

query_expectMethod · 0.95

Tested by

no test coverage detected