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

default sample time is too fast? #56

Open
rajanplumley opened this issue Jun 23, 2020 · 3 comments
Open

default sample time is too fast? #56

rajanplumley opened this issue Jun 23, 2020 · 3 comments

Comments

@rajanplumley
Copy link

rajanplumley commented Jun 23, 2020

image

This line seems to suggest the default sample time being set by the template is too small so it samples it 20 times slower.

@rajanplumley rajanplumley changed the title default sample time is too slow? default sample time is too fast? Jun 23, 2020
@ZLLentz
Copy link
Member

ZLLentz commented Jun 23, 2020

Thanks for posting this Raj, it's one of those things that is "known" vaguely but never got properly documented. This is a consequence of us having crazy numbers of PVs in our IOCs. I suspect we want to be smarter about the sample time we choose in these "many PVs" cases rather than always bumping to 1Hz.

@rajanplumley
Copy link
Author

Ok cool. Is there any way to know or test if the sample time is too small, so it can step it up until it reaches a minimally satisfactory sample time?

@ZLLentz
Copy link
Member

ZLLentz commented Jun 23, 2020

The IOC can tell if the current sampling time is "too fast" by seeing if it has enough time to process all the PVs before the next scheduled update. I do not know if it is possible to continually change the parameter and optimize it, or if it needs to be set once at the start of the program as the module is currently written.

The consequence of not increasing the sampling time from 50ms is that you'll get your PVs back at arbitrary intervals, e.g. it will go "as fast as it can" and finish whenever it does. Having the sampling time too low can also theoretically impact PLC performance, but I'm not sure if this is a leading-order concern compared to the IOC process getting overloaded.

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