LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure with multiple output PROBLEM

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! 

0 Kudos
Message 1 of 15
(4,193 Views)

Can you post your problematic case structure?

0 Kudos
Message 2 of 15
(4,176 Views)

Simply you just send a different picture to the display based on the value going to the case. See the attached example

Tim
GHSP
0 Kudos
Message 3 of 15
(4,169 Views)

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!

0 Kudos
Message 4 of 15
(4,143 Views)

@putra wrote:

Hallo,

 

I have also the same problem.


Hmmm... Class project?

0 Kudos
Message 5 of 15
(4,130 Views)

Yes, class assignment. Can you help us?

0 Kudos
Message 6 of 15
(4,118 Views)

Aestat shows the solution, 1 picture box with case selected input.

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 15
(4,091 Views)

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.

0 Kudos
Message 8 of 15
(4,082 Views)

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

0 Kudos
Message 9 of 15
(4,043 Views)

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). 

0 Kudos
Message 10 of 15
(4,037 Views)