Ejemplo n.º 1
0
 def __init__(self):
     """Import config and call the necessary setup functions"""
     self.plotCfg = yamlImport.importYAML("./cfg/plotPenConfig.yaml")
     self.__setupPlots()
     self.__setupArrays()
     self.__setupPens()
     self.__startFlag = 1
Ejemplo n.º 2
0
 def __init__(self):
     """Load settings and connect to the designated slave"""
     
     self.modbusCfg = yamlImport.importYAML("./cfg/modbusSettings.yaml")
     if self.modbusCfg['logging'] == "enable":
         self.log = self.__logging()
     if self.__setupClient() == 0:
         return 0
     if self.openConnection() == 0:
         return 0
Ejemplo n.º 3
0
 def __init__(self):
     """Setup"""
     self.logRun = 0
     self.dateNow = time.strftime('%d')
     self.headerCfg = yamlImport.importYAML("./cfg/logHeaders.yaml")
     self.headerCfg["log_headers"].insert(0,"Time")