OCTOBER 24, 2022: Individual Output Individual Output
OCTOBER 24, 2022: Individual Output Individual Output
Individual Output
I. OBJECTIVES
- To be familiar with and simulate the graph in customizing a VI in LabVIEW
- To understand the concept of reducing samples by integrating the use of
LabVIEW
- To locate stored program example VI in LabVIEW to facilitate and speed up the
simulation of the given activity or program.
II. PROCEDURES
1. Open LabVIEW
2. Follow the instructions in the given manual
3. Run the VI/program.
4. Screenshot the front panel, block diagram, and program output.
5. Stop the program and save the file as Reduce Samples.vi
Opening a Blank VI
1. In the Getting Started window, click the “Create Project” button to display the Create
Project dialog box
2. Select Blank VI from the list of items and click finish
2. On the Functions palette, select the express>>input palette and move the cursor over one
of the express VIs on the input palette
3. Use the information that appears in the Context Help window to find the express VI that
can simulate a sine wave signal
4. Select the express VI that can simulate a sine wave signal and place it on the block
diagram. The configure simulate signal dialog box should appear,
5. Move the cursor over the various options in configure simulate signal dialog box
6. Configure the simulate signal express VI to generate a sine wave with a frequency of
10.7k Hz and an amplitude of 2
6. Enter sample compression into the quick drop dialog box, press <enter> and place the
sample compression express vi on the block diagram
7. Configure the sample compression express VI to reduce the signal by a factor of 25, and
set the reduction method to mean
3. right click the enable input and select create>>control from the shortcut menu to create a
switch. A boolean control will appear as shown below
4. Right-click the wire that connects the sine output of the simulated signal express VI to
the signals input of the sample compression express VI and select create>>graph
indicator from the shortcut menu
5. Use the wiring tool to wire the mean output of the sample compression express VI to the
sine graph indicator and Arrange the objects on the block diagram so they appear similar
to the following figure below
6. Display the front panel
7. Save the VI
Configuring A Vi To Run Continuously Until The User Stops It
1. Display the front panel and run the VI
2. Display the block diagram
3. Click the search button shown below, and enter while in the text box
4. Couple click while loop <<execution control>> to display the execution control
subpalette
7. Release the mouse to place the while loop around the express VIs and wires
8. Display the front panel and run the VI
2. Display the block diagram. A wire appears as a dashed blacked line with a red x in the
middle as shown below. The run button as shown below appears broken to indicate the VI
cannot run
3. Click the broken run button to display the error list window
4. In the errors and warnings list, select the wire: has loose ends error and click the help
button to display more information about the error
5. In the errors and warning list, double click the wire: has loose ends error to highlight the
broken wire
4. If the build table VI and the table terminal are not selected already, click an open area on
the block diagram to the left of the build table express VI and the table terminal, frag the
cursor diagonally until the selection rectangle encloses the build table express VI and the
table terminal as shown below
5. Drag the objects into the while loop and Use the wiring tool to wire the mean output of
the sample compression express VI to the signals input of the build table express VI
8. Run the VI
2. Click the search tab in the type in the word(s) to search for text box enter amplitude and
level measurements express VI and press the <enter> key
3. Click the location column header to sort the search results by content type
8. Select window>>show block diagram and read the block diagram comments
9. Close the example VI and return to the amplitude and level measurements express VI
topic in the labVIEW help
FIGURE A.2: The Final Block Diagram/Graphical Code of the Reduce Sample
■ PROGRAM OUTPUT
Figure B.2: The front panel of Amplitude and Level Measurements Express VI
■ BLOCK DIAGRAM/GRAPHICAL CODE
Figure B.4: The block diagram of Amplitude and Level Measurements Express VI
■ PROGRAM OUTPUT
● Opening a blank VI
● Adding an express VI that simulates a signal
● Searching the help and modifying a signal
● customizing a user interface from block diagram
● Configuring a VI to run continuously until the user stops it
● Using the error list window
● Controlling a speed of execution
● Using a table to display data
● Searching for examples
For the first part of the experiment, it focuses on opening the right type of project, which
in this case, a blank VI. A blank VI allows the users to completely start from scratch and
therefore a much clearer and cleaner interface. The second part focuses on the addition of an
express VI that simulates a signal. In this part, the users were able to utilize the context help
window of LabVIEW. The context help window allows users to read the information on the
current components in real time. For the simulated signal input from the function palette that was
placed in the blank VI, it was then configured to generate a sine wave with a frequency of 10.7
Hz and an amplitude of 2.
For the next part of the laboratory exercise, the students maximize the use of the help
window for the LabVIEW, this allows the students to further understand more about the different
components available in LabVIEW. The students also modified the signal by configuring the
sample compression express VI to reduce the signal by a factor of 25 and set the reduction
method to mean. For the next part of the experiment, the students were tasked with customizing a
user interface from the block diagram, in this part of the activity, the students were able to
customize the interface and as well as include indicators and control/s in the Blank VI. The
students were also able to learn the proper connections of the components.
For the next part of the experiment, the students configured the VI to run continuously
until they themselves stop it, this is obtained by using the while loop function available in the
LabVIEW. For the next part of the experiment, the students were tasked to attempt or fix issues
using the LabVIEW error list. The task was done by deleting a component that would cause an
error in the simulation, after locating the error using the error list, the students then fix the error
so that the simulation can run again.
For the second to the last part of the experiment, the students were tasked to provide a
table that would display the data of the signal being simulated. This was done by adding an
express table to the simulation. And finally, for the last part of the experiment, the students were
tasked to explore more examples or related content using the LabVIEW help, this allowed the
students to expand their knowledge more in using LabVIEW
V. CONCLUSIONS
In this third laboratory activity, the students were able to navigate and configure
customizing a VI by following the instructions given in the laboratory manual. To state, there is a
variety of properties of VI a LabVIEW can provide to its user, each of which can be customized
depending on the desired program needed in a specific activity to be done. The laboratory
exercise allowed the students to do the following sub-activities Opening a blank VI Adding an
express VI that simulates a signal, Searching the help and modifying a signal, customizing a user
interface from a block diagram, Configuring a VI to run continuously until the user stops it,
Using the error list window, Controlling a speed of execution, Using a table to display data,
Searching for examples. All of these sub-activities were done properly with the help of the
different elements provided by LabVIEW.
By accomplishing the laboratory activity, the students were able to expand their
knowledge of the different components, parts, and use of LabVIEW. This knowledge would be
beneficial for the students in the future since LabVIEW can be used for automated
manufacturing tests, automated product design validation, control and/or monitoring, and
condition monitoring. Overall, customizing a VI is a big help for the students in conducting their
laboratory activities because the students can modify the constructed diagram based on the
desired output of the activity. Since the LabVIEW application is based more on the icon and
visual representation of the program unlike the text-based, the students find it way easier to use
for their activity.