Unit 2 – Matching_Numbers.vi

Engineering Computations with LabVIEW Assignment 2-3-2: Unit 2, Lesson 3 Review

Name:

After completingLesson 3 of the Matching_Numbers.vi unit, you should be able to answer the following questions. Your answers to these questions can serve as great study notes for the tests that will follow!

Answer the following questions in the space provided. Feel free to add additional space, as needed. If the addition of screenshots would help to answer/explain, then include screenshots. Submit a copy of this file to your teacher when you have completed the assignment.

Front Panel & Block Diagram

  1. What are input tunnels in LabVIEW? List several LabVIEW structures where input tunnels might appear.
  1. What are output tunnels in LabVIEW? List several LabVIEW structures where output tunnels might appear.
  1. What is the default mode for the input tunnel when a 1D array is brought into a for loop? A while loop? Why do you think the defaults are defined in this manner for each loop?
  1. What is the default mode for the output tunnel when a 1D array is brought out of a for loop? A while loop? Why do you think the defaults are defined in this manner for each loop?
  1. A “nested loop” is a loop inside of a loop. Create a simple VI to determine if it is possible to have the following scenarios in LabVIEW. For each of the four scenarios, wire the output from the Loop Iteration block in the inside loop all the way to the edge of the outside loop. Create an indicator to see the output for this data as it exits each loop.
  2. A for loop nested inside of a for loop
  3. A for loop nested inside of a while loop
  4. A while loop nested inside of a for loop
  5. A while loop nested inside of a while loop

For each of these situations, use the “Highlight Execution” feature to understand the data flow for these structures. You will need to know this to complete the Program Execution section of this review.

Program Execution

  1. Describe each numbered item and explain how data flows for the following block diagrams.
  1. What specific values would be output from the tunnel labeled “3” in each of the block diagrams from the previous question?
  1. Describe, in detail, the output from the comparison block in the diagram below.
  1. If you were to right-click on the output of the comparison block in the diagram from the previous question and select “Create Indicator,” what would appear on the front panel? Be specific.
  1. Explain how data flows for the various nested loops from Question #5.
  1. Look at the various nested loops in Question #5 and play around with having the indexing enabled and disabled at each output tunnel. What data is output from the outer loop in each scenario?