I have a script that I am trying to set up that when run, it pops up an interactive GUI that looks like this:
I can populate the lot number and the only button that works at the moment is the "CPL Screen" one. I click it and it produces a report of whether the wafers in that lot passed screening limits. If there are error codes or super high values within the data a button box is added to the report asking if the user wants to have those values removed and the screening done again.
I have set up the button to where it is supposed to close the current report window and data table associated with it and rerun the same "CPL Screen" as done in the beginning after removing the bad data. The only problem is that when I click the rerun button the original window doesn close and the report doesn't finish.
I can physically go into the script and highlight the code that is connected to the button and the script runs fine. It only doens't work if I actually click the button. Here is what the Window list looks like the when it is the first time through:
Here is what it looks like when i click the rerun button:
It seems that the original report doesn't close prior to the new one opening. I am stumped considering I can phyically run the same code and everything works. The following is a suedo flow chart of what the script is doing:
Any help would be much appreciated