SlideShare a Scribd company logo
1 of 10
California State University, Fullerton
College of Engineering and Computer Science
EGGN 100 Introduction to Engineering Fall 2015
LabVIEW Assignment
Demo Due Today (in class)
Report Due at the beginning of class on September 10, 2015
(Thursday)
In this assignment, you need to do the following:
1. Using LabVIEW, generate and display a square wave
2. Modify the program from step 1 and add a ‘knob’ to control
the amplitude of the square wave that
you generated in step 1 above. Verify that the amplitude of the
square wave changes when you
turn the ‘knob’. Save two copies your program with filenames
as Square.vi and HiSquare.vi
3. Now, modify the program in HiSquare.vi to scale (i.e.
multiply) the amplitude of the square
wave by 10 using a ‘Formula’ VI. Verify the results and save
the program file.
(You must complete steps 1, 2 and 3 in 30 minutes)
4. Demonstrate the results corresponding to part 2 (Square.vi )
and part 3 (HiSquare.vi) to the
instructor before the end of class today
5. Turn in a 1-page hard-copy report at the beginning of class
on September 10, 2015 (Thursday).
Use Times New Roman font; size 11; 1.5 line spacing to type
your report. Your report should
include descriptions for the following:
• The goal(s) of the assignment
• The procedure that you followed in order to complete the
assignment
• Challenges/difficulties faced (if any) and how you overcame
them
• What you were able to accomplish at the end?
• Conclusion
P.S. Nair
EGGN 100: Introduction to Engineering
LabVIEW Tutorial
Dr. Pradeep Nair
Associate Professor, Computer Engineering
Objectives of the Tutorial:
To generate, display and modify a desired signal shape using
LabVIEW graphical programming
LabVIEW Description:
• LabVIEW is the abbreviation for Laboratory Virtual
Instrumentation Engineering Workbench
• LabVIEW is a product from National Instruments
Corporation (NI)
• LabVIEW is a system design platform that makes use of
Visual Programming/Graphical Programming
• In visual programming, we make use of visual
programming elements known as Virtual Instruments,
or VIs, instead of writing programs/code using
traditional text-based instructions
P.S. Nair
• In other words, we can say that a LabVIEW program is
a collection of VIs
• Visual/Graphical Programming makes the
programming task easier because it allows you to drag-
and-drop icons that represent programming constructs
• Some of the things that LabVIEW can do (it is a
powerful design platform!):
specifications
tput
signals) for a set of inputs
-related data of the system
Components of a LabVIEW Program:
• User Interface built by the user (you); this interface is
known as the Front Panel
• A window that contains the VIs that make up the
program, known as the Block Diagram window
• The front panel is built using Controls and Indicators
P.S. Nair
• Controls are the various input mechanisms that are
available. Examples: Virtual dials, virtual knobs,
virtual push-buttons etc.
• Indicators are the output mechanisms. Examples are
Graphs, Virtual output displays, virtual LEDs etc.
LabVIEW Programming Sequence:
Buil
System/Process-
P.S. Nair
Using LabVIEW to Generate, Display and Modify Signals
1. Open LabVIEW
Template’. After this, select ‘Tutorial (Getting
Click OK.
P.S. Nair
3. This will open up two new windows: Front Panel and
Block Diagram. The front panel is where the controls
and indicators are placed.
In this part of the tutorial, the process required to
generate a sine wave has already been added to the
block diagram and the required controls and indicators
have already been added to the front panel. We will
now learn how to run this program and observe the sine
wave output.
4. The front panel and the block diagram look like this:
P.S. Nair
5. The block diagram is the core of the graphical program.
It contains structures and VIs that interact with the
front-panel objects. It looks like this:
6. Click on the ‘Run’ button in the front panel to run the
program. It looks like this:
You should now see a sine wave being displayed on the
front-panel indicator. When the program is running,
the ‘Run’ button changes in appearance and color, like
this:
7. Stop the execution of the program by clicking on the
control named ‘STOP’ in the front panel:
P.S. Nair
8. Next, we will add a ‘Knob’ control (shown below) to the
‘Num Ctrls’. Then click on ‘Knob’ and then, drag the
‘Knob’ control and drop it inside the front panel.
9. Save t
panel. Choose the file name as ‘SignalGeneration.vi’.
Save in Desktop.
10. Next, we will change the signal display type from Sine
wave to a ‘Sawtooth’ wave. For this, first click on the
block diagram window. Then double click on the VI
block that is named as ‘Simulate Signal’.
P.S. Nair
11. You will now see that a new window pops up, as shown
below. Change the ‘Signal type’ to ‘Sawtooth’. Click
OK.
12. If you run the program in the front panel now, you will
see the new Sawtooth signal in the front panel
13. Highlight the ‘Simulate Signal’ block by clicking over it
once in the block diagram window and keep the cursor
over the lower part of the ‘Simulate Signal’ block. A
double-sided arrow will appear. Click and pull
downwards till you can see an input called ‘Amplitude’
P.S. Nair
being displayed. An input is denoted by an arrow
feeding into the ‘Simulate Signal’ block and an output is
denoted by an arrow feeding leaving the ‘Simulate
Signal’ block
14. In the block diagram, move the ‘Knob’ VI to the left of
the ‘Simulate Signal’ block. Click on the output of the
‘Knob’ VI and draw out a wire (click and pull till the
termination point). Terminate the wire at the input of
‘Amplitude’ in the ‘Simulate Signal’ VI. The amplitude
of the Sawtooth wave generated can now be controlled
from the front panel using the knob. Run the program
to verify this and then stop execution using ‘STOP’.
15. Next, we will scale the amplitude of the signal according
to a formula. For this, first click on the wire connecting
the ‘Simulate Signal’ VI with the ‘Waveform Graph’
P.S. Nair
and delete the wire using the Delete button on your
keyboard.
16. In the block diagram window, click on
‘Formula’. Drag the ‘Formula’ VI to the block diagram
window, as shown below:
17. Double-click on the ‘Formula’ VI and change the label
in the first label field (in this example, it is X1) to the
name of the output wave generated by the ‘Simulate
Signal’ VI (in this example it is ‘Sawtooth’). The display
field in the ‘Formula’ VI will now read as ‘Sawtooth’.
Replace it by ‘Sawtooth * 2’. Click OK. This VI will
P.S. Nair
now multiply the incoming sawtooth signal amplitude
by 2.
18. Connect the ‘Sawtooth’ output of the Simulate Signal’
VI to the ‘Sawtooth’ input of the ‘Formula’ VI using a
wire.
19. Connect the ‘Result’ output of the Simulate Signal’ VI
to the input of the ‘Waveform Graph’ VI using another
wire.
20. Run your program in the front panel and verify that the
signal amplitude of the original sawtooth waveform is
now scaled by 2. Also verify that the amplitude is still
sensitive to the input from the knob.

More Related Content

Similar to California State University, Fullerton College of Engineerin.docx

Lesson 1 - Algorithm and Flowcharting.pdf
Lesson 1 - Algorithm and Flowcharting.pdfLesson 1 - Algorithm and Flowcharting.pdf
Lesson 1 - Algorithm and Flowcharting.pdfROWELL MARQUINA
 
222066369 clad-study-guide
222066369 clad-study-guide222066369 clad-study-guide
222066369 clad-study-guidehomeworkping9
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manualtamil arasan
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.combellflower82
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com amaranthbeg143
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   llflowe
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   bellflower42
 
04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm
04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm
04 conex%c3%a3o%20 logo!%200ba7%20com%20ihmMarcio Miranda
 
04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihmMarcio Miranda
 
04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihmconfidencial
 
Primavera manual tutorial book
Primavera manual tutorial bookPrimavera manual tutorial book
Primavera manual tutorial bookThomas Britto
 
Primavera manual tutorial book
Primavera manual tutorial bookPrimavera manual tutorial book
Primavera manual tutorial bookThomas Britto
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startednoahjamessss
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedgovendaagoovenda
 
05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)Marcio Miranda
 
05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)confidencial
 
Lab view introduction
Lab view introductionLab view introduction
Lab view introductionJakupBerisha2
 
Cis 170 c ilab 1 of 7 getting started
Cis 170 c ilab 1 of 7 getting startedCis 170 c ilab 1 of 7 getting started
Cis 170 c ilab 1 of 7 getting startedCIS321
 

Similar to California State University, Fullerton College of Engineerin.docx (20)

Lesson 1 - Algorithm and Flowcharting.pdf
Lesson 1 - Algorithm and Flowcharting.pdfLesson 1 - Algorithm and Flowcharting.pdf
Lesson 1 - Algorithm and Flowcharting.pdf
 
222066369 clad-study-guide
222066369 clad-study-guide222066369 clad-study-guide
222066369 clad-study-guide
 
EC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab ManualEC6612 VLSI Design Lab Manual
EC6612 VLSI Design Lab Manual
 
CIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.comCIS 170 Focus Dreams/newtonhelp.com
CIS 170 Focus Dreams/newtonhelp.com
 
Plc fatek
Plc fatekPlc fatek
Plc fatek
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
 
CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   CIS 170 Life of the Mind/newtonhelp.com   
CIS 170 Life of the Mind/newtonhelp.com   
 
CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   CIS 170 Imagine Your Future/newtonhelp.com   
CIS 170 Imagine Your Future/newtonhelp.com   
 
04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm
04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm
04 conex%c3%a3o%20 logo!%200ba7%20com%20ihm
 
04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm
 
04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm04 conexão logo! 0 ba7 com ihm
04 conexão logo! 0 ba7 com ihm
 
Primavera manual tutorial book
Primavera manual tutorial bookPrimavera manual tutorial book
Primavera manual tutorial book
 
Primavera manual tutorial book
Primavera manual tutorial bookPrimavera manual tutorial book
Primavera manual tutorial book
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-started
 
Devry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-startedDevry cis-170-c-i lab-1-of-7-getting-started
Devry cis-170-c-i lab-1-of-7-getting-started
 
05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)
 
05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)05 conexão logo! 0 ba7 com ihm (wincc flexible)
05 conexão logo! 0 ba7 com ihm (wincc flexible)
 
Lab view introduction
Lab view introductionLab view introduction
Lab view introduction
 
Picaxe manual5
Picaxe manual5Picaxe manual5
Picaxe manual5
 
Cis 170 c ilab 1 of 7 getting started
Cis 170 c ilab 1 of 7 getting startedCis 170 c ilab 1 of 7 getting started
Cis 170 c ilab 1 of 7 getting started
 

More from humphrieskalyn

Evaluate the role of leadership on organizational behaviorProv.docx
Evaluate the role of leadership on organizational behaviorProv.docxEvaluate the role of leadership on organizational behaviorProv.docx
Evaluate the role of leadership on organizational behaviorProv.docxhumphrieskalyn
 
Evaluate the role that PKI plays in cryptography.Ensure that you.docx
Evaluate the role that PKI plays in cryptography.Ensure that you.docxEvaluate the role that PKI plays in cryptography.Ensure that you.docx
Evaluate the role that PKI plays in cryptography.Ensure that you.docxhumphrieskalyn
 
Evaluate the presence and effects of alteration in the homeostatic s.docx
Evaluate the presence and effects of alteration in the homeostatic s.docxEvaluate the presence and effects of alteration in the homeostatic s.docx
Evaluate the presence and effects of alteration in the homeostatic s.docxhumphrieskalyn
 
Evaluate the role of a digital certificate in cryptography.  How doe.docx
Evaluate the role of a digital certificate in cryptography.  How doe.docxEvaluate the role of a digital certificate in cryptography.  How doe.docx
Evaluate the role of a digital certificate in cryptography.  How doe.docxhumphrieskalyn
 
Evaluate the merits of Piaget’s stage theory for explaining cognitiv.docx
Evaluate the merits of Piaget’s stage theory for explaining cognitiv.docxEvaluate the merits of Piaget’s stage theory for explaining cognitiv.docx
Evaluate the merits of Piaget’s stage theory for explaining cognitiv.docxhumphrieskalyn
 
Evaluate the notion that white collar offenders are intrinsically di.docx
Evaluate the notion that white collar offenders are intrinsically di.docxEvaluate the notion that white collar offenders are intrinsically di.docx
Evaluate the notion that white collar offenders are intrinsically di.docxhumphrieskalyn
 
EV 551 Hazardous Materials Assessment – Summer2020Homework 1 – 4.docx
EV 551 Hazardous Materials Assessment – Summer2020Homework 1 – 4.docxEV 551 Hazardous Materials Assessment – Summer2020Homework 1 – 4.docx
EV 551 Hazardous Materials Assessment – Summer2020Homework 1 – 4.docxhumphrieskalyn
 
Evaluate the history of cryptography from its origins.  Analyze how .docx
Evaluate the history of cryptography from its origins.  Analyze how .docxEvaluate the history of cryptography from its origins.  Analyze how .docx
Evaluate the history of cryptography from its origins.  Analyze how .docxhumphrieskalyn
 
Evaluate the evidence provided by Apollo Shoes.Decide how to s.docx
Evaluate the evidence provided by Apollo Shoes.Decide how to s.docxEvaluate the evidence provided by Apollo Shoes.Decide how to s.docx
Evaluate the evidence provided by Apollo Shoes.Decide how to s.docxhumphrieskalyn
 
Evaluate the Health History and Medical Information for Mrs. J.,.docx
Evaluate the Health History and Medical Information for Mrs. J.,.docxEvaluate the Health History and Medical Information for Mrs. J.,.docx
Evaluate the Health History and Medical Information for Mrs. J.,.docxhumphrieskalyn
 
Evaluate the current state of the health care system in Sacramento. .docx
Evaluate the current state of the health care system in Sacramento. .docxEvaluate the current state of the health care system in Sacramento. .docx
Evaluate the current state of the health care system in Sacramento. .docxhumphrieskalyn
 
Evaluate the advantages and disadvantages of the various decis.docx
Evaluate the advantages and disadvantages of the various decis.docxEvaluate the advantages and disadvantages of the various decis.docx
Evaluate the advantages and disadvantages of the various decis.docxhumphrieskalyn
 
Evaluate some technologies that can help with continuous monitoring..docx
Evaluate some technologies that can help with continuous monitoring..docxEvaluate some technologies that can help with continuous monitoring..docx
Evaluate some technologies that can help with continuous monitoring..docxhumphrieskalyn
 
Evaluate progress on certification plansReport your prog.docx
Evaluate progress on certification plansReport your prog.docxEvaluate progress on certification plansReport your prog.docx
Evaluate progress on certification plansReport your prog.docxhumphrieskalyn
 
Evaluate how you have achieved course competencies and your plans to.docx
Evaluate how you have achieved course competencies and your plans to.docxEvaluate how you have achieved course competencies and your plans to.docx
Evaluate how you have achieved course competencies and your plans to.docxhumphrieskalyn
 
Evaluate how information privacy and security relates to the Interne.docx
Evaluate how information privacy and security relates to the Interne.docxEvaluate how information privacy and security relates to the Interne.docx
Evaluate how information privacy and security relates to the Interne.docxhumphrieskalyn
 
Evaluate assessment of suicide in forensic settings andor cri.docx
Evaluate assessment of suicide in forensic settings andor cri.docxEvaluate assessment of suicide in forensic settings andor cri.docx
Evaluate assessment of suicide in forensic settings andor cri.docxhumphrieskalyn
 
Evaluate different approaches to ethical decision making. Then, choo.docx
Evaluate different approaches to ethical decision making. Then, choo.docxEvaluate different approaches to ethical decision making. Then, choo.docx
Evaluate different approaches to ethical decision making. Then, choo.docxhumphrieskalyn
 
Evaluate and grade websites in terms of their compliance with PL pri.docx
Evaluate and grade websites in terms of their compliance with PL pri.docxEvaluate and grade websites in terms of their compliance with PL pri.docx
Evaluate and grade websites in terms of their compliance with PL pri.docxhumphrieskalyn
 
Evaluate at least (2) factors that make financial statement analys.docx
Evaluate at least (2) factors that make financial statement analys.docxEvaluate at least (2) factors that make financial statement analys.docx
Evaluate at least (2) factors that make financial statement analys.docxhumphrieskalyn
 

More from humphrieskalyn (20)

Evaluate the role of leadership on organizational behaviorProv.docx
Evaluate the role of leadership on organizational behaviorProv.docxEvaluate the role of leadership on organizational behaviorProv.docx
Evaluate the role of leadership on organizational behaviorProv.docx
 
Evaluate the role that PKI plays in cryptography.Ensure that you.docx
Evaluate the role that PKI plays in cryptography.Ensure that you.docxEvaluate the role that PKI plays in cryptography.Ensure that you.docx
Evaluate the role that PKI plays in cryptography.Ensure that you.docx
 
Evaluate the presence and effects of alteration in the homeostatic s.docx
Evaluate the presence and effects of alteration in the homeostatic s.docxEvaluate the presence and effects of alteration in the homeostatic s.docx
Evaluate the presence and effects of alteration in the homeostatic s.docx
 
Evaluate the role of a digital certificate in cryptography.  How doe.docx
Evaluate the role of a digital certificate in cryptography.  How doe.docxEvaluate the role of a digital certificate in cryptography.  How doe.docx
Evaluate the role of a digital certificate in cryptography.  How doe.docx
 
Evaluate the merits of Piaget’s stage theory for explaining cognitiv.docx
Evaluate the merits of Piaget’s stage theory for explaining cognitiv.docxEvaluate the merits of Piaget’s stage theory for explaining cognitiv.docx
Evaluate the merits of Piaget’s stage theory for explaining cognitiv.docx
 
Evaluate the notion that white collar offenders are intrinsically di.docx
Evaluate the notion that white collar offenders are intrinsically di.docxEvaluate the notion that white collar offenders are intrinsically di.docx
Evaluate the notion that white collar offenders are intrinsically di.docx
 
EV 551 Hazardous Materials Assessment – Summer2020Homework 1 – 4.docx
EV 551 Hazardous Materials Assessment – Summer2020Homework 1 – 4.docxEV 551 Hazardous Materials Assessment – Summer2020Homework 1 – 4.docx
EV 551 Hazardous Materials Assessment – Summer2020Homework 1 – 4.docx
 
Evaluate the history of cryptography from its origins.  Analyze how .docx
Evaluate the history of cryptography from its origins.  Analyze how .docxEvaluate the history of cryptography from its origins.  Analyze how .docx
Evaluate the history of cryptography from its origins.  Analyze how .docx
 
Evaluate the evidence provided by Apollo Shoes.Decide how to s.docx
Evaluate the evidence provided by Apollo Shoes.Decide how to s.docxEvaluate the evidence provided by Apollo Shoes.Decide how to s.docx
Evaluate the evidence provided by Apollo Shoes.Decide how to s.docx
 
Evaluate the Health History and Medical Information for Mrs. J.,.docx
Evaluate the Health History and Medical Information for Mrs. J.,.docxEvaluate the Health History and Medical Information for Mrs. J.,.docx
Evaluate the Health History and Medical Information for Mrs. J.,.docx
 
Evaluate the current state of the health care system in Sacramento. .docx
Evaluate the current state of the health care system in Sacramento. .docxEvaluate the current state of the health care system in Sacramento. .docx
Evaluate the current state of the health care system in Sacramento. .docx
 
Evaluate the advantages and disadvantages of the various decis.docx
Evaluate the advantages and disadvantages of the various decis.docxEvaluate the advantages and disadvantages of the various decis.docx
Evaluate the advantages and disadvantages of the various decis.docx
 
Evaluate some technologies that can help with continuous monitoring..docx
Evaluate some technologies that can help with continuous monitoring..docxEvaluate some technologies that can help with continuous monitoring..docx
Evaluate some technologies that can help with continuous monitoring..docx
 
Evaluate progress on certification plansReport your prog.docx
Evaluate progress on certification plansReport your prog.docxEvaluate progress on certification plansReport your prog.docx
Evaluate progress on certification plansReport your prog.docx
 
Evaluate how you have achieved course competencies and your plans to.docx
Evaluate how you have achieved course competencies and your plans to.docxEvaluate how you have achieved course competencies and your plans to.docx
Evaluate how you have achieved course competencies and your plans to.docx
 
Evaluate how information privacy and security relates to the Interne.docx
Evaluate how information privacy and security relates to the Interne.docxEvaluate how information privacy and security relates to the Interne.docx
Evaluate how information privacy and security relates to the Interne.docx
 
Evaluate assessment of suicide in forensic settings andor cri.docx
Evaluate assessment of suicide in forensic settings andor cri.docxEvaluate assessment of suicide in forensic settings andor cri.docx
Evaluate assessment of suicide in forensic settings andor cri.docx
 
Evaluate different approaches to ethical decision making. Then, choo.docx
Evaluate different approaches to ethical decision making. Then, choo.docxEvaluate different approaches to ethical decision making. Then, choo.docx
Evaluate different approaches to ethical decision making. Then, choo.docx
 
Evaluate and grade websites in terms of their compliance with PL pri.docx
Evaluate and grade websites in terms of their compliance with PL pri.docxEvaluate and grade websites in terms of their compliance with PL pri.docx
Evaluate and grade websites in terms of their compliance with PL pri.docx
 
Evaluate at least (2) factors that make financial statement analys.docx
Evaluate at least (2) factors that make financial statement analys.docxEvaluate at least (2) factors that make financial statement analys.docx
Evaluate at least (2) factors that make financial statement analys.docx
 

Recently uploaded

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Recently uploaded (20)

Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 

California State University, Fullerton College of Engineerin.docx

  • 1. California State University, Fullerton College of Engineering and Computer Science EGGN 100 Introduction to Engineering Fall 2015 LabVIEW Assignment Demo Due Today (in class) Report Due at the beginning of class on September 10, 2015 (Thursday) In this assignment, you need to do the following: 1. Using LabVIEW, generate and display a square wave 2. Modify the program from step 1 and add a ‘knob’ to control the amplitude of the square wave that you generated in step 1 above. Verify that the amplitude of the square wave changes when you turn the ‘knob’. Save two copies your program with filenames as Square.vi and HiSquare.vi 3. Now, modify the program in HiSquare.vi to scale (i.e. multiply) the amplitude of the square wave by 10 using a ‘Formula’ VI. Verify the results and save
  • 2. the program file. (You must complete steps 1, 2 and 3 in 30 minutes) 4. Demonstrate the results corresponding to part 2 (Square.vi ) and part 3 (HiSquare.vi) to the instructor before the end of class today 5. Turn in a 1-page hard-copy report at the beginning of class on September 10, 2015 (Thursday). Use Times New Roman font; size 11; 1.5 line spacing to type your report. Your report should include descriptions for the following: • The goal(s) of the assignment • The procedure that you followed in order to complete the assignment • Challenges/difficulties faced (if any) and how you overcame them • What you were able to accomplish at the end? • Conclusion P.S. Nair EGGN 100: Introduction to Engineering LabVIEW Tutorial
  • 3. Dr. Pradeep Nair Associate Professor, Computer Engineering Objectives of the Tutorial: To generate, display and modify a desired signal shape using LabVIEW graphical programming LabVIEW Description: • LabVIEW is the abbreviation for Laboratory Virtual Instrumentation Engineering Workbench • LabVIEW is a product from National Instruments Corporation (NI) • LabVIEW is a system design platform that makes use of Visual Programming/Graphical Programming • In visual programming, we make use of visual programming elements known as Virtual Instruments, or VIs, instead of writing programs/code using traditional text-based instructions P.S. Nair
  • 4. • In other words, we can say that a LabVIEW program is a collection of VIs • Visual/Graphical Programming makes the programming task easier because it allows you to drag- and-drop icons that represent programming constructs • Some of the things that LabVIEW can do (it is a powerful design platform!): specifications tput signals) for a set of inputs -related data of the system Components of a LabVIEW Program: • User Interface built by the user (you); this interface is known as the Front Panel • A window that contains the VIs that make up the program, known as the Block Diagram window • The front panel is built using Controls and Indicators P.S. Nair
  • 5. • Controls are the various input mechanisms that are available. Examples: Virtual dials, virtual knobs, virtual push-buttons etc. • Indicators are the output mechanisms. Examples are Graphs, Virtual output displays, virtual LEDs etc. LabVIEW Programming Sequence: Buil System/Process- P.S. Nair Using LabVIEW to Generate, Display and Modify Signals 1. Open LabVIEW Template’. After this, select ‘Tutorial (Getting
  • 6. Click OK. P.S. Nair 3. This will open up two new windows: Front Panel and Block Diagram. The front panel is where the controls and indicators are placed. In this part of the tutorial, the process required to generate a sine wave has already been added to the block diagram and the required controls and indicators have already been added to the front panel. We will now learn how to run this program and observe the sine wave output. 4. The front panel and the block diagram look like this: P.S. Nair 5. The block diagram is the core of the graphical program. It contains structures and VIs that interact with the front-panel objects. It looks like this:
  • 7. 6. Click on the ‘Run’ button in the front panel to run the program. It looks like this: You should now see a sine wave being displayed on the front-panel indicator. When the program is running, the ‘Run’ button changes in appearance and color, like this: 7. Stop the execution of the program by clicking on the control named ‘STOP’ in the front panel: P.S. Nair 8. Next, we will add a ‘Knob’ control (shown below) to the ‘Num Ctrls’. Then click on ‘Knob’ and then, drag the ‘Knob’ control and drop it inside the front panel. 9. Save t panel. Choose the file name as ‘SignalGeneration.vi’. Save in Desktop. 10. Next, we will change the signal display type from Sine wave to a ‘Sawtooth’ wave. For this, first click on the block diagram window. Then double click on the VI block that is named as ‘Simulate Signal’.
  • 8. P.S. Nair 11. You will now see that a new window pops up, as shown below. Change the ‘Signal type’ to ‘Sawtooth’. Click OK. 12. If you run the program in the front panel now, you will see the new Sawtooth signal in the front panel 13. Highlight the ‘Simulate Signal’ block by clicking over it once in the block diagram window and keep the cursor over the lower part of the ‘Simulate Signal’ block. A double-sided arrow will appear. Click and pull downwards till you can see an input called ‘Amplitude’ P.S. Nair being displayed. An input is denoted by an arrow feeding into the ‘Simulate Signal’ block and an output is denoted by an arrow feeding leaving the ‘Simulate Signal’ block 14. In the block diagram, move the ‘Knob’ VI to the left of the ‘Simulate Signal’ block. Click on the output of the ‘Knob’ VI and draw out a wire (click and pull till the termination point). Terminate the wire at the input of ‘Amplitude’ in the ‘Simulate Signal’ VI. The amplitude of the Sawtooth wave generated can now be controlled
  • 9. from the front panel using the knob. Run the program to verify this and then stop execution using ‘STOP’. 15. Next, we will scale the amplitude of the signal according to a formula. For this, first click on the wire connecting the ‘Simulate Signal’ VI with the ‘Waveform Graph’ P.S. Nair and delete the wire using the Delete button on your keyboard. 16. In the block diagram window, click on ‘Formula’. Drag the ‘Formula’ VI to the block diagram window, as shown below: 17. Double-click on the ‘Formula’ VI and change the label in the first label field (in this example, it is X1) to the name of the output wave generated by the ‘Simulate Signal’ VI (in this example it is ‘Sawtooth’). The display field in the ‘Formula’ VI will now read as ‘Sawtooth’. Replace it by ‘Sawtooth * 2’. Click OK. This VI will P.S. Nair now multiply the incoming sawtooth signal amplitude by 2.
  • 10. 18. Connect the ‘Sawtooth’ output of the Simulate Signal’ VI to the ‘Sawtooth’ input of the ‘Formula’ VI using a wire. 19. Connect the ‘Result’ output of the Simulate Signal’ VI to the input of the ‘Waveform Graph’ VI using another wire. 20. Run your program in the front panel and verify that the signal amplitude of the original sawtooth waveform is now scaled by 2. Also verify that the amplitude is still sensitive to the input from the knob.