# dump(iohub_conf, file(pjoin(configurationDirectory, new_iohubconfig_rpath), 'w'), Dumper = Dumper) iohub_conf = None # Create the experiment Session Runtime # runtime = DataCollectionRuntime(configurationDirectory, "..\\settings\\last_app_config.yaml") # Set the app web socket and send a msg indicating data collection # is ready # runtime.ui_server_websocket = proxy(ws) cmtype = "success" msg = {'msg_type': 'EXP_SESSION_STARTED', 'type': cmtype} runtime.sendToWebServer(msg) app_conf = None # Start the exp runtime # cmd, _ = runtime.start(app_config_file_name,pjoin(configurationDirectory, new_iohubconfig_rpath)) # Experiment Session complete, close it out. # runtime.close() runtime = None elif cmd == "CLOSE_EXP_SESSION": if runtime: runtime.close() runtime._close()