Questions
Answer the following questions based on what you've learned in this chapter. The questions in this chapter are open-ended with no wrong or right answer. They are meant to be exploratory so readers can come to their own conclusions.
- Write a test case to test the LEDs.
- Does the LEDs’ behavior make sense for what they are meant for?
- If there is a bug, can you debug it?
- Test the Ack button.
- Write a few test cases for the Ack button.
- Does the button work as intended?
- Can you refactor the
Alarms
function block and condense everything into one method? - Can you add extra functionality to the program or HMI? This is an open-ended question, so use your imagination.
- What should you do if there is no set value in the spinner? Should you set a default value, throw an alarm, or do something else? Use your imagination!
- Can the variables be renamed to better reflect what they do?
- Do the info, warning, and error alarm messages make sense? Can you improve...