Page 1 of 1

Custom trends

Posted: Fri Jun 21, 2019 3:39 am
by azmath2
Hi,
I am looking for some help to create customized trends. I would like to add new Curves to exisitng trendviewer window. I can add new curve object and it is displayed in legend with a title but I am unable to cionnect it to tag and connect to value.

Curve curve = new Curve();
curve.Name = "Test1";
curve.DisplayName = "Globals.Tags.HMI_Sel_WB1";
curve.Value =Globals.Tags.DB_289_TT_2002.Value;

TrendViewer.Curves.Add(curve);

I was trying to change DataSource property for Curve but it is read only.

Has anyone had a luck with something similliar?

Thanks for reply.

Re: Custom trends

Posted: Tue Oct 22, 2019 3:00 pm
by Russ C.
Here is an example project that uses dynamic trends in a trend viewer
DynamicTrendViewerCurves.zip
(41.19 KiB) Downloaded 418 times