Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference between polled and monitored + function of deadband #11

Closed
psmt opened this issue Feb 22, 2018 · 3 comments
Closed

Difference between polled and monitored + function of deadband #11

psmt opened this issue Feb 22, 2018 · 3 comments

Comments

@psmt
Copy link

psmt commented Feb 22, 2018

Hi,

Nicely working application!
I do have a question about the exact functionality. I did some tests and my conclusion about the functionality of polled and monitored is as follows:
Polled:

  • works cyclic, as expected, logs xx samples/minute

  • deadband check: deadbandvalues are taken into account, so logging is conditional if deadbandvalues are used (<>0)

Monitored:

  • works event driven, checks value every xx ms (monitorresolution)

  • deadband values do not seem to have influence, unconditional logging, if opc value has changed, even the slightest amount, so deadband values do not seem to have any influence.

Can someone confirm this? If so, is this as foreseen?

kind regards
Pascal

@coussej
Copy link
Owner

coussej commented Feb 22, 2018

Hi Pascal,

This behaviour is indeed exactly as it was implemented. Monitored values are usually used for looking at status changes, valve states, ... so the deadband didn't seem necessary.

Do you have a special use case that requires other behaviour?

@psmt
Copy link
Author

psmt commented Feb 23, 2018

Hi,

Thanks for the response. After your explanation it seems logic to me and I think I can manage.
In the sample config file, the deadband parameters are also there for the "monitored" option. Maybe that was the reason for the confusion from the start.

A monitored node

[[measurements]]
name = "Int32monitored"
tags = { tag1 = "test", tag2 = "AB43" }
nodeId = "ns=2;i=10849"
collectionType = "monitored"
monitorResolution = 1000 # ms
deadbandAbsolute = 0 # Absolute max difference for a value not to be collected
deadbandRelative = 0 # Relative max difference for a value not to be collected

@coussej
Copy link
Owner

coussej commented Mar 1, 2018

@psmt You're right. That is confusing. I'll update the readme!

@coussej coussej closed this as completed Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants