Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shut down standalone instrument output #507

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading