Adamson University: College of Engineering Electronics and Communications Department
Adamson University: College of Engineering Electronics and Communications Department
Adamson University: College of Engineering Electronics and Communications Department
College of Engineering
Electronics and Communications Department
Experiment No. 2
Customizing VI
(TITLE)
14
SCHEDULE
Instructor
EXERCISE 2: CUSTOMIZING A VI
PROCEDURES:
1. In the Getting Started window, click the “Create Project” button to display the Create
Project dialog box
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
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
7. Display the front panel and arrange the control and indicators as shown in the figure
below
8. Run the VI