LabVIEW Academy Question Bank

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 63

1.

Scenario: Given the following VI:

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.

Wire Data Type


1
2
3
4
5
6
7
8
9

Letter Data Type


A Boolean scalar
B Boolean one-dimensional array
C Boolean two-dimensional array
D Double-precision floating-point scalar
E Double-precision floating-point one-dimensional array
F Double-precision floating-point two-dimensional array
G Dynamic
H Enumerated scalar
I Enumerated one-dimensional array
J Enumerated two-dimensional array
K Integer scalar
L Integer one-dimensional array
M Integer two-dimensional array
N Numeric
O String
P Text
Q Waveform

2. Scenario: Given the following VI:

Question: What is the correct method to repair the broken wire?

a. Enable indexing on the tunnel.


b. Replace the tunnel with a shift register.
c. Replace the While loop with a For Loop.
d. Change the time constant to a non-zero number.
e. Change the frequency so it is greater than 1.
3. Scenario: Given the following three (a, b, and c) state machines:

Question: Which state machine is the most scalable?

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?

a. 001.1 001.1 001.1


b. 001.1
001.1
001.1
c. 1.111 1.111 1.111
d. 1.111
1.111
1.111
e. 1.111111 1.111111 1.111111
f. 0 1.111 1.111
g. 1.111
1.111 1.111
1.111 1.111 1.111

5. Scenario: Given the open file function below:

Control or Constant wired to the File Path Input Terminal

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.

Temperature Indicator wired to Case


Temperature Structure Output Terminal
Indicator
wired to Case Structure
Output Terminal

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

8. Scenario: Given the code snippet below:

Question: What does the red dot indicate?


a. The wire did not connect to the terminal.
b. The label is wrong.
c. Data was coerced from 32-bit integer to double-precision floating point.
d. There will not be any output from the addition function.
e. Additional input terminal wiring is required.

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.

Question: Which of the following data types is most appropriate?


a. A 3D array of double-precision floating-point data types.
b. A cluster of two integers and an array of double-precision floating-point data types.
c. A waveform data type.
d. A cluster of two string indicators and an array of double-precision floating-point data types.

11. Scenario: Given the Front Panel shown below:

Question: What should be changed?

a. Add more colors.


b. Add more complex fonts.
c. Move controls to the left.
d. All VIs need a stop button, so add one.

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.

Question: Which approach(es) will work?


a. A and B
b. B and C
c. A and C
d. A, B, and C
e. A
f. B
g. 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?

a. Double-precision floating point


b. 32-bit integer
c. String
d. Enumerated
e. Text Ring
f. Menu ring
g. Text

14. Scenario: Given the following application:


Question: Which of the following is the best to use in place of the blank box?

a. Shift Register with indexing enabled


b. Shift Register with indexing disabled
c. Tunnel with indexing enabled
d. Tunnel with indexing disabled

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

19. Scenario: Given the following block diagram:

Question: What is written to file?


a.
0.0002.0004.000
b.

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. A sequence structure nested in a while loop


b. A sequence structure nested in a for loop
c. A case structure nested in a while loop
d. A case structure nested in a for loop
e. A type defined constant and a shift register.
21. Scenario: You must build a state machine with four states: Acquire, Analyze, Display, and Save. You
want to use a type-defined constant so the VI is scalable.

Question: Which one of the following type-defined enumerations is correct?

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. The case structure can’t have four items. It is limited to two.


b. Modify the enumerated constant to a string constant.
c. Change the tunnel to a shift register.
d. Right click the case structure and choose add a case for every value.
24. Scenario: Given the following block diagram:

Question: How do you correct the broken run arrow?

a. Wire an input from inside the loop to the shift register.


b. Add some cases to the case structure.
c. Replace the enumerated constant with a string constant.
d. Replace the while loop with a for loop
e. Change the while loop conditional terminal to continue if true.
f. Replace the case structure with a sequence structure.
25. Scenario: In the following block diagram, you would like to have the Acquire case first in the list of
case structure labels:

. Question: What is the easiest way to change the order?

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. Not all of the case structure tunnels are wired.


b. The wire from the stop control to the while loop selector terminal isn’t connected.
c. The number of items in the enumerated constant wired to the case selector is not equal to
the number of cases.
d. A shift register was used instead of a tunnel.
e. Errors are not handled.
27. Scenario: You have been asked to develop a state machine with an acquire state that acquires one
differential channel of data in Voltage units with a range of ± 10 V from analog input channel 1 with
the DAQ Assistant that will acquire 100 samples at 100 Hz each time the acquire state executes.

Question: Which DAQ Assistant configuration should you use?

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.

Question: Which of the following diagrams correctly accomplishes the goals?

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.

Question: Which of the following will correctly initialize the application?

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.

Formatted: Bullets and Numbering

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.

Question: Which initialize state best accomplishes the task?

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

Question: Which block diagram best matches the flow chart?

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.

40. Which of the following best describes a digital signal?

a. Continuously varying values.


b. A sinusoidal shape.
c. Noise from a microphone.
d. Two discrete levels—high level (on) or low level (off).
e. Temperature from a thermocouple.

41. Which of the following best describes an analog signal?

a. A series of pulses whose value is either 0 or1.


b. Continuous variation of a voltage or current with respect to time.
c. A sequence of binary values.
d. A counter/timer pulse.

42. Which of the following best describes signal conditioning?

a. Converting a physical property to an electrical signal.


b. The process of measuring and manipulating signals to improve accuracy that might
include isolation, filtering, and amplification.
c. Transforming time domain signals to the frequency domain.
d. Minimizing ADC error by setting the voltage range in the DAQ Assistant.

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.

You might also like