Hi everyone, I've got a question about data streaming from the Red Pitaya to a PC running Windows 7: I would like to write a C program to acquire a certain number of samples with the RP (say 16384), transfer these samples to the PC (either via ethernet or USB) for plotting and then repeat the whole process continuously. I guess I could just write a loop that acquires the samples, stores them in a file and copies the file to the PC via SSH. However, I guess this would be very inefficient as the file would have to be opened and closed every time new samples have been acquired. I would like to be able to just transfer an array with the samples. What would be the easiest way to do this?
As a next step, high-speed continuous streaming over ethernet (similar to the application that streams to DDR3 RAM) would be great.
Stream data to PC
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: Stream data to PC
If you don't want to use a filesystem-based approach, it would indeed be easiest to open a network socket from the application on the RP to a server running on your PC. Then, you can send an array of samples over the connection whenever you have acquired new data.
The streaming to RAM is only the first stage in that application. After it has some samples in its DDR buffer, It does the socket thing and sends the samples to a remote server.high-speed continuous streaming over ethernet (similar to the application that streams to DDR3 RAM) would be great.
-
- Posts: 27
- Joined: Thu Apr 14, 2016 3:14 pm
Re: Stream data to PC
Thanks a lot, I'll look into socket programming then.
-
- Posts: 3
- Joined: Mon Dec 14, 2020 4:46 pm
Re: Stream data to PC
Hi,Program wrote: ↑Tue Aug 30, 2016 5:08 pmHi everyone, I've got a question about data streaming from the Red Pitaya to a PC running Windows 7: I would like to write a C program to acquire a certain number of samples with the RP (say 16384), transfer these samples to the PC (either via ethernet or USB) for plotting and then repeat the whole process continuously. I guess I could just write a loop that acquires the samples, stores them in a file and copies the file to the PC via SSH. However, I guess this would be very inefficient as the file would have to be opened and closed every time new samples have been acquired. I would like to be able to just transfer an array with the samples. What would be the easiest way to do this?
As a next step, high-speed continuous streaming over ethernet (similar to the application that streams to DDR3 RAM) would be great.
Did you make any progress on this? I am wanting to do something similar, and I am only a beginner on RP. I want to acquire continous data samples and send to PC or store on the DDR memory
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 1 guest