lneuhaus / pyrpl

pyrpl turns your RedPitaya into a powerful DSP device, especially suitable as a lockbox in quantum optics experiments.
http://lneuhaus.github.io/pyrpl/
MIT License
139 stars 109 forks source link

Unable to connect to RedPitaya via SSH #452

Open gregofuente opened 3 years ago

gregofuente commented 3 years ago

Apologies if this is a simple question--I'm new to RedPitaya. My RedPitaya doesn't have the default username and password, so I made the appropriate changes in global_config.yml. I then tried to initialize a RedPitaya object using the following line of code: >>> p = Pyrpl('global_config') Even though I was able to connect to the RedPitaya successfully after these changes, I got a new error:

ERROR:pyrpl.redpitaya_client:Error occured in reading attempt 0. Reconnecting at addr 0x40100014 to _reads value 1 by client 1 ERROR:pyrpl.redpitaya_client:Error occured in reading attempt 1. Reconnecting at addr 0x40100014 to _reads value 1 by client 2 ERROR:pyrpl.redpitaya_client:Error occured in reading attempt 2. Reconnecting at addr 0x40100014 to _reads value 1 by client 3 ERROR:pyrpl.redpitaya_client:Error occured in reading attempt 3. Reconnecting at addr 0x40100014 to _reads value 1 by client 4 ERROR:pyrpl.redpitaya_client:Error occured in reading attempt 4. Reconnecting at addr 0x40100014 to _reads value 1 by client 5 Traceback (most recent call last): File "", line 1, in File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\pyrpl.py", line 318, in init self.rp = RedPitaya(config=self.c) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\redpitaya.py", line 208, in init self.start() File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\redpitaya.py", line 432, in start self.startclient() File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\redpitaya.py", line 468, in startclient self.makemodules() File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\redpitaya.py", line 486, in makemodules self.makemodule(name, cls) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\redpitaya.py", line 476, in makemodule module = cls(self, name) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\modules.py", line 724, in init super(HardwareModule, self).init(parent, name=name) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\acquisition_module.py", line 372, in init min_delay_ms=self.MIN_DELAY_SINGLE_MS) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\acquisition_module.py", line 145, in init self.data_x = copy(self._module.data_x) # in case it is saved later File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\hardware_modules\scope.py", line 616, in data_x return self.times File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\hardware_modules\scope.py", line 573, in times duration = self.duration File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\attributes.py", line 148, in get return self.get_value(instance) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\hardware_modules\scope.py", line 161, in get_value return obj.sampling_time float(obj.data_length) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\attributes.py", line 148, in get return self.get_value(instance) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\hardware_modules\scope.py", line 185, in get_value return 8e-9 float(obj.decimation) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\attributes.py", line 148, in get return self.get_value(instance) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\attributes.py", line 1290, in get_value raw_value = BaseRegister.get_value(self, obj) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\attributes.py", line 218, in get_value return self.to_python(obj, obj._read(self.address)) File "C:\Users\HENRY\RUSPython\PyRPL\pyrpl-master\pyrpl\modules.py", line 757, in _read return int(self._reads(addr, 1)[0]) TypeError: 'NoneType' object is not subscriptable

What can I do to address this? I'm using version 0.9.5.0.