diff --git a/README.md b/README.md index 8ab89800145e4c51f68c559524fdd28b9cfe6476..5f05e7e08a144f7bb4f4ad4e2ae8f38edbde374b 100644 --- a/README.md +++ b/README.md @@ -192,6 +192,7 @@ Usage: [--time TIME] Time in minutes that the beam will run. Default: 1 [--verbosity] Verbosity information [--dashboard] UI Monitoring dashboard on? + [--configuration] Specify the readout board config file from "default, emulator, modulev0". Default: default ``` `test_beam.py` will simulate Fermilab's test beam of 4s on-time and 56s off-time spills, at the specified L1A rate and number of spills. The simulation will produce a compressed zip file after each spill and save it in the `outputs` directory with a time stamp. The dashboard currently monitors the number of cycles (i.e. spills), L1A rate count, FIFO occupancy, thermistor temperatures (RT1, RT2, SCA and VTRX), lost FIFO words and packet rate. The dashboard heavily relies on the [Rich Python library](https://github.com/Textualize/rich); for development of the dashboard see [docs](https://rich.readthedocs.io/en/stable/introduction.html). diff --git a/test_beam.py b/test_beam.py index eb8c04b41cb0ec3a5633dedcf483799f833c672d..b5bc33e2009b134f4bdab66eae68e36a686a0fec 100644 --- a/test_beam.py +++ b/test_beam.py @@ -15,11 +15,12 @@ if __name__ == '__main__': argParser.add_argument('--time', action='store', default=1, type=int, help='Time in minutes that the beam will run') argParser.add_argument('--verbosity', action='store_true', default=False) argParser.add_argument('--dashboard', action='store_true', default=True, help='Monitoring dashboard on?') + argParser.add_argument('--configuration', action='store', default='default', choices=['default', 'emulator', 'modulev0'], help="Specify a configuration of the RB, e.g. emulator or modulev0") args = argParser.parse_args() kcu = get_kcu(args.kcu, control_hub=True, host=args.host) - rb = ReadoutBoard(kcu=kcu) + rb = ReadoutBoard(kcu=kcu, config=args.configuration) beam = Beam(rb) print(f"----------------------------------")