LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to execute a VI such that the false case of the VI should not work in each iteration

I 'am posting One vI. In this if I put a while loop, I don't need the false case of the case loop to iterate. When I press the button on, the true case should execute. This is my interntion can you please help me

0 Kudos
Message 1 of 3
(2,289 Views)

Why don’t you just replace the “Boolean ctrl” for a true constant if you don’t need the FALSE case of your case structure? Even better, you can get rid of the case structure if you only need the TRUE case, that way when you add a while loop it will always execute the true part of your code.

 

I hope I’m making myself clear.

 

-- Luis Castaneda

0 Kudos
Message 2 of 3
(2,283 Views)

Your VI has 5 case structures, which one are you talking about?

There is no while loop, please explain what you mean. Where do you want to place one?

I don't know what a "case loop" is. Can you explain?

Again, you have 5 buttons. Which one do you press?

 

One big problem is that your Visa resource is not wired across some of the cases, thus losing it for the remainder of the code.

 

Please explain what the code is supposed to do, how it should be operated, and what you expect to happen. Thanks!

0 Kudos
Message 3 of 3
(2,270 Views)