Avatar

Please consider registering
guest

sp_LogInOut Log In sp_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 RSS sp_TopicIcon
OPC UA Simulator client-server subscription not working properly. Missing values.
July 14, 2023
12:54, EEST
Avatar
luismartin
Member
Members
Forum Posts: 3
Member Since:
June 5, 2023
sp_UserOfflineSmall Offline

Hi all,

I am here (again) asking for help for a new problem that I have with the Prosys OPC UA simulator. The problem is this:

I am trying to conect with the OPC UA simualtor using a Python script and a client-server-based subscription. I mean, the script contacts with the simulator and it asks for a batch of data each X seconds (for example, 5 seconds) for a specific node (i.e. a variable). However, what I get is that, each 5 seconds, I got the last value of that variable, but not the previous ones. It doesn’t matter if during those 5 second the value has changed each 100 ms. I only get the most recent value. The other ones are… well, I don’t know where they are. Missing in action, I guess đŸ™‚ Curiously, when I repeat the experiment using my own Python-written OPC UA server, everything works perfectly. But when I use the Prosys simulator, it doesn’t.

Do you any idea about what may be the reason behing this weird behaviour?

Best,
Luis

July 14, 2023
13:31, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

In OPC UA there are multiple parameters for Subscriptions and MonitoredItems. Did you set a queue size for the MonitoredItem? If not, then it is 1 and thus only the latest value would be sent. If you set it to e.g. 10, then upto 10 last values would be sent when the publish interval happens. Note that anyway in order for you to see any more than 1 value the samplinginterval of the MonitoredItem must be separately set to value lower than the publish interval (the default is typically -1, which means the publish interval is used instead).

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 684

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1