Validate aggregateConfiguration and UseSlopedExtrapolation

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
sunny
Sr. Member
Sr. Member
Posts: 19
Joined: 12 Feb 2015, 11:14

Validate aggregateConfiguration and UseSlopedExtrapolation

Post by sunny »

Hi support team

I try to test readProcessed() of my UA Server by the V1.5.2 C++ SDK.

I only implemented the readRaw() pure virtual method, and considered that
readProcessed can be implemented in SDK.
But, I didn't create HA configuration Object in my HistoricalDataNode instance.

When readProcessed() is called,
1)Is the aggregateConfiguration valid in my server ?
2)Is the UseSlopedExtrapolation invalid in my server ?

I try to call a historyReadProcessed from my UA Client to UA Demo Server(found in C++ SDK).
set:UseSlopedExtrapolation = true or false.
But I got the same data. Does it mean that the UseSlopedExtrapolation is invalid ?

Could you give me some advice about 1) and 2) ?

Thanks a lot

sunny

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: Validate aggregateConfiguration and UseSlopedExtrapolation

Post by Support Team »

Hello Sunny,

Can you please update with the latest version of the SDK_V1.7.2? Because there are a lot of fixes related to history and aggregates.
Below answers are depending on the latest released version of the SDK_V1.7.2

1)Is the aggregateConfiguration valid in my server ?

The AggregateConfiguration is valid,
However, If the HA Configuration object is not created as it is optional,

The default for stepped is false will be used and
The default aggregateConfiguration values are used by the client:
  • UseServerCapabilitiesDefaults = true
    TreatUncertainAsBad = false
    PercentDataBad = 100
    PercentDataGood = 0
    UseSlopedExtrapolation = false
If the UseServerCapabilitiesDefaults = true, If you set or not set the aggregateConfiguration values from the client (as the client uses the defaults).
Will look for the HA Configuration object --> AggregateConfiguration --> TreatUncertainAsBad, PercentDataBad, PercentDataGood, UseSlopedExtrapolationin in the address space to set the values.
If not find it, returns an error

However, if you have no HA Configuration object, to set the aggregateConfiguration values
you need to explicitly set the UseServerCapabilitiesDefaults = false

2)Is the UseSlopedExtrapolation invalid in my server ?

The UseSlopedExtrapolation is valid, to set it without HA Configuration object,
you have to set the UseServerCapabilitiesDefaults = false
Then UseSlopedExtrapolation = true
Best regards
Unified Automation Support Team

Post Reply