LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Crazy while loop?

Hey guys.
I have attached my problem. The problem is that, I have some while loops(3) running inside a a while loop, which inturn have single while loops in them. Smiley Surprised.  Now, I can stop all  the  while loops except the outer most.
I have seen in debug mode, stop4 button is not evaluated at all. Why?








Message Edited by Halemani on 05-15-2008 06:50 AM

Message Edited by Halemani on 05-15-2008 06:50 AM
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 1 of 29
(3,665 Views)

Hi Halemani,

The outer loop can first be stopped if all inner loops are ready.
Why do you need such complicate arrangement? Can you explain what you try to do?

Mike



Message Edited by MikeS81 on 05-15-2008 01:56 PM
0 Kudos
Message 2 of 29
(3,656 Views)

What is the Mechanical Action for the Stop4 button?

Can you explain what you are trying to do?



Message Edited by JoeLabView on 05-15-2008 08:00 AM
0 Kudos
Message 3 of 29
(3,646 Views)
Yeah sure.
I have three readings to make and display them on charts(for each) for each reading i make.
Now, I need to show all the readings at a time and want to give option of starting and stoping  each loop(inside).
So, after I have done displaying and want to finish it all, I press the stop4 button.
Here is the vi. This is not the actual VI. The picture vi. Enjoy!Smiley Sad
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 4 of 29
(3,644 Views)

I don't have LV installed, so I can't look at your code, but why don't you use an Event Structure that allows the operator to select which readings to take and refresh the corresponding graph.  One single loop is all you need.

RayR

0 Kudos
Message 5 of 29
(3,640 Views)


@JoeLabView wrote:

What is the Mechanical Action for the Stop4 button?

Can you explain what you are trying to do?



Message Edited by JoeLabView on 05-15-2008 08:00 AM

Mechanical action? I tried all. In vain!
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 6 of 29
(3,638 Views)

Hi Halemani,

if you press the "stop4" button all other loops are still running, So you have to stop them once again.

Mike

0 Kudos
Message 7 of 29
(3,637 Views)


@JoeLabView wrote:

I don't have LV installed, so I can't look at your code, but why don't you use an Event Structure that allows the operator to select which readings to take and refresh the corresponding graph.  One single loop is all you need.

RayR



But will that work for all the three operations I have mentioned? Because if you get inside one loop. Then you have to stop it to start others.
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 8 of 29
(3,637 Views)


@MikeS81 wrote:

Hi Halemani,

if you press the "stop4" button all other loops are still running, So you have to stop them once again.

Mike



No I did not get you! My problem is that only. How do you stop the outer most loop?Smiley Mad
----------------------------------------------------------------------------------
I have still not got what I love.....
0 Kudos
Message 9 of 29
(3,634 Views)


Halemani wrote:
But will that work for all the three operations I have mentioned? Because if you get inside one loop. Then you have to stop it to start others.

Of course it will work.  The stop button then becomes a Stop Program button.  You can do one, two, three operatins, repeat them, etc until you press the stop (program) button.  You'd have 1 stop button and as many operations button as you need (three in this case).  And 1 single loop that is easily controlled.
 
The Event Structure is quite easy to implement.  And much cleaner solution.
 
RayR
0 Kudos
Message 10 of 29
(3,619 Views)