LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Case Structure

Solved!
Go to solution

I am new to LabVIEW and I have an easy question I guess.
I made a while loop inside case structure ( true case ).
i want the same data to out from ( false case ) but with a little change
When i do this i get new results not the same data i want.
how can i communicate between the two cases

Download All
0 Kudos
Message 1 of 8
(2,667 Views)

Skip the case structure and use a Select inside the While instead. You either add an empty string or the name.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 8
(2,664 Views)
Solution
Accepted by topic author El-Awny

Your code is inside out.

 

The case structure should be on the inside, the while loop on the outside.

Message 3 of 8
(2,663 Views)

Yes, I just notice that but i faced another problem
when i add Empty String it adds an empty place in the array
I just want not to add anything and keep the place not used

0 Kudos
Message 4 of 8
(2,641 Views)

Show your latest VI.  Actually attach it so we can browse through the various cases.

0 Kudos
Message 5 of 8
(2,631 Views)

Hi,

Not sure to really understand what you mean by "keep the place not used". 

If you want to add a row only when TRUE, and do nothing when FALSE, then you just need to wire the string array from the input of the FALSE to the output without any function.

Yddet

0 Kudos
Message 6 of 8
(2,626 Views)

Hi,

if it's a user interface you can make one loop and if not you can keep just the select case.

 

See attached file.

https://images.youracclaim.com/size/110x110/images/7c5d31f5-2069-4618-ba59-b710c2b6bbe4/CLD.png
Message 7 of 8
(2,618 Views)

@El-Awny wrote:

Yes, I just notice that but i faced another problem
when i add Empty String it adds an empty place in the array
I just want not to add anything and keep the place not used


Yes? That's the definition of adding an empty line. What you want is the Insert (it's probably better with Build Array) to be in a case structure. Either it builds to the Array with a name, or nothing happens.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 8 of 8
(2,549 Views)