So I had my attempt with your new 'preview' today and am quite astonished!! I'll briefly share my results.
I wrote a little C program, that acts as a TCP client and listens to the incomming connections from the Redpitaya. All you have to do is to start the Server on the Redpitaya with the command like this (assuming you already loaded the new FPGA image and kernel module):
Code: Select all
./preview_rp_remote_acquire -p 1234 -m 2 -r -c 0 -d 8 -k 4096
This will start the Server and each time you connect a client, it will sample 4096K Samples from channel 0 (A) with 15.6 MS/s and than transfer them to the client. So to get those samples run on the client computer:
To create a socket, listen to the redpitaya and receive 4096KB of data. It will than write the values in mV to a file in /tmp/out.txt which you can plot using the supplied Matlab script.
Important when using this template is, that you always 'listen' (the parameter after ./ddrdump_rx) to as many bytes as you send on the Redpitaya (the -k parameter).
My test setup: Redpitaya (192.168.0.100) and Macbook Pro (192.168.0.101) running Ubuntu connected via a Gigabit switch.
Don't know if it helps anybody, but i thought i'd share my work
source is attached.
- Transmit over UDP to get less overhead
- Cyclic transmission without data loss
- Data loss detection if Sample rate is too high for the transmission
Have a great easter!
You do not have the required permissions to view the files attached to this post.