01-14-2013 07:17 AM
Hi Everyone,
I am creating a program which controls a voice coil controller. In the program, I have a series of buttons that need to be pressed in a specific order, in order for the controller to operate correctly. Various users will be using this program so it's imperative that they are used in the correct order to prevent controller malfunction. I was wondering if there was a way, for when the program starts, all of the buttons except one be disabled. Once that first button is clicked, a second one becomes enabled, and so on.. until they all have been clicked in the right order. Finally, when a stop or reset button is clicked, the initial state of only one button active becomes true. I have attached the project if anyone would like to view the GUI. "Updated GUI Fretter" is the program and the "Test Control" tab is the one I am referring to. I'd initially like the "Download Program" button to be active, then once that is clicked, "set home position" becomes available for use, and so on to the right.
Any ideas or suggestions on how to make this function are greatly appreciated.
01-14-2013 07:49 AM
I would use a state machine and a property node to enable/disable the buttons.
01-14-2013 07:53 AM
Or an event structure, with each new button's event activating the valid disable/enable properties of the other buttons.
01-14-2013 08:04 AM
I take it back. Event structure is just what you need:
01-14-2013 08:08 AM
Excellent, this is exactly what I'm looking for. Thanks!