Hi, Try using a local variable. To create a local variable, right-click on the graphical indicator >> Create >> Local Variable.
Use the local variable inside the nested while loop. Local variables allow you to access the control/indicator values in different locations on your block diagram. However, do not overuse them because they are memory intensive. I hope this helps. Sincerely, Feroz National Instruments