sovain

Trends using "Active view" / how to add trend as an AF Element instead of PI Tag

Discussion created by sovain on Mar 30, 2012
Latest reply on Apr 3, 2012 by hanyong

HI,

 

I implement some trends in on a C# Application form.

 

Using the Active View object (AxPBDCtrl.AxPbd), I managed to run it in my application.

 

As per the documentation I found that we can add some traces (PI Points ) to a trend like:

MyTrend.AddTrace(

"Sinusoid");

 

But I need to add traces from AF Structure, do ton touching the PI Tag directly.

 

So it should be something like:

 

\\server\DB\Pipeline\Unit1\Generator|Accessory Gear Box Scavenge Oil Temperature B;

 

Could somebody help me with that?

 

Thanks

 

Oleg

 

PS Please find my coding with PI Tag loading into the trend:

 

--------------------------------------

 

PBObjLib.Display Trend1Display;

 

Trend1Display = axPbd1.Display as PBObjLib.Display;

 

 

PBSymLib.Trend MyTrend; Trend)Trend1Display.Symbols.Add(PBObjLib.pbSYMBOLTYPE.pbSymbolTrend); 

 

MyTrend = (PBSymLib.

MyTrend.AddTrace(

"Sinusoid");
  

Outcomes