I&M (Open Ended Lab)
I&M (Open Ended Lab)
LAB REPORT:
To understand different logics and tools that are being used in this lab.
Equipment Required:
LabVIEW software
Libraries to interface Arduino
Introduction:
LabVIEW, short for Laboratory Virtual Instrument Engineering Workbench, is a programming
environment in which you create programs using a graphical notation (connecting functional nodes via
wires through which data flows); in this regard, it differs from traditional programming languages like C,
C++, or Java, in which you program with text. However, LabVIEW is much more than a programming
language. It is an interactive program development and execution system designed for people, like
scientists and engineers, who need to program as part of their jobs. The LabVIEW development
environment works on computers running Windows, Mac OS X, or Linux. In LabVIEW we have 2 different
windows: the Front Panel and the Block Diagram.
TASK #01:
Temperature range is given from (-20-100) oC. With the help of Boolean functions, detect
various temperatures like hot, moderate and cold.
Procedure:
1. Open a New VI in LabVIEW.
2. Create Numeric Controls: Insert a Numeric Control and label it as "Temperature Input."
3. Boolean Functions for Temperature Ranges: Hot Temperature Function:
Use a "Greater Than" block from the Comparison palette.
Wire the "Temperature Input" to the 'input' of the "Greater Than" block.
Set the constant value to 30 (indicating temperatures above 30°C).
The output of this block will indicate whether the temperature is hot or not.
Moderate Temperature Function:
Use a combination of "Greater Than or Equal To" and "Less Than" blocks.
Use a "Greater Than or Equal To" block with a constant value of 10.
Use a "Less Than" block with a constant value of 30.
Wire the "Temperature Input" accordingly.
Use an "AND" block to combine the outputs of the two comparison blocks.
The output of this 'AND' block will indicate if the temperature is moderate.
Cold Temperature Function:
Use a "Less Than" block with a constant value of 10.
Wire the "Temperature Input" to the input of this block.
The output of this block will indicate if the temperature is cold.
4. Display Results:
Use Boolean indicators (LEDs or Boolean controls) to display the outputs of the Hot, Moderate, and
Cold conditions.
5. Run the VI:
Input different temperatures into the "Temperature Input" control to see which condition is met based
on the boolean functions created.
A linear relation between resister settings and output voltage is observed verifying the above claims.
Line regression can be used to get a smooth relationship.
TASK #02:
From engineering knowledge, temperature conversion is significant in variety of application.
The temperature of certain boiler is given in Fahrenheit. Using various numerical operators,
convert this temperature in centigrade at LabVIEW.
Procedure:
Multiply the Celsius temperature by 1.8 or 9/5.
Add 32 to the product.
TASK #03:
The purpose of a water level indicator is to gauge and manage water levels in a water tank. The
control panel can also be programmed to automatically turn on a water pump once levels get
too low and refill the water back to the adequate level. Implement Graphical interface for water
level indicator at LabVIEW.
TASK #04:
After Installing above software, Control pin 13 of Arduino using LabVIEW.
Procedure:
Open LabVIEW and create a new project.
Configure the LabVIEW Arduino interface by selecting the appropriate Arduino board and
communication port. 8
Design a user interface in LabVIEW to control pin 13 of the Arduino. This can be done using the front
panel and block diagram editing features of LabVIEW.
TASK #05:
Observe the characteristics of LM35 using LabVIEW interfaced with Arduino Nano.
Procedure:
Open LabVIEW and create a new project.
Configure the LabVIEW Arduino interface by selecting the appropriate Arduino board and
communication port.
Design a user interface in LabVIEW to display the temperature data from the LM35 sensor. This can be
done using the front panel and block diagram editing features of LabVIEW.
TASK #06:
Transmit the digital data from potentiometer to LabVIEW through Arduino interface.
Procedure:
Open LabVIEW and create a new project.
Configure the LabVIEW Arduino interface by selecting the appropriate Arduino board and
communication port.
Design a user interface in LabVIEW to display the digital data from the potentiometer. This can be
done using the front panel and block diagram editing features of LabVIEW.
Write the LabVIEW code to read the digital data from the Arduino and update the display in the user
interface. This can be done using the LabVIEW functions for data acquisition and control, such as "Read
Analog" or "Read Digital Input".
Conclusion:
LabVIEW simplifies and enhances Arduino programming by providing a visual programming
environment that streamlines the process of creating, testing, and deploying Arduino projects.
It offers pre-built libraries and tools for interfacing with various hardware, including Arduino
boards, eliminating the need for manual configuration and coding when connecting and
communicating with Arduino peripherals.