本文整理匯總了Python中control.Control.startLoggingLoop方法的典型用法代碼示例。如果您正苦於以下問題:Python Control.startLoggingLoop方法的具體用法?Python Control.startLoggingLoop怎麽用?Python Control.startLoggingLoop使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類control.Control
的用法示例。
在下文中一共展示了Control.startLoggingLoop方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Control
# 需要導入模塊: from control import Control [as 別名]
# 或者: from control.Control import startLoggingLoop [as 別名]
import sys, os
from data.phlogs import PhLogger
from phidgetinterface import InterfaceKitPhidget
from utilityfunctions import Utility
from control import Control
from globalvars import GlobalVars
#Phidget specific imports
#made classes
sys.path.append(os.path.join(os.path.dirname(__file__), "doser"))
#Main Program Code
control = Control()
control.initializeComponents()
control.startLoggingLoop()
print("Closing...")
try:
interfaceKit.setOutputState(0, 0)
interfaceKit.closePhidget()
except PhidgetException as e:
print("Phidget Exception %i: %s" % (e.code, e.details))
print("Exiting....")
exit(1)
print("Done.")