Author Topic: creating a datalogger with a rasperry pi  (Read 1560 times)

0 Members and 1 Guest are viewing this topic.

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17728
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
creating a datalogger with a rasperry pi
« on: March 09, 2022, 08:22:11 am »
We have an application where we will receive data on a serial port and want to put it on screen as a graph. We also want to store the data to be outputted as a PDF file that includes data about the log being taken that has already been entered. What is the best approach to this? The PDF requirement rather takes it away from embedded and into computer land.

We don't mind using commercial software as it is pointless spending more time learning the quirks of a particular system/ide that actually creating the GUI and functionality.
 

Offline bli22ard

  • Newbie
  • Posts: 1
  • Country: us
Re: creating a datalogger with a rasperry pi
« Reply #1 on: March 09, 2022, 08:30:57 am »
First generate an html file from the data, adjust it to a satisfactory appearance, and use python pdfkit to convert html to pdf
 
The following users thanked this post: DiTBho

Offline Ed.Kloonk

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: creating a datalogger with a rasperry pi
« Reply #2 on: March 09, 2022, 08:43:29 am »
gnuplot can take your logs and draw a graph as an image file.

World is your oyster.
iratus parum formica
 

Online SimonTopic starter

  • Global Moderator
  • *****
  • Posts: 17728
  • Country: gb
  • Did that just blow up? No? might work after all !!
    • Simon's Electronics
Re: creating a datalogger with a rasperry pi
« Reply #3 on: March 09, 2022, 09:14:14 am »
It's showing a live plot. Data is received and plotted live. It is also saved and exported when asked as a PDF. I suppose you update the log file then redraw the file on screen.
 

Offline Ed.Kloonk

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: creating a datalogger with a rasperry pi
« Reply #4 on: March 09, 2022, 10:28:48 am »
It's showing a live plot. Data is received and plotted live. It is also saved and exported when asked as a PDF. I suppose you update the log file then redraw the file on screen.

One use case I have is my solar controller (Victron) that spews out serial data every second and I can, if I want, prod the plotter to update every 20s. The image viewer picks up that the file has changed and displays the latest version.

Absolutely horrible solution on the solid state media, I had intended on coming back to it and inserting a memory buffer but here were are 3 years later.  :)

And it's not a Pi, it's a cheap NUC. But misery loves company!
iratus parum formica
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf