10-06-2007 06:03 AM
Hi all,
I am a beginner in the Labview. I did a program that contains a while loop, its stop condition is connected to button. I selected “switch when pressed” to be the operation of this button. Our teacher asked us to make this button stops the loop if it is pressed and its name is converted to run instead of stop. And if it is pressed then again it starts the loop from the point it stopped in.
Can anybody help me, please?
10-06-2007 01:37 PM
10-06-2007 07:52 PM
10-06-2007 08:32 PM
Look at this Vi I put together. Perhaps it will give you ideas. Thanks.
~Papa
10-06-2007 09:40 PM
Pkone,
That's a good use of the event structure. But I wonder why you did an exclusive OR with true wired to the continue terminal? One step simpler would have been to do a NOT operation. Simplest yet would have been to wire it to a stop terminal with False in the Run/Stop and timeout events and a True constant in the Exit (M??) event.
10-07-2007 02:32 AM
Dear Ravens Fan,
I tried to do what you suggest, but since I am as I said a beginner I have errors. I attached the VI.
10-07-2007 07:06 PM
10-08-2007 02:13 AM
10-08-2007 02:15 AM
10-08-2007 02:24 AM