I want to get data form red pitaya RF input,and compute them use python in my computer.At first I have program base on https://redpitaya.readthedocs.io/en/lat ... e-examples.I launch this example will endless loop in
Code: Select all
while 1:
rp_s.tx_txt('ACQ:TRIG:FILL?')
print(rp_s)
if rp_s.rx_txt() == '1':
break
but when I loop the code to get data and update in plot,It just print first data with these codes:
Code: Select all
def get_source_data(device):
device.tx_txt('ACQ:SOUR1:DATA?')
buff_string = device.rx_txt()
buff_string = buff_string.strip('{}\n\r').replace(" ", "").split(',')
buff = list(map(float, buff_string))
return buff
Code: Select all
def get_source_data(device):
device.tx_txt('ACQ:START')
device.tx_txt('ACQ:SOUR1:DATA?')
buff_string = device.rx_txt()
buff_string = buff_string.strip('{}\n\r').replace(" ", "").split(',')
buff = list(map(float, buff_string))
return buff
it look like some points suddenly drop to other side, I found these sample points are near together(like 1510 and 1511).
If I set the DEC to 32 or more,it will disappear in plot,but some time it will be suddenly arise again.
I need to know why and how to resolve this problem,thinks.