LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A button driven user interface in labview

Solved!
Go to solution

I have a clarification @JK1. For step 3 of your solution, if I use a state machine (I just read about them from http://zone.ni.com/devzone/cda/tut/p/id/3024 ) using a loop and a case structure, then will my front panel change appearance change to reflect the new GUI of each state as i transition from state to state?

Do I make separate VI's for each of my sub-tasks with the GUI's I want for them, and then insert them in their corresponding state in the "main" VI?

Thanks

0 Kudos
Message 11 of 16
(1,422 Views)

Considering your application:

 

1. Main screen (after welcome screen) has five buttons.  So the state machine for this screen will have cases to handle these five buttons.

2. If any one of the button leads to a GUI then that GUI will have its own state machine to handle the buttons.

3. So each GUI with buttons will have individual state machines to handle the buttons in FP.

 

Hope it helps.

With regards,
JK
(Certified LabVIEW Developer)
Give Kudos for Good Answers, and Mark it a solution if your problem is solved.
Message 12 of 16
(1,418 Views)
Yeah I understood what you are saying, but one doubt remains. Considering a trivial GUI, say I have 5 different kind of numeric indicators. and i want that on pressing one of the 5 buttons the corresponding indicator (and none of the others) appears. While I was doing this originally using event structure, I found that placing a different indicator for each case on the block diagram resulting in all 5 appearing on the front panel at once, which I dont want. Will that happen here as well?
0 Kudos
Message 13 of 16
(1,412 Views)
Solution
Accepted by Rainbow_Warrior
You need to use property nodes for them & make it visible/invisible as per your req...
- Partha ( CLD until Oct 2027 🙂 )
Message 14 of 16
(1,408 Views)

Rainbow_Warrior wrote:

Will that happen here as well?


This is based on how you design you appl in LV.

 

It can be made similar or dissimilar, as you wish...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 15 of 16
(1,401 Views)
I think this is the first time my reply got marked as the solution. Smiley Happy
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 16 of 16
(1,369 Views)