Problem 1
Build a VI that reverses the order of an array that contains
100
100
random numbers. For example,
array[00] becomes
array[9999],
array[11] becomes
array[9898], and so on.
tip:
Use the Reverse 1D Array function located on
the Functions>>All Functions>>Array palette
to reverse the array order.
Save the VI as Reverse Random Array.vi in the
C:\Exercises\LabVIEW Basics I directory.
Problem 2
Build a VI that accumulates an array of temperature values
using the
Thermometer VI. Set the
array size with a control on the front panel. Initialize an
array using the
Initialize Array function of
the same size where all the values are equal to
1010. Add the two arrays,
calculate the size of the final array, and extract the
middle value from the final array. Display the
Temperature Array,
Initialized
Array,
Final Array, and
Mid
Value.
Save the VI as Find Mid Value.vi in the
C:\Exercises\LabVIEW Basics I directory.
Problem 3
Build a VI that generates a 2D array of three rows by
1010 columns that
contains random numbers. After generating the array, index
each row, and plot each row on its own graph. The front
panel should contain three graphs.
Save the VI as Extract 2D Array.vi in the
C:\Exercises\LabVIEW Basics I directory.
Problem 4
Build a VI that simulates the roll of a die with possible
values 11 through
66 and records the number of
times that the die rolls each value. The input is the
number of times to roll the die, and the outputs include
the number of times the die falls on each possible
value. Use only one shift register.
Save the VI as Die Roller.vi in the
C:\Exercises\LabVIEW Basics I directory.
Problem 5
Build a VI that generates a 1D array and then multiplies
pairs of elements together, starting with elements
00 and
11, and returns the resulting
array. For example, the input array with values
123105711
1
23
10
5
7
11
results in the output array
235077
23
50
77
.
tip:
Use the Decimate 1D Array function located on
the Functions>>All Functions>>Array palette.
Save the VI as Array Pair Multiplier.vi in
the C:\Exercises\LabVIEW Basics I directory.
Comments, questions, feedback, criticisms?
Discussion forum
Send feedback
"A full introductory course on programming with LabVIEW."