AnsweredAssumed Answered

PI Connection broken because the connection is automatically closed

Question asked by Nicolas.Isambourg on Aug 28, 2018
Latest reply on Aug 31, 2018 by Nicolas.Isambourg

Dear Forum Members,

 

I developed a .NET application which exports some PI AF Values to a PDF file, every day at 08:01 AM.

The application uses the PI AF SDK 2018 to read the PI AF Values of 10 AF Attributes between y+6h and t+8h

The reading of all PI Values lasts up to 2 seconds.

 

My problem is the reading of the PI AF Values of the first AF Attribute returns a "PI Connection broken" error.

Here is how I proceed:

 

var piSystem = new PISystems().DefaultPISystem;

// Connection

piSystem.Connect();

 

// Reading of the data

 

// Disconnection

piSystem.Disconnect();

 

 

The Message Logs shows the connection is opened at 08:01 when the .NET app gets data.

The Disconnect method has no effect. The connection remains opened.

At 10:01AM, the connection is automatically closed (The tuning parameter is configured to 7200)

The Next Day, when the .NET application attempts to read again the PI AF Values, the "PI Connection broken" error is returned.

 

How can I fix it ?

 

Thanks,

Nicolas

Outcomes