Professional Documents
Culture Documents
CAO Lab
CAO Lab
LIST OF EXPERIMENTS
INDEX
EXPERIMENT -01
4. CIRCUIT DIAGRAM:
Instrumentation and Control Engineering Department
Page 4
COMPUTER ARCHEITECTURE AND ORGANIZATIONAL LAB
MANUAL [EC-403(P)]
5. PROCEDURE:
1. Connect the trainer kit to the mains supply to the input socket of the kit.
2. Connect the strain gauge transducer to the input socket of the kit.
3. Connect the output of the instrumentation amplifier to the digital indicator.
4. Now adjust the zero adjust potentiometer to get zero reading on the indicator.
5. Now place the weight of 100gm at the center or near the border of pan fitted on
the strain gauge cantiliver arrangement.
6. Observe and note down the reading.
7. Place the weight from 100gm to 700gm to apply maximum stress.
8. Place the unknown weight and measure the output.
6. OBSERVATION
7. RESULT:
EXPERIMENT NO. 02
3. THEORY:
Theory of Platinum RTD
The variation in resistance of a metal with variation in temperature is the basis
of temperature measurement in a platinum RTD .The metal generally used is
platinum or tungsten. Platinum is especially suited for this purpose, as it can shows
limited susceptibility to contamination. All metals produce a positive change in
resistance with temperature. This of course is the main function of an RTD. This
implies a metal with high value of resistance should be used for RTDs .
The requirements of a conductor material to be used in RTDs are:
1. The change in resistance of material per unit change in temperature should be
as large as possible.
2. The material should have high value of resistance so that minimum volume of
material is used for the construction of RTD.
3. The resistance of material should have continuous and stable relationship with
temperature.
Platinum or tungsten wire is wound on a former to give a resistance in the range of
10K ohms depending on application. Tungsten is reserved for high temperature
application, as it is brittle and extremely difficult to work.
The construction of a platinum RTD is as under:
To the first approximation, resistance variation with temperature is linear
although more complex equations are used for greater accuracies. In fact standard
calibration charts are available for different materials. The RTD used in ST2302 is
of 100 at 0C (Temperature coefficient = 0.385 /C)
In the practical exercise you will connect the platinum RTD in series with a
high resistance to a D.C. supply and measure the voltage drop across it. Due to the
small variation of resistance, the current drop across transducer will be directly
proportional to its resistance.
The RTD consists of a thin film of platinum deposited on a ceramic substrate
with gold contact plates on each end.
The platinum resistance temperature detector is a highly stable and accurate sensor.
The resistance increases linearly at 0.385 /C). To develop a voltage a suitable
resistance should be connected between output and +5V and the wire wound
potentiometer is recommended. The RTD is located in the transparent plastic
heating compartment. Characteristics:
Instrumentation and Control Engineering Department
Page 7
COMPUTER ARCHEITECTURE AND ORGANIZATIONAL LAB
MANUAL [EC-403(P)]
4. CIRCUIT DIAGRAM
5. PROCEDURE
4. Switch ON power supply adjust the slider control of the 10K resistance to the
voltage drop across the platinum RTD is 109mV (0.109V) as indicated by digital
multimeter.
This calibrates the platinum RTD for an ambient temperature of 25C
since the resistance at 25C will be 109 Ohms. Note that the voltage reading across
the RTD in mV is the same as the RTD resistance in ohms, since current flowing
must be 0.109/109 = 1mA.
Connect the +12V supply to Heater Element input and note the values of
the voltage across the RTD with the voltmeter to its 200mV or 2V range, (this
representing the RTD resistance) and the output voltage from the IC temperature
sensor with the voltmeter set to its 20V range (this representing the temperature of
the RTD) after each minute given in the table 2.
5. Switch OFF the power supply and disconnect Heater element supply (+12)
6. Convert RTD temperature into C and add in table 2.
7. Plot the graph of RTD resistance in ohms against temperature in C. It should
resemble the one given below.
6. OBSERVATION TABLE:
Time (minutes) 0 1 2 3 4 5 6 7 8 9 10
RTD K
Temperature C
RTD Resistance
7. RESULT:
Temperature Vs Resistance Table
Experiment No.03
Seebeck effect
Upon heating, the Seebeck effect will initially drive a current. However, provided
the junctions all reach a uniform internal temperature, and provided an ideal
voltmeter is used, then the thermocouple will soon reach an equilibrium where no
current will flow anywhere ( ). As a result, the voltage gradient at any point
in the circuit will be given simply by , where is the
Seebeck coefficient at that point, and is the temperature gradient at that point.
The total measured end-to-end voltage can be found by adding up the voltage
contributions all along the wires. This leads to a measured voltage difference
independent of many details (e.g. neither the size nor the length of the conductors
matter):
between the hot and cold junctions (where ). Because the two wires give
different voltages leading up to the junction, the resulting measured overall voltage
is nonzero.
4. CIRCUIT DIAGRAM
5. PROCEDURE:
6. OBSERVATION TABLE:
7. RESULT:
JSS ACADEMY OF TECHNICAL EDUCATION NOIDA
Experiment No. 04
3. THEORY:
Set the probe menu attenuation coefficient as 10X and that of the switch in the
probe as 10X.
Connect the oscilloscope CH1 channel with the circuit signal input end and the
CH2 channel to the output end.
Operation Steps
1. Push down the AUTOSET button and the oscilloscope will automatically adjust
the waveforms of the two channels into the proper display state.
2. Push down the MEASURE button to show the MEASURE menu.
3. Press the F1 menu selection button and choose Source.
4. Press the F2 menu selection button and choose CH1.
5. Press the F3 menu selection button and choose CH2.
6. Press the F1 menu selection button again and choose Type.
7. Press the F2 menu selection button and choose Pk-Pk.
8. Press the F3 menu selection button and choose Pk-Pk.
9. Read the peak-to-peak values of Channel 1 and Channel 2 from the displayed
menu (see Fig. 54).
10. Calculate the amplifier gain with the following formulas.
Gain = Output Signal / Input signal
Gain (db) = 20log (gain) Wave Form of Gain Measurement
Example: Test the phase change of the signal after it passes through a circuit
network.
Connect the oscilloscope with the circuit and monitor the input and output signals
of the circuit.
For the examination of the input and output of the circuit in the form of X-Y
coordinate graph, please operate according to the following steps:
1. Set the probe menu attenuation coefficient for 10X and that of the switch in the
probe for 10X.
2. Connect the probe of channel 1 to the input of the network and that of Channel 2
to the output of the network.
3. Push down the AUTOSET button, with the oscilloscope turning on the signals
of the two channels and displaying them in the screen.
5. Adjust the VOLTS/DIV knob, making the amplitudes of two signals equal in
the rough..
6. Push down the DISPLAY button and recall the DISP SET menu.
7. Press the F3 menu selection button and choose XY for Format. The oscilloscope
will display the input and terminal characteristics of the network in the Lissajous
graph form.
8. Adjust the VOLTS/DIV and VERTICAL POSITION knobs, optimizing the
wave form.
9. With the elliptical oscillogram method adopted, observe and calculate the phase
difference (see Fig. 58).
Based on the expression sin =A/B or C/D, where, q is the phase difference angle,
and the definitions of A,
B, C, and D are shown as the graph above. As a result, the phase difference angle
can be obtained,
namely, = arcsin (A/B ) or arcsin (C/D). If the principal axis of the ellipse is
in the I and III quadrants,
Instrumentation and Control Engineering Department
Page 18
COMPUTER ARCHEITECTURE AND ORGANIZATIONAL LAB
MANUAL [EC-403(P)]
the determined phase difference angel should be in the I and IV quadrants, that is,
in the range of (0- /2)
or (3 / 2- 2). If the principal axis of the ellipse is in the II and IV quadrants, the
determined phase
difference angle is in the II and III quadrants, that is, within the range of ( / 2 - )
or (- 3 /2).
4. CIRCIT DIAGRAM:
5. OBSERVATION :
A B =Sin-1(A/B)
6. RESULT:
Experiment No. 05
3. THEORY:
Pressure is often equated to the unit of force exerted by a column of fluid, such as
mercury or water. For example, the atmospheric standard pressure is specified as
14.696 psi. This is identical to the unit force that a column of mercury 760 mm in
height exerts at its base. There for, it is common to refer to standard atmospheric
pressure as 760 mm Hg. It is obvious that fundamentally the unit of pressure is
neither millimeters nor inches and that these units have meaning only when
employed in the proper context.
Gravitational Transducers:
The simple well type manometer is one of the most elementary forms of pressure
measuring devices. In these types it is seen that because the fluid density is
involved accurate work will require consideration of temperature variation, the
manometer will posses a certain amount of temperature sensitivity.
Elastic Transducers:
Elastic elements operate on the principle that the deflection or deformation
accompanying a balance of pressure and elastic forces may be used as a measure of
pressure. A familiar example is the ordinary bourbon tube. A tube normally of oval
section, is initially coiled into circular arc of radius R. The included angle of the
arc is usually less than 360 degrees; however in some cases, when increased
sensitivity is desired, the tube may be formed into a helix of several terms.
As a pressure is applied to the tube, the oval section tends to round out, becoming
more circular in section. The inner and outer arc length will remain approximately
equal to their original lengths, and hence the only recourse for the tube is uncoil. In
the simple pressure gage, the movement of the end of the tube is communicated
through linkage and gearing to a pointer whose movement over a scale becomes a
measure of pressure.
Elastic Diaphragms:
Many dynamic pressure measuring apparatus employ an elastic diaphragm as the
primary pressure transducer. Such diaphragms may be either flat or corrugated.
The flat type is often used in conjunction with electrical secondary transducers
whose sensitivity permits quite small diaphragm deflections, while the corrugated
type is particularly useful when large deflections are required.
Diaphragm displacement may be transmitted by mechanical means to some form
of indicator, perhaps a pointer and scale as is used in the familiar aneroid
barometer.
b) Inductive types:
Variable inductance has been successfully employed as a form of secondary
transducer used with a diaphragm. Flexing of the diaphragm due to applied
pressure causes it to move toward one pole piece and away from the other, thereby
altering the relative inductances. An inductive bridge circuit may be employed.
Standard laboratory equipment such as an oscilloscope, VTVM as well as
recorders may be used to display the gauge output
.
c) Other type of secondary transducers:
Flexing diaphragms have also been used to alter capacitance as a means of
producing an electrical output. This method is not so common as those previously
discussed, primarily because of low sensitivity and the problems accompanying the
requirement for relatively high carrier frequencies.
Another method employs the electro kinetic potential developed by a fluid flowing
through a porous disk as a measure of pressure.
4. CIRCUIT DIAGRAM:
Pressure Sensor
5. PROCEDURE:
1) Connect the four wires coming out of transducers to the trainer kit as per the colors
of the wires written on the Board.
2) Switch on the Board Supply.
3) Open the air release valve completely.
4) Set the initial value of the display to zero (nearest zero value) by the potentiometer
provided.
5) Close the air release valve.
6) Start pumping the air in the Tank using the foot pump. Stop pumping when the
pressure value reaches to about 2 Kg/cm2 pressure.
7) Note the Digital value on the meter. Note that this value will be almost the same as
that shown by the dial gauge.
8) Now slowly release the air by opening the valve slowly in the steps of 0.2Kg/cm2
pressure. Again note the reading.
9) Plot the characteristic of pressure transducer on the graph.
6. OBSERVATION TABLE:
7. RESULT:
Instrumentation and Control Engineering Department
Page 23
COMPUTER ARCHEITECTURE AND ORGANIZATIONAL LAB
MANUAL [EC-403(P)]
EXPERIMENT NO. 06
3. THEORY:
LVDT i.e Linear Variable Differential Transducer as the name suggests is a type of
transducer which uses the difference of the output of two windings as a resultant
output to indicate the unit of parameter to be measured. A typical LVDT is shown
below for your reference.
A soft iron core provides the magnetic coupling between a primary coil and two
secondary coils, connected in series opposition. When the core is central and both
secondaries are identical, the voltage across them is equal in magnitude. However,
the output is zero as both the secondaries are in series opposition. As the core
moves up or down, the induced voltage of one secondary coil increases while that
of the other decreases. The output voltage, which is modulated, is the difference of
the two, since secondaries are in opposition. The output is proportional to the
displacement of the iron core. The device is very sensitive and is linear over a wide
range of motion.
The input voltage applied to LVDT is limited by the current carrying ability of the
primary coil. In most applications, LVDT sensitivities are great enough to that very
conservative ratings can be applied. Many commonly used transformers are made
to operate of 2 KHz frequency at 5V peak to peak.
Higher frequencies provide increased sensitivity. However in order to maintain
linearity, design differences, primary core length may be required for different
frequencies; and in general, a given LVDT is designed for a specific input
frequency.
Exciting frequency sometime referred as carrier frequency limits the dynamic
response of a transformer.
Transformer sensitivity is usually stated in terms of milli volts output per volt input
per 0.001 inch core displacement. It is directly proportional to exciting voltage and
output also increases with frequency. Of course the output also depends on LVDT
design, and in general, the sensitivity will increase with increased number of turns
on the coils. There is a limit, however, determined by the solenoid effect on the
core. In many applications this effect must be minimized; hence design of the
general purpose LVDT is the result of compromise.
Solenoid or axial force exerted by the core is zero when the core is centered and
increases linearity with displacement.
Instrumentation and Control Engineering Department
Page 24
COMPUTER ARCHEITECTURE AND ORGANIZATIONAL LAB
MANUAL [EC-403(P)]
4. CIRCUIT DIAGRAM:
5. PROCEDURE:
8. However the reading is first decreasing and then increasing. The voltage is
actually going ve but this ve sign is ignored while displaying the meter
output. But this verified the actual theory of the LVDT as explained in the
beginning.
9. An oscilloscope can be used to observe the waveform of the sine wave provided
to the LVDT.
10.Plot the graph between displacement and the digital readout.
6. OBSERVATION:
7. RESULT:
EXPERIMENT NO. 07
3. THEORY:
Capacitance Transducer
The transducer The measurement of displacement is an important subject in
process industry such as angular location / orientation of an object in job machine.
There are three basic transducers are used in industries the capacitive transducer is
one of them. A capacitor is formed by two parallel lates which has a uniform
distance between them is used in angular displacement measurement. The capacity
between the plates depends upon the plates covered common area A See fig.1.
The basic of a capacitive transducer is represented by familiar relation as
C = K0 A/D
Where K is the dielectric constant (= 1 for air), 0 is the permittivity (8.85Pf/ m), a
is the plates common area and d is the separation between plates. If such number of
plates is used to increase capacity then a number n-1, is used for multiplication. In
presenr set up such parallel plates capacitor is used.
Where K is the dielectric constant (=1 for air), 0 is the permittivity (8.85 Pf/m), A
is the plates common area and d is the separation between plates. If such number of
plates is used to increase capacity then a number n-1, is used for multiplication. In
present set up such parallel plates capacitor is used.
CIRCUIT EXPLANATION:
In present set up correction with pulse shaper is showing in fig.
The signal form excitation source is fed via non-inverting op-amp with a gain of
the output to op-amp exists virtual earth thus in view of it roter plates of transude
is at vitual earth. It is important to avoid disturbance generated by stray electric
field. The amplitude of signal obtained at the node a depends upon the capacitance
of transducer C, since c1 and c2 are constant. The signal obtained at node a is
further differentiated by pulse shaper. The differentiation is accompolished with c3
and R. Amplifier A prevent it from circuit loading.
4. CIRCUIT DIAGRAM:
5. PROCEDURE
6. OBSERVATION TABLE:
7. RESULT:
Experiment No. 08
2. APPARATUS REQUIRED: Fiber optic trainer kit, LUX meter, patch cords,
Multimeter.
3. THEORY:
Fiber optics: There has been a great advancement in the technology of fiber optics
sensors during the past few years. Instruments using optical fiber for measurement
of various physical parameters are already available in the market and considerable
research is being done related to applications of fiber optic sensor.
The fiber optic sensors provide high accuracy and sensitivity and a board dynamic
range by simple altering the characteristics of light in response to various stimuli.
In addition to accuracy, Precision, sensitivity and a board dynamic range, optical
fiber sensors are being used in hostile environments to reduce the hazards of shock
in sensing applications and to reduce the costs of remote sensing.
Fiber optic Sensor: - There are two basic types of fiber optic sensors and these
are: -
1. Pure fiber sensors. These sensors for their response depend upon on
environmentally induced changes in light as it travels through the fiber.
2. Remote optic fiber optic sensor: - The use optical fibers to carry light to a separate
device that responds to light stimuli. In most pure optic sensors, one of the two
effects happens to the light in response to some external effect. These are: -
i. The light can leak from the core into the cladding where it is eventually
absorbed.
ii. The light can be forced to travel a different distance than light travelling and
alternate optical path. This causes a phase difference to exist between two light
waves. This difference can be detected by combining the two light waves by
superposition and observing the resulting light can dark pattern.
Optical sensors use a single mode fiber, which is a low fiber with a very small core
and consequently a very small angle of acceptance of light. A basic scheme used
for measurements involving optical fiber sensors is shown in fig 19.49. The
sensing mechanism illustrated in the diagram causes a change is some
characteristic of the optical signal received at the detector. The some mechanism
may, in fact, be a characteristics or the fiber itself, or it may be a device external to
the fiber. In case the light signal received by the detector changes as a result of
some change in the fiber, then the sensor is called an intensity or intrinsic sensor.
On the other hand, if the light signal at the detector changes as a result of some
transducer type of device, then the sensor is called an interferometer or extrinsic
sensor.
4. CIRCUIT DIAGRAM:
Block Diagram
Intensity in
lumens
DC Voltage
5. PROCEDURE:
1. Connect the Trainer Kit to the Mains supply (220V AC) and switch on the Power.
2. Place the Lux meter at the output of the Optical sensor shown in the diagram.
3. Switch on the Lux meter.
4. Keep the potentiometer knob to the minimum position.
5. Connect a voltmeter to the input side as shown in the diagram.
6. Set the voltage by the potentiometer to say 0.5V and measure the reading on the
Lux meter.
7. Increase the DC voltage in steps of 0.5V and take another set of reading.
8. Keep incrementing the DC Voltage in steps of 0.5V and keep taking the output
reading.
9. Draw a graph between the DC Voltage and the lux meter reading which denotes
the intensity of light.
10.Verify that there is a linear relation between the Voltage applied and the light
intensity.
6. OBSERVATION:
7. RESULT:
EXPERIMENT 09
3. THEORY:
The balance conditions require that the sum of the phase angles of arms 1 and 4
equal the sum of the phase angles 2 and 3. Since the standard capacitor is in arm, 3,
the sum of the phase angles of arm 2 and 3 will be 0+90=90. In order to obtain the
90 phase angle neede for balance, the sum of angles of arm 1 and 4 must equal 90.
So, it is necessary to give arm 1 a small capacitive angle by connecting capacitor
CQ in parallel with resistor RQ. Small capacitive angle is very easy to obtain,
requiring a small capacitor across resistor R1.
Let Cx = Capacitor whose capacitance is to be measured.
Cq = A standard capacitor.
Cp = A standard capacitor for loss angle.
Rx = A resistance represents the loss in capacitor Cx.
Rq = A resistance represents the loss in capacitor Cq.
Rr = A non- inductive resistance .
Substituting these impedance in the general equation for a bridge, that is
Z1 Z3 = Z2 Z4
j j
RP RR = RQ / RX
CP CX
j RQ j
RP1R3R
= RXRQ
CP
CX
Equating the real and imaginary parts, we finally get,
RP R X
Rx =
RQ
Or
RQ CP
Cx =
RR
4. CIRCUIT DIAGRAM:
CP
RX
RP
CX
R
R
R
Q
CRO
A
R R
Cunkno
C P S
P
wn
1 C
P
OS C
2
C1 P
3 RR
B
1
R
D
R2
Os R
c2 R3
R R
R4
Q R
R5
C
Wiring diagram for Schering Bridge
5. PROCEDURE:
1. Take the trainer for Desautys Bridge and patch the circuit as shown in the wiring
diagram.
2. Keep the knob of variable resistor to its minimum position.
3. Connect the unknown capacitance in the arm marked CUNKNOWN.
4. Connect the trainer to 220V AC mains power supply and switch ON it.
5. Connect the CRO between the points OSC1 and OSC2, a sine wave of about 1KHz
will be observed.
6. Then connect the CRO at the points provided for it as shown in the wiring
diagram.
7. Select some value of R2. (Let it be RR1 = 100 CP (let CP1= 0.01)
8. Vary RQ in clockwise direction. The amplitude of sine wave will change.
9. If the selection of RR is correct, the amplitude will decrease to a minimum position
and after that, it will again start to increase. In other words, balance point NULL
POSITION (DC Line) can be observed on the oscilloscope. I.e., at balance, the
output waveform comes to a minimum voltage for a particular value of R Q and
then increases by varying RQ in any direction. If that does happen, select another
value of RR and also another CQ if needed.
10.When the balance condition will be achieved, power OFF the trainer, disconnect
the circuit and measure the value of RQ.
11.Then calculate the capacitance of the unknown capacitor using the relation
RQC
Cx =
P
RR
The actual values of the components measured after soldering are given below
and therefore these should be taken for calculation
RR1 = RR2 =
Instrumentation and Control Engineering Department
Page 37
COMPUTER ARCHEITECTURE AND ORGANIZATIONAL LAB
MANUAL [EC-403(P)]
RR3 = RR4 =
RR5 = CP1 =
CP2 = CP3 =
6. OBSERVATION:
Sl CP RQ RR Cx Mean Cx
No In F In In In F In F
7. RESULT:
EXPERIMENT NO. 10
3. THEORY: Precision potentiometers are simple rotary devices for obtaining shaft
position information. The most straight forward applications is the conversion of
mechanical position to a voltage. Basically a precision potentiometer consists of a
resistive element with a movable arm or slider in contact with the element. As the
arm (Slider) rotates, indicating shaft position. The resistive element can be made of
wire, conductive film or cermet element.
Potentiometers used for servo mechanism are generally above 7/8 to 3 1/2
inches in diameter. The early models were mostly of wire wound type. Current
technology provides other choices such as stability, longer life and lower
sensitivity to environment. Potentiometers can be excited with alternating and
direct current. Single turn potentiometers have a rotation i.e. usually limited to 360
degrees.
4. Circuit Diagram:
P1 P2
1 2 3 1 2 3
1- I/P
2-O/P
3- GND
P1&P2- 10
TURN POT
5. PROCEDURE:
1. Connect the main cord to the supply line.
2. You can study the potentiometer as transducer by measuring voltage across
the output points of the potentiometer and enter the readings in the
observation table.
3. Plot the graph for the above.
4. Now you can study the system as null detector by keeping left hand
potentiometer at zero degrees and treating it as reference, rotate the right
hand potentiometer to read the error directly on the DPM. Note that these are
ten turn potentiometers.
5. You may also plot input position versus output position when meter is
indicating null.
6. OBSERVATION:
7. RESULT:
EXPERIMENT NO. 11
3. THEORY:
For these reasons, LabView has become one of the most popular data collection
systems in recent years. Within the framework of Labview, user interfaces can be
created, data can be collected, signals can be generated and transmitted from
LabView cards, data can be analyzed and stored, etc. etc. If LabView does not
provide what is needed, C code or MatLab programs can be tied to it to provide the
required functionality.
1. To show the front panel window and block diagram window together go to menu
bar WINDOW>TILE Left and Right or CNTRL+T.
2. Now we place the controls and indicator on the front panel window.
Numeric Control-1
Numeric Indicator-1
Numeric Control: FP>Right Click>Express>Numeric Controls> Numeric Control
Numeric indicator: FP>Right Click>Express>Numeric Indicators> Numeric
Indicator
3. In the block diagram window the corresponding block of controls and indicator are
automatically created.
4. Now we place the logic function on the block diagram window.
Formula of temperature conversion:
F=(9/5)*C+32
4. RESULT:
EXPERIMENT NO. 12
3. THEORY:
Binary to Decimal Conversion:
The binary number system is also a positional notation numbering system, but in
this case, the base is not ten, but is instead two. Each digit position in a binary
number represents a power of two. So, when we write a binary number, each
binary digit is multiplied by an appropriate power of 2 based on the position in the
number:
For example:
101101 = 1 x 25 + 0 x 24 + 1 x 23 + 1 x 22 + 0 x 21 + 1 x 20
= 1 x 32 + 0 x 16 + 1 x 8 + 1 x 4 + 0 x 2 + 1 x 1
= 32 + 8 + 4 + 1=45
Truth Table
A B C D Decimal A B C D Decimal
0 0 0 0 0 1 0 0 0 8
0 0 0 1 1 1 0 0 1 9
0 0 1 0 2 1 0 1 0 10
0 0 1 1 3 1 0 1 1 11
0 1 0 0 4 1 1 0 0 12
0 1 0 1 5 1 1 0 1 13
0 1 1 0 6 1 1 1 0 14
0 1 1 1 7 1 1 1 1 15
4. PROCEDURE:
1. Launch the LabVIEW and create a blank VI.
2. To show the front panel window and block diagram window together go to
menu bar WINDOW>TILE Left and Right or CNTRL+T.
3. Now we place the controls and indicator on the front panel window.
Toggle Switch-4
Numeric Indicator-1
5. RESULT:
EXPERIMENT NO. 13
3. THEORY:
Function Generator:
4. PROCEDURE:
The first portion of our show will be to build a function generator from the step-
by-step instructions that follow. At the end, youll demonstrate to your
instructor that the simulator works, and answer a few questions about its
operation on your data sheet.
1. Open LabVIEW which can be found in the Start Menu as National Instruments
LabVIEW or something closely related. Once that is open choose, Blank VI
from the window. This will open at least one new window. If there are two
windows it is alright, we will need them both.
2. Put down a digital control from the controls palette. This can be done by
View, Controls Palette,Express,Num Ctrls,Num Ctrl and
dragging and dropping the control on Front Panel Window. Now type
Function Number before doing anything else. This will save us some work in
the future. Once this is done you should have a window like that of Figure 2.
3 Right click on the new control that you just placed and select Format &
Precision from the menu. This will give a new window titled Format &
Precision like that of Figure 3. Change the dropdown selection from
Significant Digits to Digits of Precision and enter 0 (zero) in the corresponding
field. Click OK. This could also be accomplished by right clicking on Function
number and clicking properties.
4. At this point it is time to put down some more controls. Find the Dial under
the controls palette, or using Controls Palette Express Num Ctrls Di
al. Place thison the Front Panel Window and type Amplitude. This will be
the amplitude of the waveforms.
5. Place another dial in the same manner and type Frequency. This will be the
frequency of the waveforms.
6. Now, under the Graph part, place a Waveform Graph. This can be found
under Controls Palette Express Graph Indicators Graph and type
in Waveform Output before doing anything further. Right click on the
Waveform Chart and select Visible Items Plot Legend from the menu.
This will remove the Plot Legend from the chart. After this the Front Panel
should look like that of Figure 4.
6. This will take care of the Front Panel for now. Now switch to the block diagram
window by choosing Window Show Bl ock Di agram from the menu on the
top of the screen. This will open a window like that of Figure 5. If the window
doesnt look exactly like that of Figure 5, dont worry, it is about to be changed
anyway. This is where the coding for LabVIEW takes place. Like SPICE,
LabVIEW has its own work environment.
8. The mouse arrow is context sensitive. It changes as it scrolls over different parts
of the window. It looks like an arrow when it thinks theres something to
choose, or grab and drag.
9. Click on the orange box below the labels to move components around. Drag the
components labeled Amplitude, Frequency, and Function Number to the left
side of the window so that theyre arranged in a column.
10. Right click on the orange box for the Function Number and choose
Representation I 8from the pop up menu. This will change the indicator
from a double precision variable to an integer value.
11. The next step will be to draw a case selection box. This can be done by
choosing View, Functions Palette, Express, Exec Control, CaseStructure.
Now click and drag from somewhere near the amplitude box to somewhere
down towards the right of the screen. You should get something that looks like
Figure 6 below. (Later in the lab, you will be asked to explain what the case
Instrumentation and Control Engineering Department
Page 53
COMPUTER ARCHEITECTURE AND ORGANIZATIONAL LAB
MANUAL [EC-403(P)]
statement does. For now, the case selection box can be thought of as a graphical
representation of a case statement in a programming language.)
12. The tricky part begins. Right click on where the case box says True and
select Add Case After. Enter 1 from the key board. Repeat this 2 more times
entering 2 and 3 from the keyboard. Now, click on the selector label between
the two arrows and go back to one of the two cases (True or False). Then
right click again and select Delete This Case from the menu. Repeat this for the
False (or True) case also.
13. Then to make the case selection work as designed, we need to give it some
value that it can select from. Again, the mouse is context sensitive and changes
to suit what it thinks you want to do. When its on a connector, like one of the
little triangle connectors, it will change to something that looks like a little
spool of wire. This could also be found by View, Tools. If you left click on the
mouse when it is on top of one of the connectors, the connector will be
highlighted. Hold the button down and drag the wire to the other connector.
Click on the blue box below Function Number and drag to the little question
mark on the side of the Case Selection Box.
14. Before continuing, make sure that case 1 is in the little box at the top of the
Case Selection Box. Now right click between the arrows and choose Make this
the Default Case from the menu. This sets case 1 as the default if no case is
selected. When done you should have something that looks like Figure 7.
15. From here we have to add the specific waveforms. Under case 1, we are going
to put a sine wave. This can be found under
Functions>Palette>Express>Signal Analysis>Simulate Signal. Place this in
the middle of the case selection box. You can double click on this component at
any time to configure its properties but as soon as you drop the icon inside the
case statement the Configure Simulate Signal Window will pop up whether you
want it to or not. In the Configure Simulate Signal Window:
Under Timing, set Samples/second (Hz) to 1000
b. Next to Number of Samples, uncheck the Automatic checkbox.
c. Set Number of Samples to 1000.
These settings will set the x-axis to 1 second.
16.The Configure Simulate Signal window should look similar to Figure 8. Click
OK
17. Case 2 will be a square wave. Switch to case 2 by clicking on the arrow on the
right on top of the case selection box. Inside of case 2, place another Simulate
Sig component in the middle of the case selection box. In the Configure
Simulate Signal window, change the wave type to Square. Make the same
changes as described in 15a-c.
18. Case 3 will be a triangle wave. Switch to case 3. By now you should be able to
figure out how to add the triangle wave simulator. (Its just like the last two
steps!) You should end up with a block diagram window that looks like Figure
9.
Figure 9: Diagram window after adding the waveforms to the Case Selection Box
19. Wire the output of the Frequency function to the Frequency input connector of
the sine wave. Then wire the amplitude box to the amplitude of the sine wave.
Then wire the sine wave output to the Waveform Output box. Check this against
Figure 10 to verify that it is correct.
Figure 10: Completed Diagram Window after wiring the Sine Wave Function
20. Repeat this same process for the other two cases also. This exact wiring scheme
works for all three functions.
21. Return to the Front Panel Window and click the Run Continuously button. This
button looks like two arrows chasing each other. Now you can change the values of
Amplitude, Frequency, and Function Number. Notice that if Function Number is
less than 1 or greater than 3 the waveform defaults back to the sine wave. The
simulation is complete.
Figure 10: Completed Front Panel Window continuously executing the Triangle
Function
5. RESULT:
EXPERIMENT NO. 14
3. THEORY:
The purpose of data acquisition is to measure an electrical or physical
phenomenon such as voltage, current, temperature, pressure, or sound. PC-
based data acquisition uses a combination of modular hardware, application
software, and a computer to take measurements. While each data acquisition
system is defined by its application requirements, every system shares a
common goal of acquiring, analyzing, and presenting information. Data
acquisition systems incorporate signals, sensors, actuators, signal
conditioning, data acquisition devices, and application software.
So summing up, Data Acquisition is the process of:
Acquiring signals from real-world phenomena
Digitizing the signals
Analyzing, presenting and saving the data
The DAQ system has the following parts involved, see Figure:
DAQ device/hardware
Driver software
Your software application (Application software)
Driver software:
Driver software is the layer of software for easily communicating with the
hardware. It forms the middle layer between the application software and the
Instrumentation and Control Engineering Department
Page 60
COMPUTER ARCHEITECTURE AND ORGANIZATIONAL LAB
MANUAL [EC-403(P)]
Software application
Application software adds analysis and presentation capabilities to the driver
software. Your software application normally does such tasks as:
Real-time monitoring
Data analysis
Data logging
Control algorithms
Human machine interface (HMI)
NI-DAQmx
The NI-DAQmx Driver software is the layer of software for easily
communicating with the hardware. It forms the middle layer between the
application software and the hardware. Driver software also prevents a
programmer from having to do register-level programming or complicated
commands in order to access the hardware functions.
DAQ Assistant
The DAQ Assistant, included with NI-DAQmx, is a graphical,
interactive guide for configuring, testing, and acquiring measurement data.
With a single click, you can even generate code based on your configuration,
making it easier and faster to develop complex operations. Because DAQ
Assistant is completely menu-driven, you will make fewer programming
errors and drastically decrease the time from setting up your DAQ system to
taking your first measurement.
NI USB-6009
NI USB-6009 is a simple and low-cost multifunction I/O device from
National Instruments.
4. PROCEDURE:
1. Launch the LabVIEW and create a blank VI.
2. To show the front panel window and block diagram window together go to
menu bar WINDOW>TILE Left and Right or CNTRL+T.
5. RESULT: