Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

lab simulation Class work In this experiment, you will develop a countdown timer program with the following specifications: one-second decremental period, start number can be

lab simulation
image text in transcribed
image text in transcribed
Class work In this experiment, you will develop a countdown timer program with the following specifications: one-second decremental period, start number can be controlled by the user from the front panel, the program will be finished when the counter reach zero, and a finish message should appear whenever the counter has reach zero. To do this task follow the steps below: 1. Open a new VI in LabVIEW. 2. Go to block diagram window then right click to on the function palette then select while loop structure as follow: Programming>> Structures>> While Loop 3. Add a shift register by right click on the Loop border, and then select Add Shift Register. 4. On the front panel add a Numeric Control, and then connect it to the left Shift Register added in step 3. 5. Now add Decrement block by selecting: Programming>> Numeric>> Decrement 6. Add Numeric Indicator to the output of the Decrement block by right click on the output terminal then select: Create>> Indicator 7. Add an Equal ? block by selecting: Programming>> Comparison>>Equal? 8. Add the compare value to be compared (the value to finish the program) to the lower left terminal of the Equal? To do so, right click on the lower left terminal then select: Create>> Constant 9. Add String Constant inside the Loop Structure, and another String Constant outside the Loop, then change to Indicator (right click>> change to indicator). Then connect them together through the Loop border. A tunnel through the structure will be automatically created. Write the Finish message inside the String Constant. 10. Add Time Delay block inside the Loop Structure by selecting: Programming>> Timing>> Time Delay 11. Connect all icons as figure 12 shown below: Numeric String Finish Time Delay Delay Time error in no error error out Figure 12: Classwork Block Diagram 12. Change all Numeric Blocks to be 132 data type. You can do so by right click on any Numeric Block then select: Representation>> 132 13. Now change the start number in the front panel to 10. 14. Run the VI and observe the front panel. Homework Homework (1): Modify the VI created in the classwork to count down every 0.1 second Homework (2): Modify the VI created in the classwork to have continuous LED blinking whenever the counting has been finished

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions