quantify_scheduler.instrument_coordinator.utility

Utility functions for the instrument coordinator and components.

Module Contents

Functions

search_settable_param(→ qcodes.instrument.Parameter)

Searches for a settable parameter of an instrument when it is in a nested

lazy_set(→ None)

Sets the value of a QCoDeS parameter only if it is different from the value in

check_already_existing_acq_index(index, acqs)

Attributes

logger

logger[source]
search_settable_param(instrument: qcodes.instrument.base.InstrumentBase, nested_parameter_name: str) qcodes.instrument.Parameter[source]

Searches for a settable parameter of an instrument when it is in a nested hierarchical form such as instrument.submodule_1.channel_1.parameter

Parameters:
  • instrument – The root QCoDeS instrument where the parameter resides.

  • nested_parameter_name – Hierarchical nested parameter name.

Return type:

Parameter

lazy_set(instrument: qcodes.instrument.base.InstrumentBase, parameter_name: str, val: Any) None[source]

Sets the value of a QCoDeS parameter only if it is different from the value in cache.

Parameters:
  • instrument – The QCoDeS instrument to set the parameter on.

  • parameter_name – Name of the parameter to set.

  • val – Value to set it to.

check_already_existing_acq_index(index, acqs)[source]