19def get_crtmodules_app(nickname, num_crtcontrollermodules, board_confs, host="localhost"):
20 """
21 Here the configuration for an entire daq_application instance using DAQModules from crtmodules is generated.
22 """
23
24 modules = []
25
26 for i in range(num_crtcontrollermodules):
27 modules += [DAQModule(name = f"nickname{i}",
28 plugin = "CRTControllerModule",
29 conf = crtcontrollermodule.Conf(BoardConfs = board_confs
30 )
31 )]
32
33 mgraph = ModuleGraph(modules)
34 crtmodules_app = App(modulegraph = mgraph, host = host, name = nickname)
35
36 return crtmodules_app