Topic RSS10:37, EET
March 16, 2017
OfflineHi,
I’ve a question regarding the parameter numValuesPerNode for the historyReadRaw method:
JavaDoc is:
numValuesPerNode – the maximum number of events to return for a single node. If the value is 0, all values between startTime and endTime are returned.
I did some tests using Wireshark to see the HistoryReadRequest/Response calls. I’m requesting history values for one hour from the SimulationServer for one of the Simulation Nodes. So there should be 3600 parameters.
When I set the numValuesPerNode to 0, there is one Request/Response where the response contains as expected the 3600 values.
When I set the numValuesPerNode to 1000, there are four Request/Response where the first 3 response cotains as expected each 1000 values und the 4th the remaining 600.
But then I set the numValuesPerNode to 100, and I would have expected 36 Request/Repsonses, but there are still 4 like when the numValuesPerNode is set to 1000.
So it looks like this:
ReadRawModifiedDetails: ReadRawModifiedDetails
IsReadModified: False
StartTime: Mar 19, 2026 15:00:00.000000000 Mitteleuropäische Zeit
EndTime: Mar 19, 2026 16:00:00.000000000 Mitteleuropäische Zeit
NumValuesPerNode: 100
ReturnBounds: False
HistoryData: ExtensionObject
TypeId: NodeId
EncodingMask: 0x01, has binary body
HistoryData: HistoryData
DataValues: Array of DataValue
ArraySize: 1000
[0]: DataValue
[1]: DataValue
….
[999]: DataValue
So my question, is the numValuesPerNode more or less a suggestion to the server, and the server decides how many nodes it will return?
Thank you
10:40, EET
March 16, 2017
OfflineI did some other test with setting the numValuesPerNode to 2000 and still each response contains only up to 1000 values.
Also one correction to my first post: Even if I set the numValuesPerNode to 0, I get chunks of 1000 values in the Response. (I thought I had seen one case where it was only one Request/Response, but I’m no more able to get all values at once)
Simulation Server Version is: 2026.1.0-16
1 Guest(s)

Log In
Register