Custom trends

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
azmath2
Posts: 1
Joined: Thu Jun 20, 2019 3:10 am

Custom trends

Post 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.

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

Re: Custom trends

Post by Russ C. »

Here is an example project that uses dynamic trends in a trend viewer
DynamicTrendViewerCurves.zip
(41.19 KiB) Downloaded 572 times
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply