05-05-2014 08:30 PM
My current project is based on a Tic Tac Toe Human vs Human project. I have the basic set up of the gameplay but have a issues in two main areas.
1. How do I set it so that once a button is pressed, it cannot be unpressed. Effectively locking it in place and the resulting value being sent only once place as well.
2. How can I have new infomation come into a while loop while an internal loop is continuing.
I will attach the files to better demonstrate point 2.
Basically my Boolean switch sends its T/F data to a while loop where the data remains, constantly looping. I want the while loop to send the T/F data to the indicator and then loop the button again.
Any help would be apprecaited.
05-05-2014 09:08 PM
You can use a Property Node for the control called disabled. Create the enum constant from it and set it to disabled.
Check your main while loop condition. You have a stop button wired to it, but it is set to Continue if True, not Stop if True. So the logic is backwards.
05-06-2014 09:59 AM
I would highly recommend you look into using the Event Structure. That way you react to button presses and value changes instead of polling the values constantly. Your CPU will thank you.