Question: Create a VI that simulates a safe. The operation will be as follows. 1. The user will put the correct combination on the knob, which
Create a VI that simulates a safe. The operation will be as follows.
1. The user will put the correct combination on the knob, which consists of 4 numbers. Example: 20, 7, 10, 5. 2. Then you will press the open button. 3. Immediately the motor (Experimental card) according to the example, will make 20 turns to the right, pause and move 7 turns to the left, pause, continue with 10 turns to the right, pause and end giving 5 turns to the left. In the event that the sequence were consecutive numbers, for example 10, 20 and 30, the motor movements would always be to the right, 10 turns to the right, pause, 20 turns to the right, pause and end up giving 30 turns to the right. 4. If the combination is correct, the safe will open (make an animation) and the led of the safe will turn green, otherwise the led will stay red, you will also hear the noise that the safe has been opened. 5. The program will use the producer-consumer structure and the event structure. 6. The engine speed must be low, so that the number of turns can be appreciated. 7. It is suggested to start by controlling the event of the knob, and instead of moving the motor, to show the number of turns as a counter in an indicator and in a boolean indicator to show the direction (left or right).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
