Hi aaz,
The reason your program never displays the result is because it will never stop the outer loop and proceed with sending the value to the indicator.
There doesn't seem to be a reason for the outer loop. Why do you have one?
As for the inner loop, it will only execute once if the control has a value other than 4. If it is 4, then it will run forever. Avoid such a scenario.
Actually, avoid scenarios which would keep a loop running foever, which is the case for both your loops.
Here is the reason you gave for the dual loop: "this while loop is put in another while loop(as i want the user to interact with the program). The outer while loop is set to constant false and condition stop if true."
I do not see any user interaction in the inner or outer loops. What type of interaction did you want to implement? For instance, a stop button?
If you read the last sentence in blue above... you have a constant of false and the stop condition to true.. The loop will never stop. What did you have in mind for this outer loop? Why a loop that will never stop?? It must freeze or slow down your PC, since there are no "Delay" functions in the loop.
Let us know what you are trying to achieve and we can provide more appropriate advice.
RayR