Compare commits

19 Commits

Author SHA1 Message Date
awe
9f43e07e44 modern pipe 2025-11-27 18:23:59 +03:00
awe
391eb0ef85 pipe 2025-11-27 18:23:38 +03:00
d979f45179 implemented cleanup of streams every 10 run. Now it works stable and fast. Next step -- adjust runs_since_streams_clean max value 2025-11-14 02:03:37 +03:00
a726babc1c implemented BF mode switching 2025-11-14 00:18:15 +03:00
4e2d8d4b22 examples of cmd files. If it is provided via CLI arg -- it sets run mode 2025-11-13 22:49:51 +03:00
bec5e29e2c implemented atomary writing to the output files (by creating tmp file and renaming it). 2025-11-13 22:47:40 +03:00
a1c727c71f now chart is saved before showing. Because showing may be long 2025-11-13 22:45:41 +03:00
9ad09ee77b uncommented chart.show() at the end 2025-11-13 22:30:41 +03:00
87954d40d9 now path to data storage is configurable by .cmd file 2025-11-13 22:30:17 +03:00
e2eac4dd48 implemented configuring at startup via cfg file. Implemented RUN_FINITE, RUN_INFINITE, RUN_TEST modes. 2025-11-13 21:36:49 +03:00
850a66e620 compiles 2025-11-13 21:00:42 +03:00
d1bd233399 removed old unacessible code from the end. Implemented main_state struct, filling it from the CLI arg file. Also implemented FINITE_RUNS mode. 2025-11-13 20:55:53 +03:00
b7eae9d469 cleaned more unused code (by codex) 2025-11-13 19:31:56 +03:00
b80ad585da moved libs to the lib directory 2025-11-13 18:40:06 +03:00
4d1f7fdbe9 added run_cyclic script. It mounts tmpfs in ./tmp, runs BF_companion for some cycles, cleans ./tmp 2025-11-13 18:22:38 +03:00
a44043593c deleted unused funcs and commented outdated code 2025-11-13 18:20:19 +03:00
b7ba42765b manually merged with ARM version 2025-11-13 17:43:55 +03:00
77005d7863 included SDK folder and included it to the git three 2025-10-30 21:53:19 +03:00
bf25bed9aa just save 2025-10-30 19:57:30 +03:00
8 changed files with 742 additions and 401 deletions

9
1000sec_finite.cmd Normal file
View File

@ -0,0 +1,9 @@
// Default configuration for BF_companion main_state
// Format: field value // optional comment
run_mode FINITE_RUN // TEST | FINITE_RUN | INF_RUN
BF_mode TRANSPARENT // TRANSPARENT | AVG
run_length 100 // milliseconds
runs_N 10000 // total runs (used in FINITE_RUN)
run_I 0 // starting run index
data_path /home/feda/MIPT/RadioPhotonic_Subserface_radar/Receiver_GUI/data // base directory for output files

9
100sec_finite.cmd Normal file
View File

@ -0,0 +1,9 @@
// Default configuration for BF_companion main_state
// Format: field value // optional comment
run_mode FINITE_RUN // TEST | FINITE_RUN | INF_RUN
BF_mode TRANSPARENT // TRANSPARENT | AVG
run_length 100 // milliseconds
runs_N 1000 // total runs (used in FINITE_RUN)
run_I 0 // starting run index
data_path /home/feda/MIPT/RadioPhotonic_Subserface_radar/Receiver_GUI/data // base directory for output files

Binary file not shown.

Binary file not shown.

10
default.cmd Normal file
View File

@ -0,0 +1,10 @@
// Default configuration for BF_companion main_state
// Format: field value // optional comment
run_mode TEST // TEST | FINITE_RUN | INF_RUN
BF_mode TRANSPARENT // TRANSPARENT | AVG
BlackFin_mode TRANSPARENT // TRANSPARENT | AVG | FFT
run_length 100 // milliseconds
runs_N 10 // total runs (used in FINITE_RUN)
run_I 0 // starting run index
data_path data // base directory for output files

9
finite.cmd Normal file
View File

@ -0,0 +1,9 @@
// Default configuration for BF_companion main_state
// Format: field value // optional comment
run_mode FINITE_RUN // TEST | FINITE_RUN | INF_RUN
BF_mode TRANSPARENT // TRANSPARENT | AVG
run_length 100 // milliseconds
runs_N 10 // total runs (used in FINITE_RUN)
run_I 0 // starting run index
data_path /home/feda/MIPT/RadioPhotonic_Subserface_radar/Receiver_GUI/data // base directory for output files

1104
main.c

File diff suppressed because it is too large Load Diff

View File

@ -105,6 +105,6 @@ if __name__ == "__main__":
#chart.add_trace(go.Scattergl(x=data[key+"_N"], y=data[key], name=key, mode="markers+lines", text=data[key+"_hex"]))
# chart.add_trace(go.Scattergl(x=data[key+"_N"], y=data[key], name=key, mode="lines+markers", text=data[key+"_hex"]))
# chart.show()
chart.write_html(argv[1] + ".html")
chart.show()