Skip to content
Snippets Groups Projects
Commit 676c4d51 authored by Sander de Snoo's avatar Sander de Snoo
Browse files

Fixed tests for Qblox cluster

parent 643cc465
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,21 @@ TektronixMocked:
QbloxV1:
station: qblox_v1.yaml
backend: Qblox
awg_channels:
Qblox_module2: [P1,P2,P3,]
Qblox_module4: [P4,P5,P6,P7]
Qblox_module6: [I1,Q1,I2,Q2]
markers:
M1: [Qblox_module2,0]
M_IQ: [Qblox_module6,0]
sensors:
SD1: [Qblox_module8,0]
SD2: [Qblox_module8,1]
runner: core_tools
QbloxGS1:
station: qblox_gs1.yaml
backend: Qblox
awg_channels:
Qblox_module2: [P1,P2,P3,]
Qblox_module4: [P4,P5,P6,P7]
......@@ -88,12 +103,11 @@ QbloxV1:
markers:
M1: [Qblox_module2,1]
M_IQ: [Qblox_module6,1]
dig_channels:
SD1: [Qblox_module8,1]
SD2: [Qblox_module8,2]
sensors:
SD1: [Qblox_module10,0]
SD2: [Qblox_module10,1]
runner: core_tools
KeysightSdS:
station: keysight_test_sds.yaml
backend: Keysight
......
......@@ -66,8 +66,9 @@ class Context:
awgs = []
digs = []
# map Qblox Cluster to AWG1 and digitizer
if 'Cluster' in station.components:
cluster = station.Cluster
if 'Qblox' in station.components:
cluster = station.Qblox
cluster.reset()
for module in cluster.modules:
if module.present():
rf = 'RF' if module.is_rf_type else ''
......@@ -121,10 +122,10 @@ class Context:
gates = []
for i in range(n_gates):
gate = f'P{i+1}'
awg,channel = gate_map[gate]
if awg not in pulse.awg_devices:
pulse.add_awg(station.components[awg])
pulse.define_channel(gate, awg, channel)
awg_name,channel = gate_map[gate]
if awg_name not in pulse.awg_devices:
pulse.add_awg(getattr(station, awg_name))
pulse.define_channel(gate, awg_name, channel)
pulse.add_channel_compensation_limit(gate, (-100, 50))
# pulse.add_channel_attenuation(name, 0.2)
# pulse.add_channel_delay(name, value)
......@@ -178,10 +179,10 @@ class Context:
pulse.configure_digitizer = True
for i in range(n_sensors):
sensor = f'SD{i+1}'
digitizer,channel = cfg['sensors'][sensor]
if digitizer not in pulse.digitizers:
pulse.add_digitizer(station.components[digitizer])
pulse.define_digitizer_channel(sensor, digitizer, channel)
digitizer_name,channel = cfg['sensors'][sensor]
if digitizer_name not in pulse.digitizers:
pulse.add_digitizer(getattr(station, digitizer_name))
pulse.define_digitizer_channel(sensor, digitizer_name, channel)
if n_sensors > 0 and backend == 'Tektronix_5014':
self._add_marker('M_M4i')
......@@ -210,7 +211,6 @@ class Context:
if 'Dig1' not in pulse.digitizers:
pulse.add_digitizer(station.components['Dig1'])
if finish:
pulse.finish_init()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment