mahos.inst.tdc.TimeTagger#

class mahos.inst.tdc.TimeTagger(name, conf, prefix=None)#

Swabian Instruments Time Tagger.

Parameters:
  • base_configs (dict[str, str]) – Mapping from base config name to channels and levels definitions. Used in configure_histogram() etc.

  • raw_events_dir (str) – (default: user home) The directory to save RawEvents data.

  • ext_ref_clock (int) – (default: 0) channel to use as external reference clock. Because it uses “software clock” of Time Tagger, clock must be supplied to one of input channel, not “CLK IN” connector. Putting 0 disables the software clock feature.

  • ext_ref_clock_level (float) – (default: 0.0) threshold level in volts for ext_ref_clock channel.

  • ext_ref_clock_freq (float) – (default: 10e6) frequency of ext_ref_clock.

  • remove_ttbin (bool) – (default: True) Remove raw events (.ttbin) file after load.

  • serial (str) – (default: “”) Serial string to discriminate multiple TimeTaggers. Blank is fine if only one TimeTagger is connected.

__init__(name, conf, prefix=None)#

Methods

__init__(name, conf[, prefix])

clear()

close_resources()

Close instrument resources.

configure(params[, label])

Configure the instrument settings.

configure_correlation(base_config, trange, tbin)

configure_histogram(base_config, trange, tbin)

Configure histogram measurement.

configure_raw_events(base_config, save_file)

get(key[, args, label])

Get an instrument setting or measurement data.

get_data([ch])

get_data_normalized([ch])

get_data_roi(ch, roi)

get_range_bin()

Get range and time bin in sec.

get_raw_events()

get_status(ch)

get_timebin()

Get time bin in sec.

log_from_time_tagger(level, msg)

resume([label])

Resume measurement.

set(key[, value, label])

Set an instrument setting or commanding value.

set_duration(duration)

set_range_bin(trange, tbin)

round range and timebin in sec.

set_reference_clock(ch[, level, freq])

start([label])

Clear and start a new measurement.

stop([label])

Stop measurement if running.