EMIS-2003 Control System Technologies: .. Laboratory Experiment No. 2 Experiment Title
EMIS-2003 Control System Technologies: .. Laboratory Experiment No. 2 Experiment Title
CRN: ……………..
Laboratory Experiment No. 2
Experiment Title: Introduction to LabVIEW
Academic year: S2 2021/2022
Submission Deadline:
Submission Date:
Experiment date:
Submitted by:
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
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.
6- After initialization, Select Acquire Signals, then analog input and finally Voltage to
read the voltage produced from the tachometer.
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.
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.
References
[1] http://www.ni.com/newsletter/51141/en/