本文整理匯總了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)