06-09-2011 03:30 AM
Hye,
Im trying to use case structure function in Labview to help me to show a particular output in the Front Panel.
My case is, depending on the input (numeric number of 1 to 5) , a different output will be shown on the front panel (different picture string)..
I am still working on my Tower of Hanoi project, so i figured out id want to do the picture string to show the animation according to the number of disks (which i already did). How can i do this using Case Structure function ? Someone help me!
Thanks!
06-09-2011 07:54 AM
Can you post your problematic case structure?
06-09-2011 09:17 AM
Simply you just send a different picture to the display based on the value going to the case. See the attached example
06-13-2011 07:29 AM
Hallo,
I have also the same problem..I am trying to use case structure so that every time when a certain input (i.e. The number of disk) is selected, the output (picture ring) should appears in my front panel.
The problem is, all the picture rings are showed in my front panel (but only one is running). Is it possible that only one picture ring per case appear for a certain input?
See the attached file.
Thanks!
06-13-2011 10:26 AM
@putra wrote:
Hallo,
I have also the same problem.
Hmmm... Class project?
06-13-2011 11:25 AM
Yes, class assignment. Can you help us?
06-13-2011 01:28 PM
Aestat shows the solution, 1 picture box with case selected input.
/Y
06-13-2011 01:43 PM
You don't need a case structure. Just use a picture ring and wire the selector number directly to it.
See also the following links
Adding Picture Items to Ring Controls
How Do I Create an Animation Using a Picture Ring Control in LabVIEW?
etc.
06-17-2011 12:35 PM
I have tried to use that picture box..but I have problem to insert my picture ring (I want it as animation).
I hope you can show me in details how to do that, since I'm a newbie in Labview.
Thank in advance
06-17-2011 12:44 PM
You are talking about insering a picture ring into a picture box. That makes no sense. I don't even know what a picture box is.
A picture ring is a control or indicator that displays one of several images depending on the integer state.
In an animation, you typicaly want to continuously cycle through all items in some timed matter. For this, you use a FOR loop. Place a typical wait (e.g. 500ms) and use "quotiend and remainder" to divide the iteration number by the number of frames. Wire the remainder you your picture ring (make sure it is an indicator and not a control. It it is not, simply right-click...change to indicator).