LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use 3 buttons to control the transitions of my case structure?

Solved!
Go to solution
Build the three booleans into an array and search for the element that is true. Wire the output to a case structure, for example. I am assuming that the code prevents more than one to be true at once. What should happen if none are true? What is the mechanical action of the booleans? What is the design pattern of your code?
0 Kudos
Message 11 of 14
(538 Views)

I just want to use the three buttons as part of the front panel. At one time, only one button can be true. I am receiving data by three channels through the port and wants to perform this task by having three buttons. These all things will be a part of subvi.

0 Kudos
Message 12 of 14
(524 Views)

If only one button can be true at any given time, I would use a radiobutton control instead of three individual booleans.

 

Is one button always true or can also no botton be true?

 

There are all very basic things. What part is giving you problems? Can you attach a simplified version of the code you have so far?

 


@ZohaibRamzane wrote:

These all things will be a part of subvi.


 

What are "these things". Are the buttons on the front panel of an interactive subVI or on the main VI?

0 Kudos
Message 13 of 14
(491 Views)

Depending on your exact needs, you may be able to get away with using a simple control and Index Array to select the array of choice from your 2D array...? Just select the array you what?

0 Kudos
Message 14 of 14
(454 Views)