This post helps clear some things up for me however i'm still struggling with one thing in particular. How would I go about dynamically changing the period from which to find the max value?
Ultimately whilst signal is 1 find max until signal is 0 then repeat. I may just not be able to rap my head around it properly but i cant see how this can be done in a declarative manner?
Thank you for the quick response