Lab 2 Bio-Inst
Lab 2 Bio-Inst
LAB # 02
Temperature Converter
OBJECT:
Follow instructions to design a virtual temperature converter using NI LabVIEW Software.
THEORY:
Introduction:
In bioinstrumentation, accurate temperature measurement and conversion are critical for
various applications, including physiological monitoring and environmental control.
LabVIEW (Laboratory Virtual Instrument Engineering Workbench) provides an intuitive
platform for developing virtual instruments that can process and convert temperature readings
from one scale to another (e.g., Celsius to Fahrenheit).
Temperature Converter:
LabVIEW, a graphical programming environment, facilitates the development of a
temperature converter by allowing users to create an interactive interface. The front panel
incorporates input fields for temperature values and selection controls for the desired scales.
In the block diagram, conversion logic is implemented using mathematical functions and case
structures to manage different conversion scenarios. This approach not only simplifies the
process of temperature data conversion but also enhances usability, making it suitable for
various scientific and biomedical applications. By leveraging LabVIEW's capabilities, we can
create an efficient tool for accurate temperature measurements and conversions.
In this project, we demonstrate six key temperature conversions:
Celsius to Fahrenheit:
F = C x 9/5 + 32
Fahrenheit to Celsius:
C = (F – 32)x 5/9
Celsius to Kelvin:
K = C + 273.15
Kelvin to Celsius:
C = K - 273.15
Kelvin to Fahrenheit:
F = (K - 273.15) x 9/5
2022F-BBM-014
STEPS OF CONSTRUCTION:
1. Celsius to Kelvin (C to K)
1. Add Numeric Control: Insert a numeric control to accept user input for Celsius.
2. Add Addition Function: Place an addition block from the Functions palette.
3. Set Constant for 273: Attach a constant block with the value 273 to add it to the
Celsius input.
4. Display Result: Connect the output to a numeric indicator labeled "Celsius to
Kelvin."
2. Celsius to Fahrenheit (C to F)
5. Add Numeric Control: Insert a numeric control for Celsius input.
6. Add Multiplication Function: Place a multiplication block and set a constant value
of 1.8 to multiply the Celsius input.
7. Add Addition Function: Connect the multiplication output to an addition block
with a constant of 32.
8. Display Result: Connect the output to a numeric indicator labeled "Celsius to
Fahrenheit."
3. Kelvin to Celsius (K to C)
9. Add Numeric Control: Insert a numeric control for Kelvin input.
10. Add Subtraction Function: Place a subtraction block and set a constant of 273 to
subtract from the Kelvin input.
11. Display Result: Connect the output to a numeric indicator labeled "Kelvin to
Celsius."
4. Fahrenheit to Celsius (F to C)
12. Add Numeric Control: Insert a numeric control for Fahrenheit input.
13. Add Subtraction Function: Place a subtraction block with a constant of 32 to
subtract from Fahrenheit.
14. Add Division Function: Connect the subtraction output to a division block with a
constant of 1.8.
15. Display Result: Connect the output to a numeric indicator labeled "Fahrenheit to
Celsius."
5. Fahrenheit to Kelvin (F to K)
16. Add Numeric Control: Insert a numeric control for Fahrenheit input.
17. Add Subtraction Function: Place a subtraction block with a constant of 32.
18. Add Division Function: Connect the subtraction output to a division block with a
constant of 1.8.
19. Add Addition Function: Connect the division output to an addition block with a
constant of 273.15.
20. Display Result: Connect the output to a numeric indicator labeled "Fahrenheit to
Kelvin."
6. Kelvin to Fahrenheit (K to F)
21. Add Numeric Control: Insert a numeric control for Kelvin input.
22. Add Subtraction Function: Place a subtraction block with a constant of 273.
2022F-BBM-014
Final Checks
Arrange Indicators and Controls: Arrange the numeric controls and indicators in a readable
layout.
Wire Labels and Comments: Label each wire, block, and control to improve readability.
BLOCK DIAGRAM:
2022F-BBM-014
Results:
Conclusion:
In this lab, we learned how to use different functions of LabVIEW to replicate formulas and
apply comversions like in different units of temperature. It also helped us learn how to make
equations and insert constants into the equations