readProcessed() and MaxReturnDataValues.

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

readProcessed() and MaxReturnDataValues.

Post by sunny »

Hi, support team

I'm trying to test readProcessed() service MyUAServer.

From Part11, I saw MaxReturnDataValues
"defines the maximum number of values that can be returned by the Server for each HistoricalNode accessed during a request."
It means it will be a limit for readRaw(), readProcessed(), readAtTime() and so on?

I have a C++ source version SDK.In the HistoryManagerBase::readProcessed() function of
/uaserver/uaservercpp/coremodule/historymanagerbase.cpp,
readRaw() is called in the readProcessed() with the maxValues = 5000.

Would you please me tell me
1)why the maxValues is set to 5000?
2)in readProcessed(), the output paramter 'valuesToReturn' size is closely related with 'MaxReturnDataValues'?

Thanks a lot.

sunny

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

Re: readProcessed() and MaxReturnDataValues.

Post by Support Team »

Hello sunny,

that is just an internal setting for the processing in HistoryManagerBase to stay responsive.
Because the aggregate calculation takes some time the HistoryManagerBase processes the response in pieces of max. 5000 so that the call doesn't timeout while the aggregate calculation is still running.
Like that if the total operation takes too long the server can return a partial result plus a continuation point instead of running into a timeout and discarding the result.
Best regards
Unified Automation Support Team

Post Reply