On 19.11.18 19:41, Gene Heskett wrote: > On Monday 19 November 2018 14:28:14 Nicklas Karlsson wrote: > > > We need a utility that detects out of order addf's, each of which > > > then causes a one thread execution delay in the data traveling that > > > path. Data from a limit/home switch to use a real simple circuit, > > > should be present at the motion input when motion is invoked. But > > > what if the debounce addf is out of its assumed order? Placed below > > > motion in that thread? > > > > With out of order you mean output from one thread is used in another > > thread? > > Only where it makes sense, see below. > > > Otherwise I anywhere within period is ok. > > No, its not, because if a module is out of order, too early, and is being > fed from another module thats later in the thread, then its input is > always stale by one thread time. That can be hell to find when you > can't move 2 thou without generating a following error.
As that's the nub of it, ISTM that the great big spaghetti ball of keeping track of where _all_ signals go need not be tackled just to solve the problem of stale input. If we acquire a list of the outputs of each addf as we descend the list, then it is only necessary to check each input of each addf against the accumulated list. An input missing from the accululated list of outputs of prior addfs is a stale input. So, IIUC, then the problem boils down to scraping the outputs of each addf, as the rest is easy, AFAICT. (At worst, a list of lists, i.e. a list of prior modules, used to index a list of outputs per module. Awk's associative arrays are made for this little job.) After half a year of chasing 6 builders, without finding one who could squeeze my build in, I've gone owner-builder, with all the time consuming contractor chasing and leg-roping that entails - so no promises, but sample text from which the list of outputs needs to be scraped would be the first step toward a solution to this task. Erik _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
