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
137 stars 107 forks source link

Error in the scope class #431

Open DevJaGz opened 3 years ago

DevJaGz commented 3 years ago

Hi, I am trying to use pyrpl with python to acquire data from a Red pitaya Board (just in Input 1). I have already installed anaconda and then I activated a virtual environment with all dependencies, however, when i run this code (The first example):

from pyrpl import Pyrpl

HOSTNAME = "192.168.1.54"
p = Pyrpl(hostname=HOSTNAME)

# Access the RedPitaya object in charge of communicating with the board
r = p.rp

#check the value of input1
print (r.scope.voltage1)

appear the following error: AttributeError: 'Scope' object has no attribute 'voltage1'

It should be clarified that the communication with the board is successful. This also happens in the same way when running the code without installing anaconda (the other installation procedure ).

JensGutermuth commented 3 years ago

I quickly tested your code. Using r.scope.voltage_in1 instead of r.scope.voltage1 works for me.