Functions without fixed runtime behaviour

Discussion about recent product features & solutions!
2 posts • Page 1 of 1
joels
Posts:2
Joined: Fri Jan 26, 2018 12:16 pm

Functions without fixed runtime behaviour

Post by joels »

Hi,

I am working on a safety system in WinCC OA. The WinCC OA notes advise against using functions which do not have a defined and fixed runtime behaviour (such as dynContains()).

I was wondering what other functions do not have a defined and fixed runtime behaviour and should therefore be avoided to meet safety requirements. For example, would using dynlen() and len() have the same issues?

Thanks,
Joel

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Functions without fixed runtime behaviour

Post by Gertjan van Schijndel »

That advice seems to be only for datapoint functions. I guess that advice only allows functions that take O(1) time (big O notation).
The duration of 'dynContains' takes for a sorted list O(log n) or O(n) for an unsorted list.
The functions 'dynlen'/'mappinglen' take O(1) time, so they do not have the same issue.

2 posts • Page 1 of 1