本文整理汇总了Python中TestLib.getValue方法的典型用法代码示例。如果您正苦于以下问题:Python TestLib.getValue方法的具体用法?Python TestLib.getValue怎么用?Python TestLib.getValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestLib
的用法示例。
在下文中一共展示了TestLib.getValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: zeroOrbits
# 需要导入模块: import TestLib [as 别名]
# 或者: from TestLib import getValue [as 别名]
def zeroOrbits(rm,slot):
# Check for zeros for all oribts but [71:48] (bin 3 of 7)
# This nonzero bin is address 0x1D
zeroOrbitRegisters = [0x19,0x1A,0x1B,0x1C,0x1E,0x1F]
t.openRM(b,rm)
for address in zeroOrbitRegisters:
message = readBridge(slot,address,3)
if t.getValue(message) != 0:
print 'Nonzero orbit error!'
return False
return True
示例2: control_reg_orbit_histo
# 需要导入模块: import TestLib [as 别名]
# 或者: from TestLib import getValue [as 别名]
def control_reg_orbit_histo(rm,slot,delay):
# Return value of [71:48] (bin 3 of 7)
# This nonzero bin is address 0x1D
writeBridge(rm,slot,0x18,[2,0,0,0])
writeBridge(rm,slot,0x18,[1,0,0,0])
time.sleep(delay)
writeBridge(rm,slot,0x18,[0,0,0,0])
# runBridgeTests([rm],t.getSlotList(rm,slot),range(16,24),0)
t.openRM(b,rm)
message = readBridge(slot, 0x1D, 3)
value = t.getValue(message)
return value
示例3: orbitHisto
# 需要导入模块: import TestLib [as 别名]
# 或者: from TestLib import getValue [as 别名]
def orbitHisto(message):
simplePrint(message)
value = t.getValue(message)
return passFail(value==0)