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
Validate aggregateConfiguration and UseSlopedExtrapolation
Moderator: uasdkcpp
-
- Sr. Member
- Posts: 19
- Joined: 12 Feb 2015, 11:14
- Support Team
- Hero Member
- Posts: 3068
- Joined: 18 Mar 2011, 15:09
Re: Validate aggregateConfiguration and UseSlopedExtrapolation
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:
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
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
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
Unified Automation Support Team