Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
historyReadRaw - lower limit for parameter numValuesPerNode?
March 23, 2026
10:37, EET
Avatar
rocket science
Member
Members
Forum Posts: 114
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

Hi,

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

March 23, 2026
10:40, EET
Avatar
rocket science
Member
Members
Forum Posts: 114
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

I 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

March 23, 2026
11:32, EET
Avatar
Matti Siponen
Moderator
Members

Moderators
Forum Posts: 370
Member Since:
February 11, 2020
sp_UserOfflineSmall Offline

Hello,

This is a bug in Simulation Server. It has been implemented to use 1000 Values per Nodes as an upper limit, but it seems to be ignoring lower limits provided by Clients.

March 23, 2026
11:50, EET
Avatar
rocket science
Member
Members
Forum Posts: 114
Member Since:
March 16, 2017
sp_UserOfflineSmall Offline

ah okay, thank you, that explains it.

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 37
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 100
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 773
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1558
Posts: 6567
Newest Members:
otiliabanks, kasha94646158368, bridgetterandle, julietabernacchi, eulakilvington, DavidBS, fcbuycom, xyygeorgetta, srijithvijay, rudolfpigot8361
Moderators: Jouni Aro: 1039, Pyry: 1, Petri: 1, Bjarne Boström: 1054, Jimmy Ni: 26, Matti Siponen: 359, Lusetti: 0
Administrators: admin: 1