[SOLVED] Data storage on pc using FPGA

Status
Not open for further replies.
B

Bta241460

Guest
I have interfaced a sensor with fpga ,is there any way to store that data(other than serial communication protocols) into a text or another format from fpga for further processing
i.e I have to plot that data in another software.
 
Last edited by a moderator:

Hi,

You may use any file format you like. Text, XML, CSV, binary, or any other ... even a proprietary format...

But I really wonder what the file format has to do with FPGA, or (serial) interface, or firther procesding. This all are independent items.

Klaus
 
Thanks for responding
Here I am using a range sensor interfaced on a fpga , I need to plot tha serial data coming from the sensor into a graph .
I need to store the serial data in a .csv format or text for plotting ,the question is how to store the serial data
 

Hi,

As said: you talk about independent items.
You may use any sensor, temperature, distance, voltage, current, AC, DC, digital, or analog with some kind of ADC...
You may use an FPGA, CPLD, microcontroller, or other suitable IC, or any other electronic device
You may use a seriial interface, or parallel, wired or wireless, with any protocol...
You may use a PC with Windows, Linux or any other OS, even cellular phone or Raspberry...
You may use any file format.
You may use any storage medium, like HDD, SSD, USB stick, RAM..

All these things are independent. They don't necessarily relate to each other. You are free to combine them as you like.
I guess there are millions of possible combinations.

Examples:
You may use a PC with WIN10, you may use RS232 as interface with your FPGA, ...but still you are free to choose any file format.
You may use Raspberry with Linux, your FPGA and an SD card and CSV format ... but still are free to choose the interface, like USB, WiFi, optical..

Klaus
 
"How to store data on PC" is no FPGA topic, it's about PC prrogramming. You need to run either a standard app, e.g. terminal program with data log capability or a dedicated app written for the specific purpose. Notice that data processing tools like Matlab or Octave can communicate through serial port and receive respectively query data from the FPGA interface.

On the FPGA side, you need to code at least a communication interface, e.g. UART, IEEE-488 GPIB and some kind of data formatting, e.g. hex or decimal number presentation. Sending decimal number with some delimiters makes already a .csv compatible format.
--- Updated ---

Personally I prefer to shift the formatting effort to the PC side as far as possible. Sending numeric values in hex format can be a compromise that avoids extensive processing on the FPGA side but still gets human-readable serial data streams.
 
Hello,

why not to use NoSQL realtime databse, like for example "Firebase" - see link:

and then make plot using for example Python script (with library matplotlib) - see link:

Such approach is much more easier than involvement FPGA for this task (which has little sens).

Best regards
 

Such approach is much more easier than involvement FPGA for this task (which has little sens).
Depending on the sensor type and involved data processing, the FPGA may be necessary, useful or just superfluous. You should admit that you don't know because the OP didn't reveal any details about the sensor. I was assuming so far that the FPGA serves a purpose in the measuring setup. I know at least a number of applications that are hard to implement without a FPGA or powerful signal processor.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…