mahos_dq.meas.hbt.HBT#

class mahos_dq.meas.hbt.HBT(gconf: dict, name, context=None)#

HBT measurement.

Parameters:
  • target.servers (dict[str, str]) – InstrumentServer targets. tdc is required; switch and pg are optional.

  • target.tweakers (list[str]) – Optional Tweaker node names saved alongside HBT data.

  • target.log (str) – LogBroker target full name.

  • listener.interval_sec (float) – polling interval.

  • listener.tdc_correlation (bool) – (has preset) enable correlation measurement mode at TDC.

  • listener.tdc_normalize (bool) – (has preset) enable normalization at TDC.

  • listener.tdc_channel (int) – (default: 1) channel index for getting data from TDC.

  • listener.t0_ns (float) – default value of t0 (time delay).

  • listener.range_ns (float) – default value of measurement range (time window).

  • switch_names (list[str]) – Optional switch instrument names to route signal/optical paths.

  • switch_command (str) – Switch command label passed to Switch worker.

  • pub_interval_sec (float) – Maximum interval between periodic status/data publications.

__init__(gconf: dict, name, context=None)#

Methods

__init__(gconf, name[, context])

change_state(msg)

Change state to msg.state.

close_resources()

Close custom resources.

export_data(msg)

Export data.

get_param_dict(msg)

Get parameter dict.

get_param_dict_labels(msg)

Get parameter dict labels.

handle_req(msg)

Handle Request other than basic requests.

load_data(msg)

Load data.

main()

Main procedure that will be looped.

save_data(msg)

Save data.

update_plot_params(msg)

Update the plot params.

wait()

Wait until required resources are ready.

Attributes