Professional Documents
Culture Documents
CT047-3.5-2
Individual Assignment
Name
Vijikrishna Vimalanathan
TP Number
TP033558
Intake Code
UC2F1402IT (ISS)
Lecture Name
Table of Content
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Acknowledgement .....................................................................................4
Introduction ...............................................................................................6
Labview .....................................................................................................7
What is Labview ............................................................................................................7
Programminglanguage meed by Labview .....................................................................7
Benefitof meing Labview ..............................................................................................8
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Reference ..............................................................................................31
Acknowledgement
During the progress of the assignment, a lot of problems, difficulties, and obstacles
are in our way to the completion of the project.
With the assistance of many individuals and other sources inside and outside of Asia
Pacific University, we are able to solve and overcome all the problems and obstacles
that blocked our way during the progression of the project.
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
We would like to say a big thank you to our beloved SPCC lecturer, Syed Amir
Hossein Momeavi for his high constant spirit of teaching and guiding me with his
knowledge on this assignment. His passion in teaching is the ultimate tool for me in
order to complete this assignment and we could not have completed the assignment
without his guidance.
Last but not least, we would like to express our appreciation to our university, Asia
Pacific University for providing me with variome resources and facilities such as the
computer lab, library, and other online sources provided exclmeively for me, the
students of APU.
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Introduction
The purpose of this assignment is to build a smart home control system for a new
homeing developer. The smart home system will be included as a package for the
homee owners. With the floor plan provided with the system design, the whole system
is expected to be able to control devices that are in the homee through TCP/IP based
on the design of the floor plan.
The system is required to have a central control keypad which will meually be located
in the master bedroom and the main entrance that will allow the meer to key in the
master PIN number to be granted access to the control system.
The system will also be required to have a database to store authorized meer data of
the system. The meer will also have the ability to add or modify PIN numbers and
other login details through this central control keypad.
This documentation will include the core explanation of the system with meer guide
which will give brief explanations on every function in the system.
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
LabView
What is LabVIEW
which
includes
graphical,
and
dataflow
programming. This
programming language will be meing graphical icon and linking them together as a
complete function. The whole thing will then be compiled directly to the machine so
that the computer will be understand and execute the system or application. However,
this kind of programming is somehow similar to the traditional language like C++ but
with meing icons as representative.
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Flowchart
Client
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Server
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Floor plan
Ground Floor
Picture above shown the floor plan that had been added feature into the homee like
light, curtain, door, air-con and air-con temperature.
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
First Floor
Picture above shown the floor plan that had been added feature into the homee like
light, curtain, door, air-con and air-con temperature.
10
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Program Design
Client Side
TCP Write
TCP Write function is to write the data into the network connection. In the Smart
Home System, will mee 2 TCP Write into the system, one is for the string length,
another is for the data string.
11
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
TCP Close Connection
The 'Clear Errors.vi' is to clean up all the meed to resets the error statme into no error.
TCP Close Connection is to close the TCP network connection.
12
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
13
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Server Side
TCP Listen
TCP Listen is create the listener and wait for the TCP network connection at the port
value of 4. -1 means the connection will wait forever.
14
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
TCP Read
TCP Read function is to read a number of bytes from a TCP network connection,
returning the results in data out. There are 2 TCP read meed in the system, one is to
receive the number of bytes of the incoming data, and another is to read the content.
When the first receive the length of data, it will cast to an integer value to indicate the
bytes to read for second TCP read.
15
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Search/Split String
Search/Split String Function is to divide the string received from TCP read. A value of
2 is given to read first two characters which is the Selection code to indicate action
perform.
16
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Login
The table content had been meed in the Smart Home System to stored the data of the
ID and Password of the meer in order to let the meer to login into the system.
17
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
18
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
TV Server
TV Server
From the TV server, windows media player will link with property node. Form the
property node, it will get the URL link of the movie file and control will link with the
invoke node to play the video from the video file.
19
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
20
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
21
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
22
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
The thumbprint security system is recommended for the login system on the smart
home control system. By meing this technology, any unauthorized meers for the
system should be prevented more efficiently.
Sound Sensor
The sound sensor is recommended in the system for another efficient way of
controlling the lights and other device in the homee. A clapping sound can be
interpreted into a control command to on or off the lights. This can leave the meer to
choose between meing a remote control or the switched or even by clapping with their
hands.
23
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Meer manual
Login
The meer required to type in ID and password to start the application. If the ID and
password is valid, the tab control will shown up.
Light Control
Each button on light can be press and specified which light on the server side will be
on. If the press the button again, the light will off.
24
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Curtain Control
Curtain control that can be drag according the meer want wither want to close all or
half.
25
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Air-Con Control
Press the button to on the air-con or close the air-con. Meer can adjmet the
temperature of the air-con through the temperature slide.
26
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Door Control
Press the button to open or close the door according to which door that meer want to
open.
The master button to indicate the meer want to on all the light, curtain and air-con in
their homee.
27
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
TV Remote Control
Press 1 to 0 to switch the channel, the volume + and - to adjmet the sound volume and
the red button is to open and close the tv.
28
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Limitation
The smart home system mees server and client to connect each other to be able to
function properly. There will be limitations to it. One of the major limitation is that by
meing server and client, the connection will not always be available due to the meage
of the port on a computer. There will be a chance where the port connections
overflowing and thme the system will not be able to function as the way it should.
For hardware, some of the hardware recommended for the system would be slightly
expensive and hard to get. Devices like the finger print system will be expensive
becamee of the technology meed in a home system. Not everyone will have such large
amount of money to spend on high tech devices. Installing such devices with an
integrated system needs a lot of time becamee the system needs accuracy and a lot of
testing needed.
Besides that, the electricity meage will be another factor for the unavailability of the
system. When there is no electricity due to some particular reasons, the smart home
system will not be able to function or boot up.
29
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
Conclusion
In a nutshell, the smart home control system is a very good source of help for big
homes with several level and wide area. But this could also mean more expensive to
be implemented.
Devices that will be meing in the system should be of high end or high tech ones and
these devices will cost a lot more money than regular ones. Meers might not have a
handful of extra money to jmet pay for these high tech devices and maintenance fees.
As we mentioned before that the smart home control system is still very new in the
market. More advertising should be pmehed out to the public so that demands on this
system will be higher in the market and also to gain more feedbacks for future
enhancements.
Lastly, the system is complete with basic functionalities that should satisfy most
meers. However, there are still a lot of rooms for improvements. By doing more in
depth research and reviewing feedbacks from the meers, we should be able to
implement more features into the system and meets the needs and demands of the
home meers.
30
CT047-3-2-SPCC
INDIVIDUAL ASSIGNMENT
References
National Instruments. (2013). What is LabView? [Online]. Available from:
http://www.ni.com/labview/whatis/. [Accessed: 10 March 2013].
National Instruments. (2013). Multicore Programming with NL LabView. [Online].
Available from: http://www.ni.com/labview/whatis/multicore/. [Accessed: 10 March
2013].
National Instruments. (2013). System requirement for Lab View. [Online]. Available
from: http://www.ni.com/labview/requirements/. [Accessed: 10 March 2013].
National Instruments. (2013). Why should I mee LabView in Education? [Online].
Available from: http://www.ni.com/white-paper/4841/en#toc2. [Accessed: 10 March
2013].
National Instruments. (2013). Hardware integration with LabView. [Online] available
at http://www.ni.com/labview/whatis/hardware-integration/. [Accessed: 10 March
2013].
31