Skip to content

Commit

Permalink
Fill top row, then bottom on OPX+ digital outputs.
Browse files Browse the repository at this point in the history
  • Loading branch information
deanpoulos committed Sep 4, 2024
1 parent 792c613 commit 95a73d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion qualang_tools/wirer/instruments/instruments.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ def add_opx_plus(self, controllers: Union[List[int], int]):
channel = InstrumentChannelOpxPlusOutput(con=controller, port=port)
self.available_channels.add(channel)

for port in range(1, NUM_OPX_PLUS_DIGITAL_OUTPUT_PORTS + 1):
# add odd first for octave connectivity (top row is more convenient)
for port in range(1, NUM_OPX_PLUS_DIGITAL_OUTPUT_PORTS + 1, 2):
channel = InstrumentChannelOpxPlusDigitalOutput(con=controller, port=port)
self.available_channels.add(channel)

# then add evens
for port in range(2, NUM_OPX_PLUS_DIGITAL_OUTPUT_PORTS + 1, 2):
channel = InstrumentChannelOpxPlusDigitalOutput(con=controller, port=port)
self.available_channels.add(channel)
1 change: 1 addition & 0 deletions qualang_tools/wirer/wirer/channel_specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,4 @@ def __init__(self, con: int = None, in_port: int = None):
opx_iq_spec = ChannelSpecOpxPlusBaseband
opx_iq_octave_spec = ChannelSpecOpxPlusBasebandAndOctave
octave_spec = ChannelSpecOctave
opx_dig_spec = ChannelSpecOpxPlusDigital

0 comments on commit 95a73d0

Please sign in to comment.