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
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: 1045
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: 1919
Currently Online:
Guest(s) 20
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 733
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6516
Newest Members:
basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin, Brett.Rollason
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1