AdvancedHMI Software

General Category => Application Showcase => Topic started by: Justinb94 on December 13, 2020, 11:09:44 AM

Title: Custom Trending with SQLite
Post by: Justinb94 on December 13, 2020, 11:09:44 AM
I have created a custom dynamic trend graph that gives the operator options to change x and y axis scale.

I used a Data Subscriber to insert 3 values (pump speed, temp and current) into a SQLite database.  I then linked the chart to the SQLite database. 

See the image attached for greater detail. 
Title: Re: Custom Trending with SQLite
Post by: MajorFault on December 13, 2020, 01:54:00 PM
Good work.
Title: Re: Custom Trending with SQLite
Post by: Alpaslan on May 12, 2021, 04:50:31 PM
Hi,

I am trying to do this however no success. Is it possible to share code?
Title: Re: Custom Trending with SQLite
Post by: Justinb94 on May 12, 2021, 09:20:46 PM
Yes quite happy to share code.  I would just have to go back through my projects and find it.

However, I wouldn't reckon doing this, it took hours/days of code writing and not to mention the maintenance.  I have since discovered InfluxDB, Grafana and Node Red. 

InfluxDB is a purpose built time series database built for trending historical data, grafan takes out all the hard work with querying databases and it provides visually appealing dashboards.  Combined with node-red it takes roughly 5 mins to set this software stack up compared to hours/days of tinkering in Visual Basic code.

If you would still like the source code let me know.
Title: Re: Custom Trending with SQLite
Post by: Noe on May 17, 2021, 03:31:47 PM
Interesting. Have you ever tried MS Power BI?

Yes quite happy to share code.  I would just have to go back through my projects and find it.

However, I wouldn't reckon doing this, it took hours/days of code writing and not to mention the maintenance.  I have since discovered InfluxDB, Grafana and Node Red. 

InfluxDB is a purpose built time series database built for trending historical data, grafan takes out all the hard work with querying databases and it provides visually appealing dashboards.  Combined with node-red it takes roughly 5 mins to set this software stack up compared to hours/days of tinkering in Visual Basic code.

If you would still like the source code let me know.
Title: Re: Custom Trending with SQLite
Post by: Justinb94 on May 27, 2021, 07:12:54 AM
I have not tried MS Power BI.  I have tried to stick with an open source stack.
Title: Re: Custom Trending with SQLite
Post by: ibah on June 03, 2021, 09:57:45 PM
Hi Justin,

Is it possible to share your code / component ?