0% found this document useful (0 votes)
33 views

OCTOBER 24, 2022: Individual Output Individual Output

This document provides instructions for customizing a VI in LabVIEW. It describes opening a blank VI, adding an express VI to simulate a signal, searching help for a sample compression VI, customizing the user interface from the block diagram, configuring the VI to run continuously, using the error list window, controlling execution speed, using a table to display data, and searching for example VIs. It then shows the individual outputs of 3 students who completed the activity, including their front panels, block diagrams, and program outputs.

Uploaded by

Tango Foxtrot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views

OCTOBER 24, 2022: Individual Output Individual Output

This document provides instructions for customizing a VI in LabVIEW. It describes opening a blank VI, adding an express VI to simulate a signal, searching help for a sample compression VI, customizing the user interface from the block diagram, configuring the VI to run continuously, using the error list window, controlling execution speed, using a table to display data, and searching for example VIs. It then shows the individual outputs of 3 students who completed the activity, including their front panels, block diagrams, and program outputs.

Uploaded by

Tango Foxtrot
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 51

Individual Output

Individual Output

Indiv Output, Conclusion


Individual Output
Indiv Output, Discussion,
Conclusion

OCTOBER 24, 2022


EXERCISE 3: CUSTOMIZING A VI

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

3. Display the Block diagram


4. If the Functions palette is not visible, right click any blank space on the block diagram to
display a temporary version of the Functions palette. Click the thumbtack in the upper
left corner of the Functions palette to pin the palette so it is no longer temporary

Adding And Express Vi That Simulates A Signal


1. Select “help>>show context help” from the front panel or the block diagram to display
the context help window shown below.

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

7. Click the ok button to save the current changes in configuration


8. Move the cursor over the simulate signal express VI and read the information that
appears in the context help window

9. Save the VI as Reduce Samples.vi


Searching The Help And Modifying A Signal
1. On the block diagram, move the cursor over the simulated signal express VI to display
the context help window and clock the detailed help

2. Click the search tab and enter sample compression


3. Double click the sample compression topic in the search results

4. Read the description of the express VI


5. Press <ctrl space> keys to open the quick drop dialog box

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

8. Click OK button to save the current changes


9. Use the wiring tool to wire the sine output of the simulate signal express VI to the signals
input of the sample compression express VI

Customizing A User Interface From The Block Diagram


1. Open the block diagram and right-click the mean output of the sample compression
express VI and select create>>numeric indicator from the shortcut menu to create a
numeric indicator. A mean indicator will be shown just like in the figure below
2. right click the mean output of the sample compression express VI and select insert
input/output from the shortcut menu to insert the enable input

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

5. Select the while loop on the execution control palette


6. Move the cursor to the upper left corner of the block diagram. Click and drag the cursor
diagonally to enclose all the express VIs and wires as shown in the figure below

7. Release the mouse to place the while loop around the express VIs and wires
8. Display the front panel and run the VI

9. Click the stop button and save the VI


Using The Error List Window
1. Display the front panel and move the cursor over the mean indicator until the positioning
tool appears. Click the mean indicator, shown below, to select it and press the <delete>
key

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

6. Press the <ctrl B> keys to delete the broken wires


7. Click the close button to close the error list window

Controlling The Speed Of Execution


1. On the block diagram, search for the time delay express VI on the functions palette and
place it inside the while loop

2. Enter 0.25 in the time delay (seconds) text box


3. Click the OK button to save the current configuration and close the configure time delay
dialog box

4. Display the front panel and run the VI

5. Click the enable switch and examine the change in graph


6. Click the stop button to stop the VI

Using A Table To Display Data


1. Display the front panel
2. On the controls, palette search for the express table indicator and add it to the right of the
waveform graph

3. Display the block diagram

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

6. The block diagram should appear similar to the figure below


7. Display the front panel and arrange the control and indicators as shown in the figure
below

8. Run the VI

9. Click the enable switch


10. Stop the VI
11. Experiment with the properties by using the table properties dialog box
12. Save and close the VI

Searching For Examples

1. Select help>>labVIEW help to display the LabVIEW help

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

4. Double click the amplitude and level measurements express VI


5. After you read the description of the VI, click the open example button in the example
section near the bottom of the topic to open an example that uses the amplitude and level
measurements to express VI

6. Run the VI and move the vertical pointer slides


7. Stop the VI

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

10. Click the find related examples button


III. INDIVIDUAL ACTIVITY (GRAPHICAL PROGRAM AND PROGRAM OUTPUT)
A. DE JOSE, RONNIE
■ FRONT PANEL

FIGURE A.1: The Final Front Panel of the Reduce Sample


■ BLOCK DIAGRAM/GRAPHICAL CODE

FIGURE A.2: The Final Block Diagram/Graphical Code of the Reduce Sample
■ PROGRAM OUTPUT

FIGURE A.3: The Final Program Output of the Reduce Sample


B. DELOS REYES, JEREYEL
■ FRONT PANEL

Figure B.1: The front panel of Reduce Sample VI

Figure B.2: The front panel of Amplitude and Level Measurements Express VI
■ BLOCK DIAGRAM/GRAPHICAL CODE

Figure B.3: The block diagram of Reduce Sample VI

Figure B.4: The block diagram of Amplitude and Level Measurements Express VI
■ PROGRAM OUTPUT

Figure B.5: The output of Reduce Sample VI

Figure B.6: The output of Amplitude and Level Measurements Express VI


C. FERNANDEZ, MARIELLE RUCEL
■ FRONT PANEL

Figure C.1. Front Panel of Reduce Samples

Figure C.2. Front Panel of Amplitude and Level Measurements Express VI


■ BLOCK DIAGRAM/GRAPHICAL CODE

Figure C.3. Block Diagram of Reduce Samples

Figure C.4. Block Diagram of Amplitude and Level Measurements Express VI


■ PROGRAM OUTPUT

Figure C.5. Program Output of Reduce Samples

Figure C.6. Program Output of Amplitude and Level Measurements Express VI


D. FIGUEROA, THOMAS BERNARD ANGELO
■ FRONT PANEL

Figure D.1 Front panel of the Reduce Samples.

Figure D.2 Front Panel of Amplitude and Level Measurements Express VI


■ BLOCK DIAGRAM/GRAPHICAL CODE

Figure D.3 Block Diagram of Reduce Samples

Figure D.4. Block Diagram of Amplitude and Level Measurements Express VI


■ PROGRAM OUTPUT

Figure D.5 Program Output of Reduce Samples

Figure D.6 Program Output of Amplitude and Level Measurements Express VI


E. GATPAYAT, REXEL JARELL
■ FRONT PANEL

Figure E.1. Front Panel of Reduce Samples

Figure E.2. Front Panel of Amplitude and Level Measurements Express VI


■ BLOCK DIAGRAM/GRAPHICAL CODE

Figure E.3. Block Diagram of Reduce Samples

Figure E.4. Block Diagram of Amplitude and Level Measurements Express VI


■ PROGRAM OUTPUT

Figure E.5. Program Output of Reduce Samples

Figure E.6. Program Output of Amplitude and Level Measurements Express VI


IV. DISCUSSION ON PROGRAM FLOW
Laboratory Virtual Instrument Engineering Workbench or most commonly known as
LabVIEW is a National Instruments system-design platform and development environment for a
visual programming language. The most common people to use LabVIEW are Engineers or
people who are experts in creating automated research, validation, and production test systems.
In this laboratory, the students were tasked to perform an experiment to navigate and configure
customizing a VI and building a VI from a blank VI, by following the instructions given in the
laboratory manual. The laboratory activity was subcategorized into 9 parts, which include the
following:

● 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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy