Fix logging to matlab/bin file

Add Python script to plot logged buffers. Modified write_file_matlab()
to add .bin extension if binary format is selected.
This commit is contained in:
Sakthivel Velumani
2025-04-11 09:46:50 -04:00
parent 1d479b2aa9
commit 4adadedeb9
7 changed files with 1666 additions and 46 deletions
+13
View File
@@ -19,3 +19,16 @@ Same goes for any software modifications of `nr_ulsim` - the cache is not aware
the data - remember to clear your cache manually if you are comparing different `nr_ulsim` versions.
The script also allows to skip usage of the cache with `--rerun` option.
## `dl_graph.py`
This generates plots from data saved from nr_dlsim. It takes data in two formats:
1. Plots frequency domain channel estimates, constellation diagram and LLRs from data read in binary format. The data is generated from `nr_dlsim -w`
2. Plots BER (other also possible) from CSV data generated by `nr_dlsim -Z`.
The plots are saved in three formats: `.png`, `.pdf` and `.svg`.
### Example graphs:
#### BER
![image](./ber_compare.svg)