Author Topic: Trending Chart  (Read 13477 times)

Phrog30

  • Guest
Re: Trending Chart
« Reply #30 on: March 05, 2019, 06:20:13 PM »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Trending Chart
« Reply #31 on: March 05, 2019, 07:26:01 PM »
OK, is this not what you were looking for?
https://www.infoq.com/news/2009/08/SQLite-Has-Been-Ported-to-.NET
That would be an ideal solution. It looks like it has been abandoned. Might be a good project to pick up on.

I did find another .NET SQL database project that seemed to be active and very promising, but I was not able to get it to work. When I emailed the support page it went to a bad link, so I took it as a bad sign and gave up on it. I don't even remember what the name of that project was.

Phrog30

  • Guest
Re: Trending Chart
« Reply #32 on: March 05, 2019, 08:10:16 PM »
It looks like it's being actively developed, https://www.nuget.org/packages/sqlite-net/, there is a beta as a month ago.  If the 2014 version is stable, it's probably worth looking into.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Trending Chart
« Reply #33 on: March 05, 2019, 08:22:45 PM »
It looks like it's being actively developed, https://www.nuget.org/packages/sqlite-net/, there is a beta as a month ago.  If the 2014 version is stable, it's probably worth looking into.
That one looks like a different project because on GitHub it says it is a wrapper around SQLite.

https://github.com/praeclarum/sqlite-net

The C#-SQLite is a full implementation. The last activity I saw for it was 2014

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Trending Chart
« Reply #34 on: March 05, 2019, 08:25:01 PM »
This one looks like the full .NET version of SQLite :

https://www.nuget.org/packages/Csharp-Sqlite/

Phrog30

  • Guest
Re: Trending Chart
« Reply #35 on: March 05, 2019, 08:42:18 PM »
It looks like it's being actively developed, https://www.nuget.org/packages/sqlite-net/, there is a beta as a month ago.  If the 2014 version is stable, it's probably worth looking into.
That one looks like a different project because on GitHub it says it is a wrapper around SQLite.

https://github.com/praeclarum/sqlite-net

The C#-SQLite is a full implementation. The last activity I saw for it was 2014

I guess I didn't look close enough.

DavidSr

  • Full Member
  • ***
  • Posts: 170
    • View Profile
Re: Trending Chart
« Reply #36 on: March 06, 2019, 05:16:27 AM »
Archie would it be impractical to implement an option to schedule a start and stop time for the chart?
  - After thinking on this a bit, If it is not too difficult to start and stop the chart by using a plc bit to trigger it, then that would accomplish three scenarios.

1.) Stopping an starting from the HMI
2.) Starting / stopping the chart by an event in the PLC
3.) Scheduling the Chart by triggering a bit in the PLC  based on the PLC clock.

I don't know what the difficulty would be to implement that. What do you think?
« Last Edit: March 06, 2019, 07:03:55 AM by DavidSr »
David

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Trending Chart
« Reply #37 on: March 06, 2019, 07:48:47 AM »
Archie would it be impractical to implement an option to schedule a start and stop time for the chart?
  - After thinking on this a bit, If it is not too difficult to start and stop the chart by using a plc bit to trigger it, then that would accomplish three scenarios.

1.) Stopping an starting from the HMI
2.) Starting / stopping the chart by an event in the PLC
3.) Scheduling the Chart by triggering a bit in the PLC  based on the PLC clock.

I don't know what the difficulty would be to implement that. What do you think?
The latest version has a PLCAddressEnableLogging property that lets you start/stop with a PLC bit. Or you could use the EnableLogging property and control it via VB code.

Gene T.

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Trending Chart
« Reply #38 on: March 06, 2019, 05:20:32 PM »
I keep having a problem with the chart stopping. I get this error when I try to navigate to the chart. I can select continue and when the chart opens it is not showing real time data even though I checked the log and I see entries in the CSV file.
The error is attached.

Also wanted to say that this error only occurs while running the application by starting with the advancedHMI.exe. If I run inside of visual studio starting the application in debug the chart will stop but I don't get any error that I am aware of.

Gene
« Last Edit: March 06, 2019, 05:25:40 PM by Gene T. »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Trending Chart
« Reply #39 on: March 06, 2019, 05:46:27 PM »
I keep having a problem with the chart stopping. I get this error when I try to navigate to the chart. I can select continue and when the chart opens it is not showing real time data even though I checked the log and I see entries in the CSV file.
The error is attached.

Also wanted to say that this error only occurs while running the application by starting with the advancedHMI.exe. If I run inside of visual studio starting the application in debug the chart will stop but I don't get any error that I am aware of.

Gene
Can you expand down the details and see what vb file and line number the error occurs?

Gene T.

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Trending Chart
« Reply #40 on: March 06, 2019, 10:43:32 PM »
I copied the text into a .txt file below. Also wanted to let you know if I click continue on the error screen the chart will open and eventually will start working again but if I leave and return the error pops up again.

Gene

prof-nova

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Trending Chart
« Reply #41 on: March 12, 2019, 09:14:52 AM »
Hi, this charting component works fine for me.
However, how can I fix the y scale to a defined value.
Thanks.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Trending Chart
« Reply #42 on: March 12, 2019, 09:31:14 AM »
Hi, this charting component works fine for me.
However, how can I fix the y scale to a defined value.
The current version only does auto scaling of the Y Axis. I'll see about adding a fixed scale to a future version.

prof-nova

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Trending Chart
« Reply #43 on: March 12, 2019, 10:15:34 AM »
Hi, this charting component works fine for me.
However, how can I fix the y scale to a defined value.
The current version only does auto scaling of the Y Axis. I'll see about adding a fixed scale to a future version.
OK thanks anyway

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Trending Chart
« Reply #44 on: March 19, 2019, 01:32:13 PM »
Hi, this charting component works fine for me.
However, how can I fix the y scale to a defined value.
Beta 29 now has YAxisMaximum and YAxisMinimum properties.