Skip to content

Commit

Permalink
Add final action for setting offset of LF-FEM analog output port.
Browse files Browse the repository at this point in the history
  • Loading branch information
deanpoulos committed Jun 26, 2024
1 parent 5e1dd19 commit 0c2f88a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions quam/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ def generate_config_final_actions(qua_config):
qua_config (dict): The generated qua config.
"""
for controller_cfg in qua_config["controllers"].values():
if "fems" in controller_cfg:
for fem in controller_cfg["fems"].values():
if fem.get("type") == "LF":
if "analog_outputs" in fem:
for analog_output in fem["analog_outputs"].values():
analog_output.setdefault("offset", 0.0)
if "analog_inputs" in fem:
for analog_input in fem["analog_inputs"].values():
analog_input.setdefault("offset", 0.0)

if "analog_outputs" in controller_cfg:
for analog_output in controller_cfg["analog_outputs"].values():
analog_output.setdefault("offset", 0.0)
Expand Down

0 comments on commit 0c2f88a

Please sign in to comment.