Streaming data to Red Pitaya Linux
Downloading and extracting the Red Pitaya rpsa streaming client onto the Red Pitaya board allows you to access the streamed data from Python code running directly on the Red Pitaya.
Note
The functionality of the steaming client on the Red Pitaya is exactly the same as documented in the rpsa_client documentation. However, it is important to note that the performance of the streaming process will be lower than on the computer as the data is saved to the SD card, which has lower read/write speeds compared to a computer’s storage.
Download the “Red Pitaya command line streaming client” from the Data stream control web interface. The client is located on the board itself and can be downloaded from there.
Unzip the downloaded file.
Upload the client to the Red Pitaya using the
scpcommand in the terminal. The client should be uploaded to the/home/root/directory.Establish an SSH connection to the Red Pitaya using the
sshcommand in the terminal.ssh root@<Red_Pitaya_IP_address>Make the client executable by running the following command in the terminal:
chmod +x rpsa_client convert_toolLoad the
stream_appFPGA image:redpitaya> overlay.sh stream_appGet the configuration file and edit it from the command line on the Red Pitaya.
redpitaya> ./rpsa_client -c -g F -v redpitaya> nano ./configs/config_<Red_Pitaya_IP_address>.json
Update the configuration file with the desired settings.
redpitaya> ./rpsa_client -c -s F -f ./configs/config_<Red_Pitaya_IP_address>.json -vStart the streaming server.
redpitaya> ./rpsa_client -s -f bin -m raw -l 1024 -v
For more information on the configuration parameters, please refer to the rpsa_client documentation.