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

ZCU216 Board Description #73

Closed
EeshGupta opened this issue Sep 28, 2022 · 5 comments
Closed

ZCU216 Board Description #73

EeshGupta opened this issue Sep 28, 2022 · 5 comments

Comments

@EeshGupta
Copy link

EeshGupta commented Sep 28, 2022

When I try to print out the following:
soc = Pyro4.Proxy(ns.lookup(server_name)) soccfg = QickConfig(soc.get_cfg()) print(soccfg)

The print line produces the following error:

`KeyError Traceback (most recent call last)
in
1 soc = Pyro4.Proxy(ns.lookup(server_name))
2 soccfg = QickConfig(soc.get_cfg())
----> 3 print(soccfg)

c:_lib\python\qick\qick_lib\qick\qick_asm.py in str(self)
31
32 def str(self):
---> 33 return self.description()
34
35 def getitem(self, key):

c:_lib\python\qick\qick_lib\qick\qick_asm.py in description(self)
76 readout['avg_maxlen'], readout['buf_maxlen'], readout['trigger_bit'], readout['tproc_ch']))
77
---> 78 lines.append("\n\t%d DACs:" % (len(self['dacs'])))
79 for dac in self['dacs']:
80 tile, block = [int(c) for c in dac]

c:_lib\python\qick\qick_lib\qick\qick_asm.py in getitem(self, key)
34
35 def getitem(self, key):
---> 36 return self._cfg[key]
37
38 def setitem(self, key, val):

KeyError: 'dacs'`

Indeed when I print out the configuration using
soccfg.get_cfg()
I get the the output below which does not contain 'dacs'

{'board': 'ZCU216', 'refclk_freq': 245.76, 'fs_proc': 430.08, 'gens': [{'type': 'axis_signal_gen_v4', 'maxlen': 65536, 'b_dds': 32, 'switch_ch': 0, 'tproc_ch': 1, 'dac': '20', 'fs': 6881.280000000001, 'f_fabric': 430.08, 'samps_per_clk': 16, 'maxv': 32766, 'maxv_scale': 1.0}, {'type': 'axis_signal_gen_v4', 'maxlen': 65536, 'b_dds': 32, 'switch_ch': 1, 'tproc_ch': 2, 'dac': '21', 'fs': 6881.280000000001, 'f_fabric': 430.08, 'samps_per_clk': 16, 'maxv': 32766, 'maxv_scale': 1.0}, {'type': 'axis_signal_gen_v4', 'maxlen': 65536, 'b_dds': 32, 'switch_ch': 2, 'tproc_ch': 3, 'dac': '22', 'fs': 6881.280000000001, 'f_fabric': 430.08, 'samps_per_clk': 16, 'maxv': 32766, 'maxv_scale': 1.0}, {'type': 'axis_signal_gen_v4', 'maxlen': 65536, 'b_dds': 32, 'switch_ch': 3, 'tproc_ch': 4, 'dac': '23', 'fs': 6881.280000000001, 'f_fabric': 430.08, 'samps_per_clk': 16, 'maxv': 32766, 'maxv_scale': 1.0}, {'type': 'axis_signal_gen_v4', 'maxlen': 65536, 'b_dds': 32, 'switch_ch': 4, 'tproc_ch': 5, 'dac': '30', 'fs': 6881.280000000001, 'f_fabric': 430.08, 'samps_per_clk': 16, 'maxv': 32766, 'maxv_scale': 1.0}, {'type': 'axis_signal_gen_v4', 'maxlen': 65536, 'b_dds': 32, 'switch_ch': 5, 'tproc_ch': 6, 'dac': '31', 'fs': 6881.280000000001, 'f_fabric': 430.08, 'samps_per_clk': 16, 'maxv': 32766, 'maxv_scale': 1.0}, {'type': 'axis_signal_gen_v4', 'maxlen': 65536, 'b_dds': 32, 'switch_ch': 6, 'tproc_ch': 7, 'dac': '32', 'fs': 6881.280000000001, 'f_fabric': 430.08, 'samps_per_clk': 16, 'maxv': 32766, 'maxv_scale': 1.0}], 'readouts': [{'avg_maxlen': 16384, 'buf_maxlen': 1024, 'b_dds': 32, 'adc': '20', 'fs': 2457.6, 'f_fabric': 307.2, 'trigger_bit': 14, 'tproc_ch': 0}, {'avg_maxlen': 16384, 'buf_maxlen': 1024, 'b_dds': 32, 'adc': '22', 'fs': 2457.6, 'f_fabric': 307.2, 'trigger_bit': 15, 'tproc_ch': 1}], 'iqs': [], 'tprocs': [{'trig_output': 0, 'pmem_size': 8192.0, 'dmem_size': 4096}]}

@meeg
Copy link
Collaborator

meeg commented Sep 28, 2022

I suspect you might be running different versions of the QICK library on the PC and on the QICK - specifically, an old version on the QICK.

Could you double-check the versions? One way (depending on how you installed the library) would be to run import qick; print(qick) to find what directory you're loading the library from, then git log in that directory.

@EeshGupta
Copy link
Author

I get this :
image

@EeshGupta
Copy link
Author

looks up to date

@meeg
Copy link
Collaborator

meeg commented Sep 28, 2022

Yes, that's up to date - this is the version on the QICK, or on the PC? (I am assuming you are running a Pyro server on the QICK, and trying to connect to that from a PC.)

@EeshGupta
Copy link
Author

yes that was the problem. Qick repo was not updated on the board. I had to delete the existing one and then redo the qick installation on the board. The problem is then solved. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants