sovain

C# Displays.Open / send values

Discussion created by sovain on Jun 26, 2012
Latest reply on Jun 27, 2012 by dhollebeek

Hi,

 

In Processbook I open PDI file and send some data in it like this:

 
Set d3 = Application.Displays.Open(FolderPath & "PlotUnit.pdi", True)
d3.TrendFolderPath = FolderPath
d3.StationName = StationName

I want to open a PDI file in C# application, but do noit know how to pass some data it PDI file:

 
PBObjLib.Application app = new PBObjLib.Application();
PBObjLib.Display disp = app.Displays.Open("C:\\Display1.pdi", false);

app.StationName = "test";     - does not working
disp.StationName = "test";     - does not working

  Can anybody help me ?

 

Thanks

 

Oleg

Outcomes