ELE480_LabVIEW_Lab01
ELE480_LabVIEW_Lab01
LabVIEW Lab 01
Exe01: Building a Temperature Conversion Virtual Instrument (VI)
Overview
This lab guides you through creating a simple LabVIEW VI that converts a temperature value from degrees
Celsius to degrees Fahrenheit using numeric controls, indicators, arithmetic functions, and basic wiring.
Learning Outcomes
Prerequisites
• LabVIEW installed on your computer.
• Familiarity with LabVIEW interface basics (opening palettes, switching between Front Panel and Block
Diagram).
• Basic understanding of temperature units.
Procedure
The two terminals representing these objects automatically appear on the Block Diagram.
A. Build the Block Diagram (Program Logic)
4. Display the Block Diagram (press Ctrl + E or choose Window ➤ Show Diagram).
5. Place arithmetic functions:
• On the Functions Palette, select Programming ➤ Numeric and drop Multiply, Divide, and Add nodes
onto the diagram.
6. Place three numeric constants:
• From Programming ➤ Numeric, choose Numeric Constant and click three times to place three
constants.
• Enter 9, 5, and 32 respectively.
Tip: If a constant loses focus before you type, double‑click it with the Labeling tool to edit.
7. Wire the components to implement the formula:
a. Build the ratio 9 ÷ 5
• Wire constant 9 to the top-left (x) input of the Divide node.
• Wire constant 5 to the bottom‑left (y) input of the same Divide node.
• The right‑hand output of Divide now carries the value 1.8 (9 ⁄ 5).
b. Compute C × (9 ⁄ 5)
• Wire the numeric control deg C to the top‑left (x) input of the Multiply node.
• Wire the output of Divide to the bottom‑left (y) input of Multiply.
• The Multiply output now represents deg C × 9/5.
c. Add the 32 °F offset
• Wire the output of Multiply to the top‑left (x) input of the Add node.
• Wire constant 32 to the bottom‑left (y) input of Add.
• The Add output now yields the final Fahrenheit temperature.
d. Display the result
• Wire the output terminal of the Add node to the numeric indicator deg F.
Tips:
• Hover over a terminal until it blinks to start or complete a wire.
• Click once while wiring to tack bends, and press Spacebar to flip wire corners.
• Cancel an unfinished wire with Esc.
D. Save, Run, and Test
Deliverables
• A working Convert_C_to_F.vi LabVIEW file. Submit the VI via the course LMS.
Troubleshooting Tips
• If palettes are hidden, right‑click an open area of the panel/diagram to redisplay them.
• Thick‑border terminals indicate controls; thin‑border terminals indicate indicators.
• If a wire appears broken (dashed), ensure all sources and terminals are connected to compatible data
types.