From 6a6f37ead2f1be7c55e534106065cf290158091f Mon Sep 17 00:00:00 2001
From: Ian Reed <ireed3597@protonmail.com>
Date: Fri, 2 Jun 2023 11:43:38 -0500
Subject: [PATCH 1/2] add config specification to test_beam.py

---
 test_beam.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test_beam.py b/test_beam.py
index eb8c04b..b5bc33e 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"----------------------------------")
-- 
GitLab


From 4a1f3b769001357e12af7f22136170853b911e53 Mon Sep 17 00:00:00 2001
From: Ian Reed <ireed3597@protonmail.com>
Date: Fri, 2 Jun 2023 11:58:37 -0500
Subject: [PATCH 2/2] updated README

---
 README.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/README.md b/README.md
index 8ab8980..5f05e7e 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).
 
-- 
GitLab