01-10-2006 04:21 AM
01-10-2006 04:34 AM
Hi Rahul
Basically, if you have nested loops (one loop inside another), the outer loop iterates if all inner loops are stopped.
If you want to build an array of 10 values, why don't you use a for-loop?
It is also helpful, if you could post your vi or a picture (please on *.bmp). So we could describe a solution based on your work.
Thomas
01-10-2006 04:41 AM
01-10-2006 05:49 AM
Hi
Thanks a lot for your help. I am attaching my vi. It seems like I can execute and stop individual while loop asynchronously, but the problem is I cannot synchronously stop or execute both while loop using one control instead of two. The other problem is the case structure is not executing at all even though I get values in the arrays and the vi stops execution as soon as both the while loop execution finishes and so the case structure doesn't work at all.
Thanks and waiting for your reply.
Rahul
01-10-2006 05:51 AM
Sorry I forgot to attach, Here is the vi
Rahul
01-10-2006 05:51 AM
Your vi is not attached.
01-10-2006 05:52 AM
01-10-2006 06:13 AM - edited 01-10-2006 06:13 AM
Message Edited by devchander on 01-10-2006 06:15 AM
Message Edited by devchander on 01-10-2006 06:19 AM
01-10-2006 06:49 AM
Ok - so here is my solution (I took the modified vi from devchander as basic vi).
Here are my comments on the modified vi:
If you want to stop two separate loops with one boolean, there is no reason to keep it as two loops - that's why I took the content of the second loop (the left one in the original vi) and placed it in the other loop. So there is just one while-loop now.
Furthermore I placed the terminal inside this loop, so that it is read on each iteration. If it is outside, as in the original vi, it is just read, when the vi is started.
In addition I changed a datatype (see labels in the vi) and the mechanical action of the stop-button.¨
If there are still open questions, just ask.
Thomas
01-10-2006 07:30 AM
Hi rahulbanik,
Does this solves your problem???We don't need the second loop just as becktho said...........
see attached vi in LV8.Sorry becktho ....don't have 7.0.
Ohiofudu.