You are on page 1of 7

EMIS-2003 Control System Technologies

CRN: ……………..
Laboratory Experiment No. 2
Experiment Title: Introduction to LabVIEW
Academic year: S2 2021/2022

Submission Deadline:
Submission Date:

Experiment date:

Submitted by:

Performance Report (70%)


ID Students Names Grade (100%)
(30%)

Supervised By: Eng. Mahra Al Ali


Objectives On completion of this experiment, the student should be able to:
 Use LabVIEW with feedback DC motor
 Examine the response of the system with

Introduction
“NI LabVIEW software is used for a wide variety of applications and industries. LabVIEW is a
highly productive development environment for creating custom applications that interact with
real-world data or signals in fields such as science and engineering. The net result of using a tool
such as LabVIEW is that higher quality projects can be completed in less time with fewer people
involved.

LabVIEW contains a powerful optimizing compiler that examines your block diagram and
directly generates efficient machine code, avoiding the performance penalty associated with
interpreted or cross-compiled languages. The compiler can also identify segments of code with
no data dependencies (that is, no wires connecting them) and automatically split your application
into multiple threads that can run in parallel on multicore processors, yielding significantly faster
analysis and more responsive control compared to a single-threaded, sequential application.

With the debugging tools in LabVIEW, you can slow down execution and see the data flow
through your diagram, or you can use common tools such as breakpoints and data probes to step
through your program node-by-node. The combination of working with higher-level building
blocks and improved visibility into your application’s execution results in far less time spent
tracking down bugs in your code. [1]”

Figure 1: A VI Sample

Apparatus

 NI ELVIS Board
 Feedback DC Motor
 LabVIEW Software
Procedure
Task 1: Testing of Tachometer and reading voltage.

1- Run Lab View and Select a Blank VI To start building the system

Figure 2: Main Page LabVIEW

2- On the Block Diagram Window, search for “control and simulation loop”.
3- Double click on the box that is at the top left corner of the loop and change the final
time to “inf”.
4- On the Block Diagram Window, follow the steps below.
5- Right click on the selected area, and select “DAQ Assist” from “Express Function”
and then “input” Block and wait for Initialization.

Figure 3: Input List LabVIEW

6- After initialization, Select Acquire Signals, then analog input and finally Voltage to
read the voltage produced from the tachometer.

Figure 4: DAQ Options

7- Note that the Tachometer is connected physically to port ai4. Hence, the same
channel should be selected to read the voltage. Click on Finish.
8- In the configuration screen, Change the acquisition mode to 1 sample on demand, and
click Ok.

9- Go to the Front Panel screen and place a waveform chart (right click on the front
panel, click on the arrows that are at the end of the list, choose classic, graph and the
waveform chart). Make sure it’s connected to the data from the DAQ in the block
diagram.

10- Click on Run.

11- Manually rotate the disk and observe the voltage reading for both directions. Take a
screenshot of the result and include it in your report.

Task 2: Applying Voltage to the Motor

1- Add another DAQ assist block to the block Diagram.


2- Select Generate Signal this time in order to give a voltage to the motor.
3- Select analog Output and then Voltage.
4- Select ao0 as the channel of the motor. Click finish.
5- Change the generation mode to 1 sample on demand, and click Ok.
6- From the front panel, right click and select Modern tab from the control, Numeric
and finally Vertical Fill Slide.
7- It’s very important to change the maximum value of the slide to 2 instead of 10.
Maximum voltage the motor can accept is 2 Volts.
8- Double click of the slide and make sure it’s connected to the DAQ input in the block
Diagram window.
9- Click on Run and observe the rotation of the motor as the voltage is changed. Take a
snapshot of the output and include it in the report.
10- Reduce the voltage to zero and turn off the system.
Results and Discussion

Capture the following:


 The output of task 1 (comment on the output obtained. What did you notice on the graph
while rotating the tachometer clockwise and counter clock-wise? What happened to the
output graph when you increased the rotation speed of the tachometer)
 The output of task 2 (comment on the output obtained. What happened to the output
signal while moving the slider)

References

[1] http://www.ni.com/newsletter/51141/en/

You might also like