Is is implemented, but it was just not shown on screenshot because it was further up. thnxs.
//################################################## ################################################## ##################
IRuntimeArchive runtimeArchive = context.RuntimeArchiveCollection[1];
if (runtimeArchive == null)
{
//There is no archive, the user will be informed...
Debug.Print("No archive available!");
return;
}
IRuntimeArchiveFilter ArchiveFilter = runtimeArchive.FilterCollection.Create();
for (int i = 0; i < runtimeArchive.VariableCollection.Count; ++i)
{
//Add every archive variable to the archive filter
ArchiveFilter.AddVariable(runtimeArchive.VariableC ollection[i]);
}
IRuntimeArchiveFilterVariableCollection ArchiveVariables = ArchiveFilter.Query();
//Get the first available filtered variable
IRuntimeArchiveFilterVariable ArchiveFilterVariable = ArchiveVariables[0];
if (ArchiveFilterVariable == null)
{
//If there is no variable available, inform the user
Debug.Print("No filtered archive variable available!");
return;
}
ArchiveFilterVariable.ArchiveValueCollection.Creat e();
IRuntimeArchiveValue ArchiveValue = ArchiveFilterVariable.ArchiveValueCollection[0];
if (ArchiveValue == null)
{
//No value available
Debug.Print("No value available!");
}
else
{
//Output some information of the value
Debug.Print("Date / Time: " + ArchiveValue.Time.ToString());
Debug.Print("Recorded Value: " + ArchiveValue.Value);
Debug.Print("State: &H" + ArchiveValue.HigherState.ToString());
}
//################################################## ################################################## ##################