Stream data to PC

Just about everything about Red Pitaya
Post Reply
Program
Posts: 27
Joined: Thu Apr 14, 2016 3:14 pm

Stream data to PC

Post by Program » Tue Aug 30, 2016 5:08 pm

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.

Nils Roos
Posts: 1441
Joined: Sat Jun 07, 2014 12:49 pm
Location: Königswinter

Re: Stream data to PC

Post by Nils Roos » Tue Aug 30, 2016 9:10 pm

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.
high-speed continuous streaming over ethernet (similar to the application that streams to DDR3 RAM) would be great.
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.

Program
Posts: 27
Joined: Thu Apr 14, 2016 3:14 pm

Re: Stream data to PC

Post by Program » Wed Aug 31, 2016 10:14 am

Thanks a lot, I'll look into socket programming then.

ilemonaene
Posts: 3
Joined: Mon Dec 14, 2020 4:46 pm

Re: Stream data to PC

Post by ilemonaene » Mon Dec 14, 2020 5:39 pm

Program wrote:
Tue Aug 30, 2016 5:08 pm
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.
Hi,

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

Post Reply
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