I've got an application in which from the main vi, I'm loading any number of reentrant instances of the same vi and its front panel. Each instance of these "sub-main" reentrant vi's I'm trying to assign their own index in a functional global cluster array, like a local global, that can be called within each sub-vi of each sub-main instance. This is such that each instance of the sub-mains and their sub-vi's can access their own set of variables, constants, tasks, etc from the same main FG. The problem I'm running into is how to label each vi reading from/writing to the FG such that the read/written data is placed in the appropriate index corresponding to that vi's parent sub-main. I've thought of assigning each sub-main a tag in their window title and using the "get caller's parent" from the openg package to read this tag and index the FG, but this would mean I'd have to tag every called vi within the sub-main, and when the final children vi's are N levels from the sub-main, this can get hairy. I feel like I might be overlooking something really simple, but it hasn't yet occured to me.
Thank you for the assistance!