Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help solving for the state table. Any help would be greatly appreciated. Here is the state diagram done and any other information that
I need help solving for the state table. Any help would be greatly appreciated. Here is the state diagram done and any other information that may seem helpful.
Sequence: B CA CAB BCACAB . . . . XOX * XX0 R N OXX BCACAB O XX R ) - 7 BCACA (BCAC Yy The controller for a training device to evaluate whether a test subject (person or animal) can correctly push a sequence of buttons, in this case BCACAB. If the subject correctly completes the sentence, a cookie will be dispensed. If the subject makes an error, an electric shock is. delivered, and they must go back to the beginning. In the lab, the cookie dispenser and the shocking device will be simulated by lighting LEDs. Inputs (1) "A" (2) "B" (3) "C" Output Signals (1-5) Five yellow LEDs indicating progress through the sequence. (6) A green LED indicating dispensing of a cookie (7) A red LED indicating an electric shock being administered Detailed Description of Behavior 1. The system should start in the "ready to start" status, with no LEDs on. It should stay in ready status until one of the inputs is activated 2. If the correct input is activated (for example A, if one is in ready status), the system should move to the next state and an additional yellow progress LED should be activated. Once in the next state, the system should remain there until another input is activated. If no input is activated...the system should remain in the same state. 3. If at any time an incorrect input is activated (for example, B or C in the start state, or A or C in the next state after ready)..the system should deliver a shock (show a RED led) for one cycle. showing a red LED, and then go back to the start. 4. If the sequence is completed, the system should deliver a cookie (show a green LED) for one cycle, and then go back to the start. 5. If the subject is pushing two or three buttons at a time, the system should deliver a shock and return to the start. 6. Note that the subject needs to release each button before the next clock cycle or risk getting shocked. For example.mif the subject presses B first and move to the next step, and then continues to hold down the B button, at the next clock cycle they will get shocked because the system expects to see either a C or no button pressed. Sequence: B CA CAB BCACAB . . . . XOX * XX0 R N OXX BCACAB O XX R ) - 7 BCACA (BCAC Yy The controller for a training device to evaluate whether a test subject (person or animal) can correctly push a sequence of buttons, in this case BCACAB. If the subject correctly completes the sentence, a cookie will be dispensed. If the subject makes an error, an electric shock is. delivered, and they must go back to the beginning. In the lab, the cookie dispenser and the shocking device will be simulated by lighting LEDs. Inputs (1) "A" (2) "B" (3) "C" Output Signals (1-5) Five yellow LEDs indicating progress through the sequence. (6) A green LED indicating dispensing of a cookie (7) A red LED indicating an electric shock being administered Detailed Description of Behavior 1. The system should start in the "ready to start" status, with no LEDs on. It should stay in ready status until one of the inputs is activated 2. If the correct input is activated (for example A, if one is in ready status), the system should move to the next state and an additional yellow progress LED should be activated. Once in the next state, the system should remain there until another input is activated. If no input is activated...the system should remain in the same state. 3. If at any time an incorrect input is activated (for example, B or C in the start state, or A or C in the next state after ready)..the system should deliver a shock (show a RED led) for one cycle. showing a red LED, and then go back to the start. 4. If the sequence is completed, the system should deliver a cookie (show a green LED) for one cycle, and then go back to the start. 5. If the subject is pushing two or three buttons at a time, the system should deliver a shock and return to the start. 6. Note that the subject needs to release each button before the next clock cycle or risk getting shocked. For example.mif the subject presses B first and move to the next step, and then continues to hold down the B button, at the next clock cycle they will get shocked because the system expects to see either a C or no button pressedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started