Skip to content

Commit

Permalink
Merge pull request #507 from BBN-Q/fix/dc_shutdown
Browse files Browse the repository at this point in the history
shut down standalone instrument output
  • Loading branch information
ranzani authored Nov 19, 2024
2 parents ab9326b + a56edf2 commit cd8ac83
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/auspex/qubit/qubit_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ def create_from_meta(self, meta_file, averages):
# The exception being any instruments that are declared as standalone
self.all_standalone = [i for i in self.chan_db.all_instruments() if i.standalone and i not in self.transmitters + self.receivers + self.generators]

# The exception being any standalone instruments with output
self.standalone_w_output = [i for i in self.all_standalone if hasattr(i,'output')]

# In case we need to access more detailed foundational information
self.factory = self

Expand Down Expand Up @@ -463,7 +466,6 @@ def add_connector(self, stream_selector):
def init_instruments(self):
for name, instr in self._instruments.items():
instr.configure_with_proxy(instr.proxy_obj)

self.digitizers = [v for _, v in self._instruments.items() if "Digitizer" in v.instrument_type]
self.awgs = [v for _, v in self._instruments.items() if "AWG" in v.instrument_type]
# Swap the master AWG so it is last in the list
Expand All @@ -475,7 +477,6 @@ def init_instruments(self):

for gen_proxy in self.generators:
gen_proxy.instr.output = True

# Start socket listening processes, store as keys in a dictionary with exit commands as values
self.dig_listeners = {}
ready = Value('i', 0)
Expand Down Expand Up @@ -602,6 +603,8 @@ def shutdown_instruments(self):
dig.stop()
for gen_proxy in self.generators:
gen_proxy.instr.output = False
for std_aln_output in self.standalone_w_output:
std_aln_output.instr.output = False
except:
logger.error('Could Not Stop AWGs or Digitizers; Reset Experiment')
for instr in self.instruments:
Expand Down

0 comments on commit cd8ac83

Please sign in to comment.