LabVIEW Academy Question Bank
LabVIEW Academy Question Bank
LabVIEW Academy Question Bank
1
2
8 5
7
6
Question: Identify the data type of the wires labeled with numbers 1-9 by writing the appropriate letter
next to the number in the table below. The letters associated with possible data types are listed below.
a.
b.
c.
4. Scenario: 1.111111 is the value of voltage output from the DAQ Assistant in the following
State Machine:
Question: What will be written to the file in the first three cycles through the states?
Question: What is the correct data type to use for the input constant or control?
a. String
b. Text
c. Cluster
d. Enumerated
e. File Path
6. Scenario: The VI block diagram shown below converts voltage from data acquisition to
temperature. You are asked to add an indicator to display temperature with two digits of precision.
Question: Which data type should you use for the indicator?
a. Boolean
b. Enumerated
c. I32
d. Double-precision floating point
e. U8
7. Which data type CANNOT be wired to the selector terminal of a case structure?
a. Boolean
b. Double-precision floating point
c. 32-bit Integer
d. String
9. Scenario: You need to add a graphical indicator to the location shown below:
Graphical Indicator
Question: Which of the following is the best graphical indicator to use in this program?
a. Waveform Graph
b. Waveform Chart
c. Intensity Chart
d. XY Graph
10. Scenario: You are collecting temperature data continuously and want to store it in computer
memory along with the time data collection started and the delta t between measurements.
12. Scenario: You need to execute the display State after the Acquire State and are considering
three approaches (A, B, and C).
A.
B.
C.
13. Scenario: You are building a large state machine. You want it to be scalable so you can add
additional states quickly. Therefore, you are making the state transition constants from a type-defined
control.
Question: Which data type should you use for the control?
15. Scenario: You need to build a simple temperature data logger. It acquires a value from a
thermocouple every second, converts the value to temperature in Celsius units and stores it in a file.
Question: Which of the following design patterns is the best starting point for the development of this
application?
a. Master slave
b. Producer consumer
c. Single-loop general VI
d. State machine
e. Sequence
16. Scenario: You need to build a complex application that acquires data at the fastest rate possible from
an accelerometer, processes it with a processor intensive transformation, displays the data and results,
and writes the processed data results to file.
Question: Which of the following design patterns is the best starting point for the development of this
application?
a. Generate and display
b. Producer consumer
c. Single-loop general VI
d. State machine
e. Sequence
17. Scenario: The front panel of a VI displays the following plots on a graph indicator:
Question: Which of the following four block diagrams (a, b, c, or d) would create these plots?
a.
b.
c.
d.
18. Scenario: Given the following block diagram and Write to Measurement File configuration information:
Question: What is the format (rows and columns) of the data written to file test.lvm after executing the block
diagram?
a.
2.575015 4.142398
65.10707 61.20063
b.
2.083041
7.403044
c.
5.0359 2.0538 6.488 3.5838 5.0359 1 0
d.
2.575015
65.10707
4.142398
61.20063
e.
2.575015 4.142398
2.000
4.000
c.
2.000 4.000
d.
0.000 2.000 4.000
e.
0.000
2.000
4.000
20. The basic state machine design pattern consists of which of the following structures?
a.
b.
c.
d.
e.
22. Scenario: Given the following block diagram:
Question: What is the most likely reason for the broken Run Button Arrow?
a. The number of items in the type defined constant doesn’t match the number of cases.
b. You can’t wire a type-defined data type to a Case Structure.
c. The wire goes through a tunnel instead of a shift register.
d. The while loop conditional terminal is not wired.
23. Scenario: A constant created from a type-defined enumerated control with four items is wired to a case
structure selector terminal as shown in the block diagram below. The case structure only has two
items.
Question: How can you expand the number of items in the case structure to match the four items in the type-
defined enumerated constant?
a. Delete the type defined constant wired from outside the loop and rebuild the constant with
the correct order.
b. Delete the case structure, create a new one, and rewire it.
c. Right click the case structure, choose rearrange cases, and move the save item lower in the list.
d. Delete the Save case, move to the Display case, right click the case structure and choose “add
a case after.”
26. Scenario: Given the following block diagram:
Question: What is the most likely cause of the broken run arrow?
a.
b.
c.
d.
28. Scenario: You are building a state machine to acquire data, accumulate error data, and allow the user
to change the rate and number of samples while the program is running.
Question: Which of the following is the best code to accomplish these goals?
a.
b.
c.
d.
e.
29. Scenario: You have been asked to develop a state machine that acquires data and performs a
spectral analysis. The Acquisition state is shown below.
Question: Which of the following Analysis states analyzes the data without overwriting or changing the
acquired data, accumulates error data, and makes the analyzed data available to other states for display
and writing to file?
a.
b.
c.
d.
e.
f.
30. Scenario: You are building a state machine that acquires 100 points of data in the acquire state and
transitions to an analysis state where a spectral analysis of the data is executed. The analysis state then
transitions to a display state where you need to display both the 100 acquired data points and the
spectral analysis of the 100 points as shown below.
Question: Which of the following will display the data as shown?
a.
b.
c.
31. You are developing a state machine and you need to develop a state for saving the data, stopping the
application, and handling errors. You want to stop if the number of data sets required by the user is
reached, if there is an error, or if the user presses the stop control. You want to give the user the option
of entering a file name and path before running the program. Which of the following will correctly
save the data, handle errors, and stop the program?
a.
b.
c.
d.
e.
32. Scenario: You are developing code that acquires 100 double-precision floating-point values each time
the Acquire State executes. Then you need to execute the Save state to save the data with a precision
of 2, stop the application, and handle errors. The program must stop if the number of data sets required
by the user is reached, if there is an error, or if the user presses the stop control. You want to give the
user the option of entering a file name and path before running the program and not after the program
is acquiring data. The program will open a file that is readable by a spreadsheet program.
Question: Which of the following will correctly save the data, handle errors, and stop the program as
required?
a.
b.
c.
d.
e.
f.
g.
33. Scenario: The Acquire state acquires one differential channel of data in Voltage units with a range of ±
5 V from analog input channel 1. The user specifies rate and number of samples with front panel
controls. You want to stop if the number of data sets required by the user is reached, if there is an error,
or if the user presses the stop control.
a.
b.
c.
d.
e.
34. Scenario: You have been asked to add an initialization state to a state machine with four states. The
newly added state will initialize data acquisition, open a file and initialize shift registers. The Acquire
state acquires one differential channel of data in Voltage units with a range of ± 5 V from analog input
channel 1. The user specifies the number of samples and the specified rate with front panel controls..
The Analysis state performs spectral analysis on the data. The Display state sends the data to two
graphs, one displaying the acquired data and the other displaying the spectral analysis results. The Save
state writes the data to an ASCII file. You want to stop if the number of data sets required by the user
is reached, if there is an error, or if the user presses the stop control.
a.
b.
c.
d.
e.
35. Scenario: You have been asked to add a shutdown state to a state machine that already has five states.
The Initialize state will initialize data acquisition, open a file and initialize shift registers. The Acquire
state will acquire one differential channel of data in Voltage units with a range of ± 5 V from analog
input channel 1. The user will specify the sample rate and number of samples with front panel controls.
The Analysis state performs spectral analysis on the data. The Display state sends data to two graphs,
one for displaying the acquired data and the other for displaying the spectral analysis results. The Save
state writes the data to an ASCII file. You want to stop if the number of data sets required by the user
is reached, if there is an error, or if the user presses the stop control.
Question: Which of the following will shut down the application
correctly? a.
b.
c.
d.
e.
36. Scenario: Given the following state machine:
Question: Which front panel best matches the block diagram?
a.
b.
c.
c.
d.
e.
37. Scenario: You have been asked to write a header “Signal 1” to the first line (row) of a file. Nothing
else should be written in the first row. The file should be readable by Microsoft Excel.
a.
b.
c.
d.
e.
f.
38. Scenario: Given the following flow chart:
Begin
Get information
Acquire Measurement
Celsius T = 100*V*(9/5)+32
?
True
T=100*V
(default)
Display Temperature
False Stop?
True
End
a.
b.
c.
d.
39. Scenario: Given the following state diagram and front panel:
Question: Which of the following no event states best matches the flow chart and front panel?
a.
b.
c.
d.
e.
43. If we don’t have data acquisition hardware connected to our computer, but we want to write a VI that
will work with data acquisition hardware later. Which one of the following is the best way to
simulate data acquisition hardware?
a. The hardware cannot be simulated, instead use a function like the function generator on the
block diagram.
b. Add the DAQ Assistant to the block diagram and set it to simulate.
c. Choose Create New by right clicking on Devices and Interfaces in MAX.
d. Write two VIs, one to simulate the signal and the other to read and process it.