Skip to content

Commit

Permalink
Hide dependency of CC to shfqa driver using magic number mask
Browse files Browse the repository at this point in the history
  • Loading branch information
martinr-zi committed Jun 23, 2022
1 parent 21d8576 commit d0ad0de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pycqed/instrument_drivers/physical_instruments/QuTech/CC.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
from .CCCore import CCCore
from pycqed.instrument_drivers.library.Transport import Transport
import pycqed.instrument_drivers.library.DIO as DIO
from pycqed.instrument_drivers.physical_instruments.ZurichInstruments.shfqa_uhfqc_compatibility import (
Dio as ShfqaDio,
)

from qcodes.utils import validators as vals
from qcodes import Instrument
Expand Down Expand Up @@ -318,8 +315,7 @@ def output_dio_calibration_data(self, dio_mode: str, port: int=0) -> Tuple[int,
dio_mask = 0x03ff0000

elif dio_mode == "shfqa":
valid_mask = 1 << ShfqaDio.VALID_INDEX
dio_mask = ShfqaDio.codeword_mask() | valid_mask
dio_mask = 0x7fff0000
cc_prog = inspect.cleandoc(
f"""
mainLoop: seq_out {hex(dio_mask)},1
Expand Down

0 comments on commit d0ad0de

Please sign in to comment.