def main(): # Wait for ipop-tincan process to start while is_tincan_proc() is False: print("Waiting on IPOP Tincan to start...") time.sleep(10) # Create CFX object that initializes internal data structure of all the controller modules cfx = CFX() cfx.initialize() cfx.wait_for_shutdown_event() cfx.terminate()
def main(): stime = time.time() # Loop till Tincan not in running state while is_tincan_proc() is False: # Print warning message to the console that the Tincan process has not been started every 10 sec interval if time.time() - stime > 10: print("Waiting on IPOP Tincan to start...") stime = time.time() # Create CFX object that initializes internal datastructure of all the controller modules cfx = CFX() cfx.initialize() cfx.wait_for_shutdown_event() cfx.terminate()
def main(): stime = time.time() # Loop till Tincan not in running state while checkTincanState() == False: if time.time() - stime > 10: print("IPOP Tincan not started.!!") stime = time.time() time.sleep(10) CFx = CFX() CFx.initialize() CFx.waitForShutdownEvent() CFx.terminate()
def main(): stime = time.time() # Loop till Tincan not in running state while checktincanstate() is False: # Print warning message to the console that the Tincan process has not been started every 10 sec interval if time.time()-stime > 10: print("Waiting on IPOP Tincan to start...") stime = time.time() # Create CFX object that initializes internal datastructure of all the controller modules cfx = CFX() cfx.initialize() cfx.waitForShutdownEvent() cfx.terminate()
def main(): CFx = CFX() CFx.initialize() CFx.waitForShutdownEvent() CFx.terminate()