Figured out the answer to a question posed by one of my comments in the past

This commit is contained in:
2025-08-12 11:33:01 +02:00
parent f0d83e47d8
commit bee3f5615a

View File

@@ -236,7 +236,12 @@ def get_event_header(event_type, vals, tables, table_reg, tuning_number, col_del
dwell_us = acq_time / acq_points
dwell = f'{dwell_us*1000}n'
freq = 1/(dwell_us/1e6) / 2 # put it in Hz. TODO: Figure out why the factor of 2 is necessary...
# spectral width (here "sweep") and dwell time are linked by the relation
# DT = (2*SW)^(-1)
# Therefore, SW = 1/(DT*2)
freq = 1/(dwell_us/1e6) / 2 # put it in Hz.
sweep = f'{freq}Hz'
filtr = f'{freq}Hz'