Dummy cluster does not correctly set dummy module parameters ( out0_lo_freq and others)
Setting the parameters of a dummy module only works for out0_att
and out1_att
. The rest of the parameters remain at their default value.
For example
from qblox_instruments.qcodes_drivers.cluster import Cluster from qblox_instruments.types import ClusterType
cluster = Cluster(name="test", dummy_cfg={"1": ClusterType.CLUSTER_QCM_RF})
cluster.modules[0].set("out0_lo_freq", 3e9)
print(cluster.modules[0].get("out0_lo_freq"))
Prints:
0
Here this code shows all parameters that are not set correctly
from qblox_instruments.qcodes_drivers.cluster import Cluster
from qblox_instruments.types import ClusterType
cluster = Cluster(name="test", dummy_cfg={"1": ClusterType.CLUSTER_QCM_RF,
"3": ClusterType.CLUSTER_QCM_RF})
module0 = cluster.modules[0]
parameters = list(module0.parameters.keys())[1:]
parameter_values = [
3e9,
3e9,
True,
True,
30,
30,
20,
20,
20,
20
]
for i, parameter in enumerate(parameters):
module0.set(parameter, parameter_values[i])
print(f'Parameter {parameter} - Set Value = { parameter_values[i]}')
print(f'Parameter {parameter} - Get Value = { module0.get(parameter)}')
print('----------------')
Output:
Parameter out0_lo_freq - Set Value = 3000000000.0
Parameter out0_lo_freq - Get Value = 0
----------------
Parameter out1_lo_freq - Set Value = 3000000000.0
Parameter out1_lo_freq - Get Value = 0
----------------
Parameter out0_lo_en - Set Value = True
Parameter out0_lo_en - Get Value = False
----------------
Parameter out1_lo_en - Set Value = True
Parameter out1_lo_en - Get Value = False
----------------
Parameter out0_att - Set Value = 30
Parameter out0_att - Get Value = 30
----------------
Parameter out1_att - Set Value = 30
Parameter out1_att - Get Value = 30
----------------
Parameter out0_offset_path0 - Set Value = 20
Parameter out0_offset_path0 - Get Value = 0.0
----------------
Parameter out0_offset_path1 - Set Value = 20
Parameter out0_offset_path1 - Get Value = 0.0
----------------
Parameter out1_offset_path0 - Set Value = 20
Parameter out1_offset_path0 - Get Value = 0.0
----------------
Parameter out1_offset_path1 - Set Value = 20
Parameter out1_offset_path1 - Get Value = 0.0
----------------