Beruflich Dokumente
Kultur Dokumente
Electrical Engineering
SPRING 2015
LAB MANUAL
Student Names: Hassan Ahmed
Semester Project Title:
__________________________________________
Marks Obtained
Project: _______
10
11
To Plot the characteristic curve of K type thermocouple and PT100 and thermistor
12
13
Dated
Lab 1: NI_ELIVS_II_Orientation
Measurement & Instrumentation
Lab
Q1) What NI ELVIS stands for National Instrument Educational Laboratory Virtual
Instrumentation Suite.
Q2) Write the status of LEDs when you put the power switch (at rear side
of NI ELVIS) on. a. Power LED OFF
b. USB Ready LED ON
c. USB Active LED OFF
d. +!5 V OFF
e. -!5 V OFF
f.
5 V OFF
Q3) Write the status of LEDs when you put the proto board power switch (at rear
side of NI ELVIS) on. a. a. Power LED ON
b. USB Ready LED ON
c. USB Active LED OFF
d. +!5 V ON
e. -!5 V ON
f.
5 V ON
Frequency
Measurements
NI ELVIS Function Generator
NI ELVIS Oscilloscope
Desktop Oscilloscope
100Hz
100.025
100.021
200Hz
200.0481
200.043
500Hz
499.9340
499.922
1 kHz
1.0001
k
1.00003
k
100kHz
100.0000
k
99.9980
k
500kHz
500.0001
k
499.990
k
1 MHz
1.0000
M
999.982
k
maximum Frequency
5.0000
M
4.99992
M
- DIGITAL WRITER
Digital Writer to put the LEDs on in this(DONE
10101010
)
READER
- DIGITAL
USE the Digital Reader instrument to read from digital input lines.
Loop back the Digital output to Digital
(DONE
inputs.
)
to design an Arbitrary waveform of following shape
- UseArbitrary Waveform Generator
a. 10 mS =Sine Wave
b. 20 mS = Square Wave
c. 10 mS = Stair wave
Task 3
Write a VI to solve the equation __fill up the table y = -7.5e-t/15 0.05t +
10.75 for following values of t
t (seconds)
0
10
20
30
40
50
1000
y
3.25
6.39
7.77
8.23
8.22
7.98
-39.25
Write down the functions you can use to control loop execution timings
1 Wait function.
2 Timed loop.
https://manual.eg.poly.edu/index.php/Introduction_to_LabVIEW
Create a program that simulates a basic calculator. The calculator will be able to add, subtract,
and multiply.
Assignment:
Build a VI that simulates a heating and cooling system. The system must be controlled either manually or
automatically. Design the VI so that:
The heater and the air conditioner are turned off when the temperature is between 60F and 80F.
1
Three LEDs: one to represent the AC, one to represent the heater, and one to show that
the system is being operated manually.
Three switches: one to control the AC, one to control the heater, and one to control
manual or automatic operation.
A Boolean case statement to control the manual and automatic operation of the AC and
the heater.
Using the slide bar on the thermometer, change the system temperature. Make sure the
AC and heat come on as directed.
Test the program's manual operation by turning the manual switch on and then turning
the AC and heat switches on. Each of the LEDs should light up when its corresponding
switch is in the On position.
Lab 3:
An Introduction to NI LabVIEW (Part 2)
This lab is continuation of 2nd lab. In this lab you will get more knowledge
about LabVIEW
Note: Snap shots of your VI should be inserted in completed
script of this lab to show your work.
Task3: Create New VI from Template VI. Simulated >> Generate and Display
Use the control knob to control the frequency and amplitude of the signal
Use the Programming >>waveform > analog wfm > measurement > ampl
and lelel for amplitude measurement
&
Programming >>waveform > analog wfm > measurement > tone for
frequency measurement
Task4:
Specify the value of voltage and frequency at which you want the LED to
light, use the Tone measurement and ampl and levels vi.
Note: Use comparison palette for comparing amplitude and frequency.
Task 5: Write log data of amplitude to a file
Task 6: Writing data only on user input
Assignment:
1 Add time stamping with your log data
2 Make a RPM counter with simulated square wave.
Task 1
Task 2
Task 3
Task 4:
Task 5:
Assignment 1:
Assignment 2:
Lab 4
Hardware interfacing with
LabVIEW NI-DAQmx
will be
digital
and NI
Analog INPUT
TASK 1: Acquire and display an external voltage signal (from desktop power supply)
and display its magnitude on numeric indicator and on Waveform graph and on
Waveform chart. See this tutorial to accomplish above task.
http://www.ni.com/academic/students/learndaq/acquire-generate/ (taking a
measurement)
TASK 2: Acquire and display an external voltage signal (from desktop function
generator) and see its amplitude and duty cycle, frequency and show it on
Waveform graph
TASK 4: Acquire two signals (one from desktop function Generator and second from
NI ELVIS FGEN) multiply and add and multiply them and show the output on
Waveform Graph
Digital INPUT
TASK 6:
Using square wave signal from function generator make a RPM counter. Implement
this formula to get correct RPM value. RPM = frequency multiply by 60
Answer:
RPM calculated using time period is more accurate and fast as it keeps on varying
and doesnt keep a constant value.
TASK 8: use DAQ Assistant to acquire a digital data and show it on LED on front
panel
Lab 5:
Makerhub Lnx LabVIEW interface for Arduino
Making Arduino work with Labveiw
Objective: To Interface Arduino with LabVIEW
Task 1: To make LED on Arduino board to blink
Task 2: Acquire and display an external voltage signal (from desktop power
supply) and display its magnitude on numeric indicator and on Waveform
graph
and
on
Waveform
chart.
See Example program Analog read 1channel.vi. In example finder search for
makerhub
Task 3: Experiment with digital output and make a digital output on Arduino
low and high under the control of labview.
Triggering pin 12 from Labview and checking with LED
Task4: Make a Light intensity meter using analog read in conjunction with
LDR.
Changing light intensity to 0 by covering the LDR with Thumb
Task5: Make Battery charger using upper analog voltage read and digital out
functions. The system should charge the battery upto 3 volts and switch off
the charger after the voltage has reached 3 volts.
Charging
Not Charging
Task6:
Generate PWM signal on Arduino PWM output
Generating a signal of 75% duty cycle on pin number 3
Task2: Receive data byte by byte and terminate the receiving, if a letter A is
received from serial port
Task3: Receive data byte by byte and show every byte in separate response
box.
DEFAULT
RUNNING MOTOR
SHUTDOWN
Lab 8
Making Stroboscope for measuring rotation speed using NIELVIS and LabVIEW
What is Stroboscope?
A stroboscope is an instrument that emits a series of brief, intense flashing
lights at specific intervals.
When the flashing light from a stroboscope is directed onto an object rotating
at high speed (e.g., a cooling fan inside a PC), the moving fan appears to
stand still.
The stroboscope makes the fan rotating at high speed appear to stand still
due to the visual persistence*1 of the human eye.
When the frequency of the flashing lights from the stroboscope is adjusted to
synchronize with the fan rotating speed, the number of apparently stationary
fan blades you see corresponds to the actual number of fan blades.* 2
The retina of the human eye retains an image for approximately 1/16th of a
second. The stroboscope relies on this characteristic of the human eye to
provide its intended function. Projectors used in movie theaters also rely on
characteristics of human vision to display motion pictures.
Task 3: Disconnect the Function generator and use NI-ELVIS with LabVIEW
to generate strobing signal for your light source.
WEIGHT (Kg)
0
0.5
1.0
1.5
2.0
2.5
WITH NULL-OFFSET
VOLTAGE (V)
0.32
0.52
0.72
0.92
1.12
1.32