def launch_main_window(): _config_environment() launch_pydm( displayfile=LAUNCH_WINDOW, hide_nav_bar=True, log_level=LogLevel.INFO, )
def launch_generic(): _config_environment() parser = argparse.ArgumentParser("Generic Launcher") parser.add_argument( "params", help= f"json str to be forwarded into `launch_pydm(`{inspect.signature(launch_pydm).__str__()})", ) args = parser.parse_args() data = json.loads(args.params) logger.info(f"Launch siriushlacon PyDM OPI - {data}") launch_pydm(**data)
def launch_vbc(): parser = argparse.ArgumentParser("VAC Pumps Controller") parser.parse_args() launch_pydm(displayfile=VBC_MAIN_WINDOW_PY, hide_nav_bar=True, log_level=LogLevel.INFO)
#!/usr/bin/env python3 import argparse import os from siriushlacon.application import LogLevel, launch_pydm from siriushlacon.mks937b.consts import MKS_MAIN os.environ["PYDM_DEFAULT_PROTOCOL"] = "ca://" if __name__ == "__main__": parser = argparse.ArgumentParser("VAC Pumps Controller") args = parser.parse_args() launch_pydm(displayfile=MKS_MAIN, hide_nav_bar=True, log_level=LogLevel.INFO)
#!/usr/bin/env python import argparse import inspect import json from siriushlacon.application import launch_pydm from siriushlacon.logging import get_logger logger = get_logger("") if __name__ == "__main__": parser = argparse.ArgumentParser("Generic Launcher") parser.add_argument( "params", help=f"json str to be forwarded into `launch_pydm(`{inspect.signature(launch_pydm).__str__()})", ) args = parser.parse_args() data = json.loads(args.params) logger.info(f"Launch siriushlacon PyDM OPI - {data}") launch_pydm(**data)
"10.128.40.3:5064", "10.128.40.3:5068", "10.128.40.4:5064", "10.128.40.4:5068", "10.128.40.5:5064", "10.128.40.5:5068", "10.128.40.6:5064", "10.128.40.6:5068", "10.128.40.7:5064", "10.128.40.7:5068", "10.128.40.8:5064", "10.128.40.8:5068", "10.128.40.9:5064", "10.128.40.9:5068", "10.128.40.10:5064", "10.128.40.10:5068", ] if "EPICS_CA_ADDR_LIST" not in os.environ: os.environ["EPICS_CA_ADDR_LIST"] = " ".join(BBB_IOC_ADDR) else: os.environ["EPICS_CA_ADDR_LIST"] = ( " ".join(BBB_IOC_ADDR) + os.environ["EPICS_CA_ADDR_LIST"] ) if __name__ == "__main__": parser = argparse.ArgumentParser("VAC Pumps Controller") args = parser.parse_args() launch_pydm( displayfile=VBC_MAIN_WINDOW_PY, hide_nav_bar=True, log_level=LogLevel.INFO )
#!/usr/bin/env python3 import os from siriushlacon.application import LogLevel, launch_pydm from siriushlacon.launcher.consts import LAUNCH_WINDOW from siriushlacon.tools.consts import PYDM_TOOLS_PATH from siriushlacon.vbc.consts import BBB_IOC_ADDR if __name__ == "__main__": os.environ["EPICS_CA_AUTO_ADDR_LIST"] = "YES" os.environ["PYDM_DEFAULT_PROTOCOL"] = "ca://" os.environ["PYDM_TOOLS_PATH"] = PYDM_TOOLS_PATH if "EPICS_CA_ADDR_LIST" not in os.environ: os.environ["EPICS_CA_ADDR_LIST"] = " ".join(BBB_IOC_ADDR) else: os.environ["EPICS_CA_ADDR_LIST"] = ( " ".join(BBB_IOC_ADDR) + os.environ["EPICS_CA_ADDR_LIST"] ) launch_pydm( displayfile=LAUNCH_WINDOW, hide_nav_bar=True, log_level=LogLevel.INFO, )