Jupyter Analog Input Example do not works
Posted: Sat Jan 26, 2019 4:07 pm
Jupyter Analog Input Example do not works:
I get:
singleInput = FPGA.analog_in(0)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-a16e9d6621c3> in <module>()
----> 1 singleInput = FPGA.analog_in(0)
/home/jupyter/RedPitaya/redpitaya/overlay/mercury.py in __init__(self, channel)
77 channel = self.channels[channel]
78 self.chn = self.dev.find_channel(channel)
---> 79 self.scale = self.chn.attrs['scale'].value
80
81 def read(self):
AttributeError: 'NoneType' object has no attribute 'attrs'
How can I solve this ?
A bug in the python library ?
Thanks.
I get:
singleInput = FPGA.analog_in(0)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-a16e9d6621c3> in <module>()
----> 1 singleInput = FPGA.analog_in(0)
/home/jupyter/RedPitaya/redpitaya/overlay/mercury.py in __init__(self, channel)
77 channel = self.channels[channel]
78 self.chn = self.dev.find_channel(channel)
---> 79 self.scale = self.chn.attrs['scale'].value
80
81 def read(self):
AttributeError: 'NoneType' object has no attribute 'attrs'
How can I solve this ?
A bug in the python library ?
Thanks.