LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using menu in state machine

Hello

I have created a vi which uses a state machine and a cluster of buttons to
swap between various sub-vi's. I am still learning Labview and have recently
come across creating run-time menu's. I would like to be able to implement
menu's in my program such that the user can either use the buttons or the
menu to move to the sub-vi's. i.e. the default case of the state machine
needs to look for both a button press, AND a selection from the menu.

Is this possible?

Jon
0 Kudos
Message 1 of 6
(3,612 Views)
If you've played with them, I'm sure you are familiar with 'get menu selection' vi. This vi you have to wire the item tag to a case. Each possible item tag has a case along with one more for no selection or 'default'. In this case put your buttons. So if a menu selection is made, some identifier is passed out of the corrosponding case. If no menu selection is made, the default case is called and the buttons are checked.

Jared
0 Kudos
Message 2 of 6
(3,612 Views)
now, why didn't I think of that???! 🙂

That works great - thanks a lot!

Jon.


> If you've played with them, I'm sure you are familiar with 'get menu
> selection' vi. This vi you have to wire the item tag to a case. Each
> possible item tag has a case along with one more for no selection or
> 'default'. In this case put your buttons. So if a menu selection is
> made, some identifier is passed out of the corrosponding case. If no
> menu selection is made, the default case is called and the buttons are
> checked.
>
> Jared
0 Kudos
Message 5 of 6
(3,612 Views)
I've attached an example (LabVIEW 6) of my favorite state machine architecture. It is based on using queues and handles both buttons and pull-down menus very effectively
0 Kudos
Message 3 of 6
(3,612 Views)
Dennis,
Do you have a LV5.1 version of the file you could send me, please?
Russ (rjirberg@aol.com)
0 Kudos
Message 6 of 6
(3,612 Views)
Hi Jon,

some time ago I wrote a 'User Interface Template.vi', which was supposed to
demonstrate the use of a state machine for user inputs via
buttons/controls/menus in a tutorial group.

I attach it here (private mail only), but unfortunately it's documentation is a
mixture of English and German. See if it helps ...

Dr Jon Atkinson schrieb:

> Hello
>
> I have created a vi which uses a state machine and a cluster of buttons to
> swap between various sub-vi's. I am still learning Labview and have recently
> come across creating run-time menu's. I would like to be able to implement
> menu's in my program such that the user can either use the buttons or the
> menu to move to the sub-vi's. i.e. the default case of the state machine
> needs to look for both a bu
tton press, AND a selection from the menu.
>
> Is this possible?
>
> Jon

--
Dr. Franz Josef Ahlers
Section Semiconductor Devices
Physikalisch-Technische Bundesanstalt
Bundesallee 100
D-38116 Braunschweig
phone: (+49) 531 592 2419
fax: (+49) 531 592 2405
0 Kudos
Message 4 of 6
(3,612 Views)