You are on page 1of 6

DPP C2

MARA -JAPAN INDUSTRIAL INSTITUTE,


Lot 2333, Jalan Kajang/Seremban,
43700 Beranang,
Selangor.

JOB SHEET

Diploma In Electronics Engineering (Measurement and


COURSE:
Control)
SESSION: JAN – JUNE 2022 SEMESTER: 3
DFC 30112 VIRTUAL
CODE / SUBJECT: SHEET NO: JOBSHEET 4
INSTRUMENT SYSTEM
NO OF STUDENTS: 21 WEEK:
DURATION: 2 HOURS VENUE: M&C LAB

PN WAN SAIDATULAKMA BINTI MEOR ZAINOL


LECTURER:

UNIT TITLE: UNIT 5 – USING DECISION MAKING STRUCTURES

TITLE: Creating SubVI


LEARNING At the end of the lesson, students should be able to:
OUTCOME:
1. Use and construct a subVis with a properly configure
connector pane, icon and documentation (P4)
2. Display ability to build and place sub–VIs on the block
diagram. (P3)
3. Organize in group for performing different kinds of virtual
applications through written report or oral presentation.
(P4)

TOOLS /
EQUIPMENTS / ITEM QTY
MATERIALS / LabView 2011 1
APPARATUS:

DRAWING AND AS PER ATTACH


DATA
INSTRUCTION Perform the practical and prepare the laboratory report.

1
DPP C2

PROCEDURE:
STEPS WORKING DETAILS
PART A: Creating SubVI
1. Create a SubVI that computes the average of five numbers input.
2. Then, by using the SubVI, multiply the computed average by a random
number in the range [0, …,1].
3. Display both (a) the average, (b) the random number, and (c) the
multiplication of the random number and the average, respectively.
4. Test your VI and Print screen your result in the Result Section.
5. Print Screen the Block Diagram and the Front Panel

PART B: Simulates A Temperature-Monitoring Device


Create a VI that simulates a temperature-monitoring device. Use the signal
simulator to simulate temperatures between 90 ⁰C and 100⁰C. Show the
temperatures on a thermometer with a digital display. Create a subVI (with
its own unique icon) that converts the Celsius temperature to both Kelvin
and Fahrenheit. The converted temperatures should be displayed on
the front panel as well. Your Front Panel should be as in Figure 1:

Figure 1

2
DPP C2

Programming hints
The Simulate Waveform express VI can be found on the functions palette
[Programming » Waveform » Analog Waveform » Waveform
Generation » Simulate Signal]. Set the signal type to DC, with an offset of
95. Click the "Add Noise" box, set the noise type to "Uniform White Noise,"
and set the noise amplitude to 5. The other settings can remain at the
default values.
The thermometer can be found in the controls palette [Modern » Numeric
» Thermometer].
Your answer should have:
1. Block diagram and front panel of the Temperature Converter
2. Block diagram and front panel of Kelvin (SubVI)
3. Block diagram and front panel of Fahrenheit (SubVI)
4. Properties of Simulate Waveform express VI

PART C: Modifying Simulates A Temperature-Monitoring Device


From Part B, modify the temperature monitoring VI so that it runs
continuously, allow the user to stop the VI with a button, and allows the
user to set the measurement rate with the number of measurements per
second. Also, allow the user to select both a high-level and a low-level
warning temperature, and these levels should be adjustable when the
program is running. A red LED should light up whenever the recorded
temperature exceeds the high level, and a blue LED should light up
whenever it goes below the low level. Your Front Panel should be as in
Figure 2:

3
DPP C2

Figure 2
Programming hints
i. The most common repetitive loop structures are the For Loop (which
executes a defined number of times) and the While Loop (which
executes until a particular condition is true). Make sure you understand
how to use each. In this case, the While Loop is preferred.
ii. To set the colors of the LEDs. Simply click on the LED and change it
from its Off state to its On state. Then use the coloring tool to change
the color of the On state.
iii. For timing the execution of a loop, I like to use the Wait Until Next ms
Multiple function found on the Timing subpalette. You'll have to figure
out how to convert the number of measurements per second into a
millisecond value that tells the loop how long to wait between
successive executions of the loop.

Your answer should have:


1. Block diagram and front panel of the ModifyTemperature Converter

RESULT:
Part A

4
DPP C2

Part B

Part C

DISCUSSION:
- While loop able make the VI to run continuously

- Simulate signal is to help user by giving input data from the waveform

- Measure rate is to make a time delay for each data input in milliseconds

CONCLUSION:
- Subvi can make the user work more compact and efficient
- Subvi is to reduce the number of component in block diagram by combining
them into one subvi

5
DPP C2

You might also like