conda env create -f environment.yaml
conda activate RPL
For all steps below, run using the Anaconda Prompt if on windows.
# Check you are in root directory of this repository
conda activate RPL
python serial_test.py
The expected output will be similar to:
(blast) C:\RPL\rpl-blast>python serial_test.py
2025-06-18 14:08:26,544 [DEBUG] Enumerating serial ports...
2025-06-18 14:08:26,570 [INFO] COM5 — Arduino Mega 2560 (COM5)
Take note of the name of the port before the dash, e.g. COM5.
In Blast_web plotly subplot/app/config.yaml
, replace the value of serial_port
with the string of the name of the port, (e.g. serial_port: "COM5"
)
# Check you are in the correct directory
cd "BLAST_web plotly subplot"
conda activate RPL
python run.py
Then open http://127.0.0.1:5000 in your web browser.
rpl-blast/
├── BLAST_web plotly subplot/
│ ├── app/ # Application code
│ ├── logs/ # Log files
│ └── run.py # Application entry point
├── environment.yaml # Conda environment file
└── README.md # This file
To switch between simulator and serial data:
- Open
BLAST_web plotly subplot/app/config.yaml
- Change
data_source: "simulator"
todata_source: "serial"
for real data - For serial mode, ensure the correct port is set for
serial_port
following steps above, e.g.serial_port: "/dev/cu.usbmodem1301"
for Mac,serial_port: "COM5"
for Windows.
If you encounter any issues:
- GOOD LUCK