The PI Archive Recorded (Compressed) Values editor consists of a Tag, Time Range and Retrieval Attributes selection controls and a table (DataGrid) for the retrieved archive values.
The DataGrid is the main component of the control, it shows the data value, timestamp and value attributes for each archive event and allows users to edit and delete existing values and insert new ones.
What the control looks like in the Visual Studio.NET toolbox.
What the control looks like in an application.
The PIArchiveEditor control can be used to view and maintain archived values in a PI Server.
How to Use This Control
Site this control on a Windows Form (see instructions below). Set the properties to match your application needs and subscribe to control events in order to get notifications on important events.
The control has numerous properties that affect the behavior and the availability of certain features. These properties can be used to adapt the functionality to suit the application needs, see Properties for a complete list of available features.
The annotations for individual events are maintained in a separate PIAnnotationEditor control, which can be activated by pressing the "Annotations" button.
Assembly: OSIsoft.PISDK.Controls.PIArchiveEditor (in OSIsoft.PISDK.Controls.PIArchiveEditor.dll)
How to add the control to VS.NET toolbox and site it on a Windows form:
These instructions apply when the control and all referenced assemblies are present in the Global Assembly Cache (GAC).
1. Create a new windows application with VS.NET.
2. Add the OSIsoft.PISDK.Controls.PIArchiveEditor user control to the toolbox (right-click on the toolbar -> Add/Remove items -> scroll down the .NET Framework Components list/tab -> check PIArchiveEditor -> OK). You may may want to sort the toolbox items alphabetically, right-click the toolbox and select "sort....").
3. Click on the toolbox icon of the PIArchiveEditor control and place it on the form. The name of the control will be piArchiveEditor1, please don't change it if you plan to use the provided examples.