LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

case structure

How can i do that in case structure that when true generate 3 number but when the case structure is false then dont do anything.the problem is that when case structure is false then the outputs are not wiredNévtelenddd.jpgNévtelendsdsds.jpg

0 Kudos
Message 1 of 7
(2,872 Views)

What would you like the values to be when the case is false?  That is what you should wire up in there.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(2,865 Views)

when it's true then generate 3 number and show them.the values must be the same until the structure is true again

0 Kudos
Message 3 of 7
(2,860 Views)

Then follow the advice given in your other thread and use shift registers on your outer loop to hold the latest values.  You can just wire those values straight through in the false case.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(2,853 Views)

@szabolcs1295 wrote:

when it's true then generate 3 number and show them.the values must be the same until the structure is true again


If you just want to show the values in indicators, you can place these indicators inside the case structure and they won't update unless the case is true, thus displaying the stale values if the case is false. 

 

Can you show us the rest of the code? It seems you are making significant beginner mistakes that should be addressed now.

0 Kudos
Message 5 of 7
(2,843 Views)

Névtelen.png

 

when the raindrop reached the bottom it starts again on the top.always generate a number at the top and while it doesnt reach the bottom the numbers must be the same

0 Kudos
Message 6 of 7
(2,804 Views)

Pictures are completely useless here, especially if they are truncated and contain overapping and hidden elements.

 

Attach the VI instead.

0 Kudos
Message 7 of 7
(2,790 Views)