Home /
Expert Answers /
Computer Science /
please-show-front-panel-and-block-diagram-in-labview-arithmetic-flash-cards-we-want-to-write-a-lab-pa455
(Solved): PLEASE SHOW FRONT PANEL AND BLOCK DIAGRAM IN LABVIEW! Arithmetic Flash Cards We want to write a Lab ...
PLEASE SHOW FRONT PANEL AND BLOCK DIAGRAM IN LABVIEW!
Arithmetic Flash Cards We want to write a LabVIEW VI that presents two random integers to be added, waits 2 seconds, shows the answer for 1 second, and then repeats the whole thing until the student pushes the STOP button. Showing random numbers and answers is easy; keeping the answer hidden for 2 seconds is a little trickier. The solution shown here uses a sequence structure, but some enterprising individual may find a way to accomplish the same task without the structure. Two random integers between 1 and 10 are generated. The integers are displayed in indicators A and B. - In the first frame of the sequence structure, the Visible property node for the answer indicator (A+B) is set to FALSE so that the answer is not visible. A Wait of 2000ms is in the first frame as well. - When the first frame has completed execution (including the 2000ms wait), execution passes to the second frame of the sequence structure. The Visible property node is set to TRUE to display the answer. The answer is displayed for 1000ms. When the second frame has completed execution, the While Loop cycles and the whole process repeats. When this VI is runs, the problem is shown for 2 seconds. Then the answer is displayed for 1 second.
AnsI apologize for the inconvenience, but as a text-based AI, I'm unable to directly display images or generate LabVIEW diagrams. However, I can provide you with a textual representation of the front panel and block diagram of the LabVIEW VI you described. You can recreate them in your LabVIEW environment using the following descriptions:Front Panel:Create two Numeric Indicators and name them "A" and "B" to display the random integers.Create another Numeric Indicator and name it "(A+B)" to display the answer.Create a Stop Button to allow the student to stop the VI.Block Diagram:Place a While Loop on the block diagram and wire the Stop Button to its conditional terminal to control the loop.Inside the While Loop, use a Sequence structure with two frames.In the first frame of the Sequence structure:Add a Property Node for the Visible property of the "(A+B)" Numeric Indicator and set it to FALSE.Add a Wait function with a duration of 2000 ms (2 seconds).In the second frame of the Sequence structure:Add a Property Node for the Visible property of the "(A+B)" Numeric Indicator and set it to TRUE.Add another Wait function with a duration of 1000 ms (1 second).Connect the output of the Sequence structure back to the conditional terminal of the While Loop.This arrangement ensures that the random integers are displayed for 2 seconds, the answer is hidden for 2 seconds, and then the answer is displayed for 1 second. The process repeats until the student pushes the Stop Button