08-23-2011 10:57 PM - edited 08-23-2011 10:58 PM
Isn't the red circle enclose in a green colour outline box on the right side of the while loop the stop button? If yes, I am suppose to connect it to the event structure but I just can't seem to do so.
Thanks.
08-23-2011 10:59 PM
Your code does not show a stop button. So how do you expect to connect it to the event structure?
Are you actually talking about the stop terminal for the while loop?
Is this homework?
08-23-2011 11:03 PM
Oh my bad. So how do you connect the stop terminal for the while loop to the event structure.
08-23-2011 11:05 PM
Under what conditions do you want the loop to stop?
Do you have a stop button you want to press? Then create a stop button. Then create a value change event for the stop button and put it inside of that case and wire it through.
Do you want the VI to stop when the picture ring changes? Then put a True boolean constant in tha event case and wire it through.
08-23-2011 11:22 PM
This is what I have so far, but the picture ring indicator is not showing me any animation, so what must I do?
As for the slider, I want it to show me the value of 15 for my first animation image and 30 for my second animation image.
So is what I have connected so far correct?
Please correct my mistakes if there are any.
Thanks.
08-23-2011 11:23 PM - edited 08-23-2011 11:25 PM
Can you post our actual VI, preferable in LV 2010 or earlier so I can see how it is behaving.
I think the problem is your picture ring is actually an indicator, and not a control. So there is no way for the Ring value change to actually occur by way of user interaction. Try making the ring a control.
08-23-2011 11:28 PM
But if I change the ring to a control, I can't connect it to the Quotient and Remainder which does not allow me to create an animation. Please take a look at the above attachments. It is the VI I am working on.
08-23-2011 11:31 PM
Step back. What are you really trying to do here?
What should the VI do when it starts?
How do you want the user to stop it?
When do you want the animation to run?
The event structure is primarily designed for handling user GUI events. How does that relate to how you want this animation to behave?
08-24-2011 12:51 AM
My VI is suppose to have an animation running and I am planning to use the picture ring control to create it and beside the picture ring control is a slider to display a specific value whenever each image of the animation is being shown. For example, when the first image of the animation is being shown, the slider would display the value of 15, 30 for the second image, 45 for the third image and so on so forth till the end of my animation.
08-24-2011 09:21 AM
Then eliminate the event structure. Use just a basic while loop with a wait function in it to control the speed of the loop.