Hey,
I'm currently working on a project and my customer would like me to add a spark lines, a small trend, to indicate data coming in.
The idea is that if there is a spike in data during a 60min interval the user can then investigate what the issue maybe.
Below I've attached an example of what were aiming for.
The issue i'm having is, the trend line will not continue to scroll as time passes. I've tried using the this.gotoNow, and even this.trendRun, but for some reason the trend will not continue to run.
Also another issue I'm having is a user will leave the page and come back and refresh the page, but the data that was entered in the past time will not be pulled into these trends.
So say i have a equipment that between 4:20 and 4:21 it was at 10%, and during 4:22 and 4:23 at 20%. Since I haven't left the page I can see the change. However, after the page has been refreshed, the data entered during this time is not present and begins with the last data entered (20%).
Attached is the code used in the trend object. The settings set inside the trend are, Interval set to 60mins, no Y scale shown, autoscale active, Linear Line, scroll percent is at 2%
Any help on this would be greatly appreciated!!!!
Best of Luck,
Tyler https://www.winccoa.com/fileadmin/image ... ndCode.txt
\"SparkLine\" Trend, Using a small trend to display data for a DP
- Tykes
- Posts:14
- Joined: Thu Jul 14, 2016 9:51 pm
\"SparkLine\" Trend, Using a small trend to display data for a DP
- Attachments
-
- TrendCode.txt
- (1.77 KiB) Downloaded 223 times
- Tykes
- Posts:14
- Joined: Thu Jul 14, 2016 9:51 pm
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: \"SparkLine\" Trend, Using a small trend to display data for a DP
If you don't see historical values in the trend after reloading the page, it means that you did not archive the values.
(The trend internally does a dpGetPeriod() to query data from the DB)
(The trend internally does a dpGetPeriod() to query data from the DB)
- Tykes
- Posts:14
- Joined: Thu Jul 14, 2016 9:51 pm
Re: \"SparkLine\" Trend, Using a small trend to display data for a DP
Thanks Martin,
You were absolutely correct,
in my archive configuration, I had value dependent OR Time dependent, which according to the help file requires both conditions to be true.
While value dependent AND Time dependent will archive if either condition is true.
This kind of seems backwards?
Thanks for all your help!
You were absolutely correct,
in my archive configuration, I had value dependent OR Time dependent, which according to the help file requires both conditions to be true.
While value dependent AND Time dependent will archive if either condition is true.
This kind of seems backwards?
Thanks for all your help!
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: \"SparkLine\" Trend, Using a small trend to display data for a DP
Hello,
what is meant with "backwards"?
In the WinCC OA help you should find a graphical explanation how smoothing works and then it should be clear which option needs to be used.
Best Regards
Leopold Knipp
Senior Support Specialist
what is meant with "backwards"?
In the WinCC OA help you should find a graphical explanation how smoothing works and then it should be clear which option needs to be used.
Best Regards
Leopold Knipp
Senior Support Specialist
