Professional Documents
Culture Documents
Labview Implemetations:
Easy VIs, Intermediate VIs, and Advanced VIs are the three types of data acquisition VIs available in
LabVIEW. The most common VI operations are performed by easy VIs. Since the configuration
complexity is built into the VI symbol, they are easy to use. Some of the Intermediate VIs are commonly
included in these icons, which are made up of the Advanced VIsAdvanced VIs are the most powerful and
flexible programming blocks for all data acquisition Vis, with the most programming power and
versatility. Immediate single point input and waveform input are two analogue data acquisition options.
Data is collected one point at a time while using the immediate single point input option. The software
time delay, which is usually u, is used to time the acquisition of the data points. The hardware clock,
which is activated to direct the acquired data points quickly and accurately, provides the timing. The
acquired data is temporarily placed in the memory buffer before the data acquiring VI can access it. Two
Easy VIs are used in the temperature control application mentioned in this article. The Sample Channel
for AI. While AO Update Channel is active, vi is used to acquire data from Analog Input Channels 0 and 1.
To monitor the fan's operation, vi sends 0 V or +5 V to D/A channel 0. LabVIEW and the DAQ board
driver are additional software needed to operate the temperature control VI mentioned here (NI-DAQ).
Results:
VIs are the name for all programmes written in the LabVIEW setting. A Front Panel and a Block Diagram
are included in each VI. The Front Panel has a variety of controls and indicators, while the Block Diagram
has a variety of functions and other VIs that are interconnected. As shown on the front panel of the
temperature regulation VI.Two Waveform Charts and other items can be found on the Front Panel. The
error signal (the difference between the set point and the process variable) is displayed on the top
Waveform Chart, while the VCO, or Controller status, is displayed on the bottom Waveform Chart. The
recessed box with two digital controls is one of the other items inside the Front Panel. The operator
enters the Set Point (VSP) value and the scaling factor (TCalibrate) to convert the temperature sensor
output from millivolts to degrees Fahrenheit. The current temperature is measured by the
thermometer, and the Controller condition is shown by the cooling indicator (ON orOFF). The Run/Stop
switch is the final item on the Front Panel, and it is used to start and stop the machine.
Fig 3 the front panel of temp controller
The Block Diagram is a graphical programme that depicts the temperature control operation's data flow.
Unlike a high-level language programme, such as the C language, where instructions are executed in the
order that they are written, the execution of a LabVIEW Page 4.356.6 VI is solely dependent on data
flow: a specific object within the Block Diagram can only execute if data is accessible or if data is not
available. Every node that has the data continues the execution. Figure 4 depicts the details of the Block
Diagram that can be used to illustrate the ON/OFF controller's action, while Figure 3 depicts the ON/FF
Controller's hysteresis as the Error signal differs between –2o F and +2o F. The procedure starts with a
search to see whether the Controller is turned on or off. VI 2 (AI) is used to do this. C1 returns either
TRUE or FALSE as a result. If TRUE, the controller is turned off; if FALSE, the controller is turned on. VI 2
gets its data from Device 1's Channel 1. (DAQ Board number). As previously mentioned, analogue input
Channel 1 is physically connected to DAC output Ch. 0, which controls the fan's operation. Thus, we can
decide if the Controller is ON or OFF by checking the DAC output Ch. 0. This will position the operating
point of the Controller on either the lower or upper segment of the hysteresis loop.
V1, M1, and S1 evaluate the Error signal's value at this stage (VE). The temperature sample is taken by
V1 from the analogue input Ch. 0, which is connected to the temperature sensor.
S1 subtracts this value from the Front Panel digital control Set Point (VSP) after M1 multiplies the
temperature sample by the scaling factor (TCalibrate). The Error signal is the end product. The Controller
must decide if the fan should be turned on or off. Nested Boolean Case structures are used to enforce
this decision-making method. The hysteresis loop in Fig. 4 should be followed by the reader. The True
frame of Boolean Case 1 will be executed if the output from Comparator C1 is TRUE. The Controller must
be turned off, and its operating point in Figure 4 is on the lower segment of the hysteresis loop. The next
step is to see if the Error signal is higher than –2o F. This is achieved within Boolean Case 1's True frame.
The True frame of Boolean Case is greater than –2o F if the Error signal is greater than –2o F. However,
+5V (ON) -2 0V (OFF) +2 Ve Vco Page 4.356.7 +2 Ve Vco Page 4.356.7 +2 Ve Vco Page 4. The False frame
of Boolean Case 2 outputs +5v to turn on the fan if the error signal is equal to or less than –2o F. The
Controller must be ON if C1 output is FALSE. If the Error signal is less than +2o F, comparer C3 in the
False frame of Boolean Case 1 tests it. If TRUE, Boolean Case 3's True frame outputs +5 V to keep the fan
running. The While Loop, which is activated by the RUN/STOP switch on the Front Panel, is used for this
operation. The While Loop is activated as long as the switch is in the RUN place since its terminal
equivalent in the Block Diagram outputs a TRUE to the condition terminal; a FALSE disables the While
Loop This procedure is performed using the While Loop, which is triggered by the RUN/STOP switch on
the Front Panel. Since its terminal counterpart in the Block Diagram outputs a TRUE to the condition
terminal when the switch is in the RUN position, the While Loop is active as long as the switch is in the
RUN position; a FALSE disables the While Loop. As long as the While Loop is activated, the code inside
the loop is executed repeatedly.
In a cross flow exchanger, a fluid flows perpendicularly to a heated or cooled tube or tube
bank. The rate of heat transfer from the element to air is given by (Newton's law of cooling).
Q = hA(T-TA) (1)
where
Q = rate of heat transfer BTU/hr, W
A = surface area of the element ft2 or m2
h = heat transfer coefficient BTU/hr.ft2 .oF or W/m2.oK
o
T = temperature of the element F or °C
o
TA = temperature of air F or °C
Integrating,
ln(T-TA) – ln(To-TA) = - (hA/mC)t (4)
Dimensional analysis shows that the Nusselt number is a function of Reynolds and Prandtl
numbers:
Nu = h d/k = f(Re, Pr) (5)
where
h = as defined in equation (1)
d = as defined under element specifications later
k = thermal conductivity of air, Btu/hr.ft.oF or W/m.oC
In practice, the Prandtl number is practically constant for gases under quite a wide range
of conditions and the rate of heat transfer is effectively a function of Reynolds number.
Nu = a R eb (6)
where
a and b are constants which should be found from experimental data.
The apparatus consists of a Perspex working section through which air may be drawn by
a centrifugal fan. Perspex rods may be inserted into the working section with their axes at right
angles to the direction of flow, thus simulating a typical cross-flow heat exchanger of the type
used in many branches of engineering.
One of the spaces provided in the working section for the rods is occupied by an element
consisting of a rod of pure copper approximately 10 cm in length. Arrangements are made for
heating this element in isolation from the working section, replacing it in the section and then
recording its rate of cooling as indicated by a thermocouple embedded at its center.
The centrifugal fan discharges through a graduated throttle valve. Adjusting this throttle
valve regulates the air velocity through the apparatus.
Specifications of the Element
m = 0.1093 kg (mass)
C = 380 J/kg oC (specific heat or heat capacity)
d = 0.0124 m (diameter)
A = 0.00404 m2 (surface area)
o
T = C (temperature)
1-
T-TA
Sol: 28-25=3 C
2-
V=Qt.V=Qt.
V=(5.00L1min)(75y)(1m3103L)(5.26×105(miny)=2.0×105m3
3-
The Reynolds Number is found from the equation,
4-
Nu=C(Re)^m(Pr)^n=h*d/K
6-table
UNSTEADY STATE HEAT TRANSDER (CROSS-FLOW HEAT TRANSFER)
Data Sheet
Group: Date:
Inlet Temperature:
7- Plot ln Nu vs. ln Re
Fig 6 block diagram output
Fig 7 Sampling time
Bibliography :
1)Basic Concepts of LabVIEW 4 by L. Sokoloff, Prentice Hall, 1997.
2)Analog and Digital Control Systems, by R. Gayakwad and L. Sokoloff, Prentice Hall, 1988.
3)Graphical Programming by G. W. Johnson, McGraw Hill, 1994.
4)LabVIEW Data Acquisition VI Reference Manual, National Instruments.
5) LabVIEW for Windows User Manual, National instruments.
6)LabVIEW Function Reference Manual, National Instruments.
7)LabVIEW for Windows Tutorial, National Instruments.
8)LabVIEW Getting Started with LabVIEW for Windows, National Instruments.
9)Industrial Control Electronics by J. Webb and K. Greshock, 2nd Ed., Merrill, 1993.
10) Modern Industrial Electronics by T. Maloney, 3rd Ed., Prentice Hall, 1996. Industrial Electronics by
Humphries & Sheets, 2nd Ed., PWS-Kent, 1986.