Examen Module Complémentaire Labview: Exercise 1 (7 PTS)
Examen Module Complémentaire Labview: Exercise 1 (7 PTS)
Exercise 1 (7 pts)
Let’s consider the VI whose Front Panel is given by Figure 1 and Block Diagram is represented on
Figures 2 to 6, while Figure 7 represents the context help of some functions used in the VI.
1. What are the types of the elements appearing on the Front Panel?
2. Describe precisely the structures used in the Block Diagram.
3. Explain what this VI is doing and draw a flowchart of the implemented algorithm.
4. How many times the While Loop executes?
5. Propose a solution to make it execute only once, when the “Apply action” control is pressed.
Figure 1
1/13
Figure 2
Figure 3
Figure 4
2/13
Figure 5
Figure 6
Figure 7
3/13
Exercise 2 (3 pts)
Draw the Block Diagram of a VI that calculates and stores in an array the first ten elements of
the sequence defined by the following recursive equation:
un +=
1 un + 5
u0 = 0
1. How do you document a VI so that the description appears in the Show Context Help
popup window?
a. Use the VI Properties Documentation window
b. Type in the Show Context Help window
c. Create a free label on the front panel
d. Edit the LabVIEW help files
2. Can a wire be used to pass data between loops that are intended to run in parallel?
a. Yes
b. No
5. In the figure below, what will Result equal when this calculation is executed?
a. 55
b. 70
c. 65
d. Indeterminate
4/13
6. The function of a Cluster is to:
a. Allow grouping of mixed data types into logical structures.
b. Present data on the Front Panel using charts or graphs.
c. Provide a means of differentiating between data types on the Block Diagram.
d. Separate data objects by data type on the Front Panel.
8. What is the result in subarray after the following code has executed?
5/13
11. Which of the following allows you to plot any set of points, evenly distributed or not?
a. Waveform Graph
b. Waveform Chart
c. XY Graph
d. Both A. and C.
13. Which of the following methods is NOT a method to create a 1-D Array:
a. Place an Array Shell on the Front Panel and drag a Control into the shell.
b. Use a While Loop with auto-indexing disabled.
c. Use a For Loop with auto-indexing enabled.
d. Use the Initialize Array function.
14. Which of the following statements is true regarding the execution of the following code?
15. Which of the following accurately describes the output that results from execution of the
following loop?
6/13
a. The last three values from the DAQ Assistant will be displayed.
b. A running average of all measurements will be displayed.
c. An average of the last four measurements will be displayed.
d. None of the above
18. Which of the following statements is true regarding the use of Coercion Dots?
a. Coercion Dots improve program performance.
b. Coercion Dots represent a conversion from one data type to another.
c. Coercion Dots increases memory usage
d. Both A. and B.
e. Both B. and C.
7/13
20. Which of the following is NOT a component of an Error Cluster?
a. Status.
b. Code.
c. Source.
d. VI name
21. What is the value in XOR Result after the following code has executed?
a. 0
b. 1
c. True
d. False
22. Which of the following statements regarding the index of Arrays are NOT true:
a. The index is used to access a particular element of an Array.
b. The index ranges from 1 to n.
c. A 2-D Array has both a column index and a row index.
d. The index ranges from 0 to n-1.
24. Which chart update mode plots new data from left to right, then clears the chart and plots
the newer data?
a. Strip Chart
b. Scope Chart
c. Sweep Chart
d. Step Chart
8/13
25. What value is displayed in the Value Out indicator after the VI completes execution?
a. 0
b. 4
c. 5
d. 6
26. How many errors does LabVIEW display at the end of execution?
a. No Errors
b. One Error
c. Two Errors
d. Three Errors
27. Which of the following statements is TRUE about the following code segment?
a. The loop will execute once and the indicator Iteration will have a value of one
b. The loop will execute once and the indicator Iteration will have a value of zero
c. The loop will execute continuously and the program will have to be aborted
d. The loop will not execute and the indicator Iteration will have a value of zero
9/13
28. Why is a shift register used for the file refnum input on the For Loop?
a. If the Values to Write to File array is empty, the For Loop will run zero times, but the
refnum value will be passed through to the shift register output
b. The Write to Text File function modifies the value of the refnum on each For Loop
iteration
c. It is the only way to prevent the For Loop from building an array at the refnum output
terminal
d. No reason. A regular tunnel would provide identical functionality to the shift register
29. The following SubVI is loaded into memory and then run. At some later time it is still in
memory and is run a second time.
What is the value is displayed in the Sum indicator when the SubVI completes execution the
second time it is run?
a. 5
b. 10
c. There is no way to know
d. 0
30. Which of the following is FALSE about File I/O using binary or TDMS file formats?
a. Binary files can accept any LabVIEW data type
b. TDMS can accept any LabVIEW data type
c. TDMS is generally faster in writing than binary
d. Binary file I/O can be used by all versions of LabVIEW
10/13
31. What value is displayed in the Result indicator after the VI completes execution?
a. 3
b. 2
c. 1
d. 0
32. After the VI starts running, the user clicks the "Event1" button twice. The event structure
has no other event cases.
What will be displayed in the "Time 1" indicator when the VI stops executing?
a. 0
b. 1
c. 2
d. Undetermined
11/13
33. You have written a LabVIEW VI with three parallel code paths. All three error cluster
wires are wired into a Merge Errors function.
What error is reported to the user?
a. Error 1014, because Merge Errors outputs the first error to occur chronologically
b. Error 7, because Merge Errors outputs the first error wired in to it from the top down
c. Error 1, because Merge Errors outputs the most significant error of the errors wired in
to it
d. All three errors are reported, because Merge Errors concatenates the errors into a
single error message to display to the user.
a. 3
b. 4
c. 5
d. 6
12/13
36. What settings should be selected for a custom control so that all copies of the control are
of the same data type yet have the flexibility to use different colors and styles?
a. Control
b. Type Def.
c. Strict Type Def.
d. Flex Def.
37. If an input name on the Show Context Help window is in bold for a SubVI, which of the
following conditions are true?
a. Input values must be scalar.
b. An input is recommended, but not required.
c. An input is required.
d. A broken run arrow will result unless the input is wired.
39. Which of the following is NOT a traditional debugging feature used to help find errors in
a VI:
a. Highlight Execution.
b. Single Stepping
c. Breakpoints
d. Stop Values
40. What VI is typically used to terminate an Error Cluster wire and to display any error
message?
a. Merge Errors
b. One Button Dialog/Two Button Dialog
c. Generate Front Panel Activity
d. Simple Error Handler
13/13