SlideShare a Scribd company logo
1 of 20
PEOPLE WHO NEED PROGRAMMING,
BUT NOT A PROGRAMMER
LabVIEW
From NATIONAL INSTRUMENTS
MAY GOOD SOLUTION FOR THESE PROBLEMS!!
TEXT / GRAPHICAL PROGRAMMING LANGUAGE
• INT A
• INT B
• INT SUM
(INT A, INT B);
ABOUT LABVIEW
• LabVIEW IS A HIGHLY ADAPTABLE PROGRAMMING GUI (GRAPHIC
USER INTERFACE)
• LabVIEW COMPILES THE CODE INTO MACHINE INSTRUCTIONS,
MUCH LIKE THE PROGRAMMING LANGUAGE C
• THIS LANGUAGE (G) IS USED EXTENSIVELY THROUGHOUT A WIDE
VARIETY OF INDUSTRIES.
GRAPHICAL PROGRAMMING LANGUAGE & DATA
FLOW
• LABVIEW RELIES ON GRAPHICAL SYMBOLS RATHER THAN
TEXTUAL LANGUAGE TO DESCRIBE PROGRAMMING ACTIONS
• THE PRINCIPLE OF DATAFLOW, IN WHICH FUNCTIONS EXECUTE
ONLY AFTER RECEIVING THE NECESSARY DATA, GOVERNS
EXECUTION IN A STRAIGHT FORWARD MANNER
BASICS TERMS TO KNOW
• FRONT PANEL
• BLOCK DIAGRAM
• CONNECTOR PANEL
• VI
• WIRES
• BASIC COLOUR
• BROKEN WIRE
FRONT PANEL
• THE FRONT PANEL OF EACH VI IS WHERE YOU WILL
ACTUALLY USE THE PROGRAM.
• THIS IS WHERE YOU PLACE ALL OF YOUR
CONTROLLERS (THEY ALLOW YOU TO SET A VALUE),
INDICATORS (THEY SHOW YOU THE RESULT VALUE ),
BLOCK DIAGRAM
• THE BLOCK DIAGRAM IS WHERE YOU WRITE YOUR ACTUAL
CODE.
• USE WIRES TO CONNECT DIFFERENT INPUTS, OUTPUTS,
FUNCTIONS, AND VALUES.
• ALL OF THE CODE RUNS PARALLEL, WHICH MEANS THAT IT
FOLLOWS THE WIRE LEFT TO RIGHT.
CONNECTOR PANEL
• THE CONNECTOR PANEL ALLOWS YOU TO TURN A VI INTO
A FUNCTION.
• THIS MAKES IT EASY TO SIMPLIFY CODE.
• THE CONNECTOR PANEL HAS A PICTURE THAT YOU MAKE
OF THE CODE TO REPRESENT THE FUNCTION.
• YOU CAN THEN ADD TERMINALS TO THE PICTURE TO
ALLOW YOU TO WIRE PARTS OF THE CODE TO OTHER
VIS.
BRING THE VI COMPONENTS
TOGETHER
Block diagram
Front Panel
Connector Panel
+ =
MATH EXAMPLE- THE QUADRATIC EQUATION
As you can see,
math isn’t too
hard to program in
LabView. Just
make sure to pay
attention to the
places where a
wire crosses
another wire,
because those
jumps can cause
some confusion.
I branch several wires to stop the program from
having to do the same thing twice. This is more
to make it read easier than anything, but it may
save several computer cycles in complex code.
HOW DOES LABVIEW WORK?
• LABVIEW PROGRAMS ARE CALLED:
• VIRTUAL INSTRUMENTS (VIS)
• BECAUSE THEIR APPEARANCE AND OPERATION IMITATE
ACTUAL INSTRUMENTS.
• HOWEVER, THEY ARE ANALOGOUS TO MAIN
PROGRAMS, FUNCTIONS AND SUBROUTINES
FROM POPULAR LANGUAGE LIKE C, FORTRAN,
PASCAL, …
CONTROL? OR INDICATOR?
Controls = Inputs from the user = Source Terminals
Indicators = Outputs to the user = Destinations
LOOPS
• FOR LOOP
• INDEXING OVER ARRAYS
• WHILE LOOP
• WAIT FOR AN EVENT TO STOP
(SUCH AS USER OR TRIGGER)
• FEEDBACK BLOCK
• SEQUENCE LOOPS
• SPECIFY EXECUTION ORDER
• IMPORTANT FOR LOCAL VARIABLES
• CASE LOOPS
• CONDITIONAL EXECUTION
16
Reorder objects
Run
Continuous run
PauseStop
Font ring
Alignment ring
Distribution ring
Debugging features
more on this later…
THE RUN BUTTON
THE RUN BUTTON, WHICH
LOOKS LIKE AN ARROW,
STARTS VI EXECUTION
WHEN YOU CLICK ON IT
IT CHANGES APPEARANCE
WHEN A VI IS ACTUALLY
RUNNING.
WHEN A VI WON’T COMPILE,
THE RUN BUTTON IS
BROKEN
RUNNING LABVIEW PROGRAMS
• ALMOST ALWAYS PUT YOUR PROGRAM IN SOME SORT OF
LOOP THAT CAN BE STOPPED WITH A CONTROL
• AVOID USING THE RED “X” TO STOP YOUR PROGRAM
LET US START
WITH
REAL WORK

More Related Content

What's hot

Functional Scala
Functional ScalaFunctional Scala
Functional ScalaStan Lea
 
Graphical Programming is Dead
Graphical Programming is DeadGraphical Programming is Dead
Graphical Programming is DeadSigasi
 
Valuable Information on Lexical Analysis in Compiler Design
Valuable Information on Lexical Analysis in Compiler DesignValuable Information on Lexical Analysis in Compiler Design
Valuable Information on Lexical Analysis in Compiler DesignLesa Cote
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursArihant Jain
 
LabVIEW lecture handout by Prof. d k chaturvedi
LabVIEW lecture handout by Prof. d k chaturvediLabVIEW lecture handout by Prof. d k chaturvedi
LabVIEW lecture handout by Prof. d k chaturvedimayank agarwal
 
Introduction to LabVIEW
Introduction to LabVIEWIntroduction to LabVIEW
Introduction to LabVIEWAhmed Elsayed
 
Programming process and flowchart
Programming process and flowchartProgramming process and flowchart
Programming process and flowcharthermiraguilar
 
Flowcharting and pseudocoding
Flowcharting and pseudocodingFlowcharting and pseudocoding
Flowcharting and pseudocodingSara Corpuz
 

What's hot (20)

Graphical programming
Graphical programmingGraphical programming
Graphical programming
 
Functional Scala
Functional ScalaFunctional Scala
Functional Scala
 
Graphical Programming is Dead
Graphical Programming is DeadGraphical Programming is Dead
Graphical Programming is Dead
 
Valuable Information on Lexical Analysis in Compiler Design
Valuable Information on Lexical Analysis in Compiler DesignValuable Information on Lexical Analysis in Compiler Design
Valuable Information on Lexical Analysis in Compiler Design
 
Introduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hoursIntroduction to lab view 8.6 in 3 hours
Introduction to lab view 8.6 in 3 hours
 
Lesson 1 introduction to programming
Lesson 1 introduction to programmingLesson 1 introduction to programming
Lesson 1 introduction to programming
 
Labview material
Labview materialLabview material
Labview material
 
LabVIEW lecture handout by Prof. d k chaturvedi
LabVIEW lecture handout by Prof. d k chaturvediLabVIEW lecture handout by Prof. d k chaturvedi
LabVIEW lecture handout by Prof. d k chaturvedi
 
Lesson 4.1 completing the problem solving process
Lesson 4.1 completing the problem solving processLesson 4.1 completing the problem solving process
Lesson 4.1 completing the problem solving process
 
Introduction to LabVIEW
Introduction to LabVIEWIntroduction to LabVIEW
Introduction to LabVIEW
 
Programming process and flowchart
Programming process and flowchartProgramming process and flowchart
Programming process and flowchart
 
Flowcharting and pseudocoding
Flowcharting and pseudocodingFlowcharting and pseudocoding
Flowcharting and pseudocoding
 
Phases of Compiler
Phases of CompilerPhases of Compiler
Phases of Compiler
 
Lesson 3.1 variables and constant
Lesson 3.1 variables and constantLesson 3.1 variables and constant
Lesson 3.1 variables and constant
 
Lesson 2 beginning the problem solving process
Lesson 2 beginning the problem solving processLesson 2 beginning the problem solving process
Lesson 2 beginning the problem solving process
 
LabVIEW: This Or That?
LabVIEW: This Or That?LabVIEW: This Or That?
LabVIEW: This Or That?
 
Fundamentals of-algorithm
Fundamentals of-algorithmFundamentals of-algorithm
Fundamentals of-algorithm
 
Unit 1 psp
Unit 1 pspUnit 1 psp
Unit 1 psp
 
Lesson 4.2 5th and 6th step
Lesson 4.2 5th and 6th stepLesson 4.2 5th and 6th step
Lesson 4.2 5th and 6th step
 
Compiler lecture 03
Compiler lecture 03Compiler lecture 03
Compiler lecture 03
 

Similar to LabVIEW Introduction

Lecture handout by Mohd. Ayub Khan
Lecture handout by Mohd. Ayub KhanLecture handout by Mohd. Ayub Khan
Lecture handout by Mohd. Ayub Khanmayank agarwal
 
Programming FPGA in electronic systems
Programming FPGA in electronic systemsProgramming FPGA in electronic systems
Programming FPGA in electronic systemsSharad Pandey
 
Control and simulation in lab view
Control and simulation in lab viewControl and simulation in lab view
Control and simulation in lab viewNadana Ayzah Azis
 
38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptx38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptxBKushal1
 
Introduction to lab_view
Introduction to lab_viewIntroduction to lab_view
Introduction to lab_viewSugeng Rianto
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxlematadese670
 
38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdf38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdfBKushal1
 
2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...
2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...
2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...eMadrid network
 
TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...
TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...
TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...Mohamed Tawfik
 
Basics of Programming
Basics of ProgrammingBasics of Programming
Basics of ProgrammingAkNirojan
 
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...Ajesh Jacob
 
Visual basic ictl bi
Visual basic ictl biVisual basic ictl bi
Visual basic ictl binad_84
 
Consider the following interrupting system. The active-edge inputs o.pdf
Consider the following interrupting system. The active-edge inputs o.pdfConsider the following interrupting system. The active-edge inputs o.pdf
Consider the following interrupting system. The active-edge inputs o.pdffasttrackscardecors
 
Labview1_ Computer Applications in Control_ACRRL
Labview1_ Computer Applications in Control_ACRRLLabview1_ Computer Applications in Control_ACRRL
Labview1_ Computer Applications in Control_ACRRLMohammad Sabouri
 
difference between c c++ c#
difference between c c++ c#difference between c c++ c#
difference between c c++ c#Sireesh K
 

Similar to LabVIEW Introduction (20)

Lecture handout by Mohd. Ayub Khan
Lecture handout by Mohd. Ayub KhanLecture handout by Mohd. Ayub Khan
Lecture handout by Mohd. Ayub Khan
 
COMPUTER PROGRAMMING
COMPUTER PROGRAMMINGCOMPUTER PROGRAMMING
COMPUTER PROGRAMMING
 
Programming FPGA in electronic systems
Programming FPGA in electronic systemsProgramming FPGA in electronic systems
Programming FPGA in electronic systems
 
Control and simulation in lab view
Control and simulation in lab viewControl and simulation in lab view
Control and simulation in lab view
 
38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptx38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptx
 
C c#
C c#C c#
C c#
 
Introduction to lab_view
Introduction to lab_viewIntroduction to lab_view
Introduction to lab_view
 
Embedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptxEmbedded programming Embedded programming (1).pptx
Embedded programming Embedded programming (1).pptx
 
38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdf38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdf
 
2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...
2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...
2012 04-18 (educon2012) emadrid uned on design remote laboratories study lab ...
 
C programming
C programmingC programming
C programming
 
TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...
TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...
TAEE 2011- State-of-the-Art Remote Laboratories for Industrial Electronics Ap...
 
Demo of RTI DDS toolkit for LabVIEW
Demo of RTI DDS toolkit for LabVIEWDemo of RTI DDS toolkit for LabVIEW
Demo of RTI DDS toolkit for LabVIEW
 
Basics of Programming
Basics of ProgrammingBasics of Programming
Basics of Programming
 
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA POWE...
 
Visual basic ictl bi
Visual basic ictl biVisual basic ictl bi
Visual basic ictl bi
 
Serverless Summit - Quiz
Serverless Summit - QuizServerless Summit - Quiz
Serverless Summit - Quiz
 
Consider the following interrupting system. The active-edge inputs o.pdf
Consider the following interrupting system. The active-edge inputs o.pdfConsider the following interrupting system. The active-edge inputs o.pdf
Consider the following interrupting system. The active-edge inputs o.pdf
 
Labview1_ Computer Applications in Control_ACRRL
Labview1_ Computer Applications in Control_ACRRLLabview1_ Computer Applications in Control_ACRRL
Labview1_ Computer Applications in Control_ACRRL
 
difference between c c++ c#
difference between c c++ c#difference between c c++ c#
difference between c c++ c#
 

Recently uploaded

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 

Recently uploaded (20)

Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 

LabVIEW Introduction

  • 1.
  • 2. PEOPLE WHO NEED PROGRAMMING, BUT NOT A PROGRAMMER
  • 3.
  • 4. LabVIEW From NATIONAL INSTRUMENTS MAY GOOD SOLUTION FOR THESE PROBLEMS!!
  • 5. TEXT / GRAPHICAL PROGRAMMING LANGUAGE • INT A • INT B • INT SUM (INT A, INT B);
  • 6. ABOUT LABVIEW • LabVIEW IS A HIGHLY ADAPTABLE PROGRAMMING GUI (GRAPHIC USER INTERFACE) • LabVIEW COMPILES THE CODE INTO MACHINE INSTRUCTIONS, MUCH LIKE THE PROGRAMMING LANGUAGE C • THIS LANGUAGE (G) IS USED EXTENSIVELY THROUGHOUT A WIDE VARIETY OF INDUSTRIES.
  • 7. GRAPHICAL PROGRAMMING LANGUAGE & DATA FLOW • LABVIEW RELIES ON GRAPHICAL SYMBOLS RATHER THAN TEXTUAL LANGUAGE TO DESCRIBE PROGRAMMING ACTIONS • THE PRINCIPLE OF DATAFLOW, IN WHICH FUNCTIONS EXECUTE ONLY AFTER RECEIVING THE NECESSARY DATA, GOVERNS EXECUTION IN A STRAIGHT FORWARD MANNER
  • 8. BASICS TERMS TO KNOW • FRONT PANEL • BLOCK DIAGRAM • CONNECTOR PANEL • VI • WIRES • BASIC COLOUR • BROKEN WIRE
  • 9. FRONT PANEL • THE FRONT PANEL OF EACH VI IS WHERE YOU WILL ACTUALLY USE THE PROGRAM. • THIS IS WHERE YOU PLACE ALL OF YOUR CONTROLLERS (THEY ALLOW YOU TO SET A VALUE), INDICATORS (THEY SHOW YOU THE RESULT VALUE ),
  • 10. BLOCK DIAGRAM • THE BLOCK DIAGRAM IS WHERE YOU WRITE YOUR ACTUAL CODE. • USE WIRES TO CONNECT DIFFERENT INPUTS, OUTPUTS, FUNCTIONS, AND VALUES. • ALL OF THE CODE RUNS PARALLEL, WHICH MEANS THAT IT FOLLOWS THE WIRE LEFT TO RIGHT.
  • 11. CONNECTOR PANEL • THE CONNECTOR PANEL ALLOWS YOU TO TURN A VI INTO A FUNCTION. • THIS MAKES IT EASY TO SIMPLIFY CODE. • THE CONNECTOR PANEL HAS A PICTURE THAT YOU MAKE OF THE CODE TO REPRESENT THE FUNCTION. • YOU CAN THEN ADD TERMINALS TO THE PICTURE TO ALLOW YOU TO WIRE PARTS OF THE CODE TO OTHER VIS.
  • 12. BRING THE VI COMPONENTS TOGETHER Block diagram Front Panel Connector Panel + =
  • 13. MATH EXAMPLE- THE QUADRATIC EQUATION As you can see, math isn’t too hard to program in LabView. Just make sure to pay attention to the places where a wire crosses another wire, because those jumps can cause some confusion. I branch several wires to stop the program from having to do the same thing twice. This is more to make it read easier than anything, but it may save several computer cycles in complex code.
  • 14. HOW DOES LABVIEW WORK? • LABVIEW PROGRAMS ARE CALLED: • VIRTUAL INSTRUMENTS (VIS) • BECAUSE THEIR APPEARANCE AND OPERATION IMITATE ACTUAL INSTRUMENTS. • HOWEVER, THEY ARE ANALOGOUS TO MAIN PROGRAMS, FUNCTIONS AND SUBROUTINES FROM POPULAR LANGUAGE LIKE C, FORTRAN, PASCAL, …
  • 15. CONTROL? OR INDICATOR? Controls = Inputs from the user = Source Terminals Indicators = Outputs to the user = Destinations
  • 16. LOOPS • FOR LOOP • INDEXING OVER ARRAYS • WHILE LOOP • WAIT FOR AN EVENT TO STOP (SUCH AS USER OR TRIGGER) • FEEDBACK BLOCK • SEQUENCE LOOPS • SPECIFY EXECUTION ORDER • IMPORTANT FOR LOCAL VARIABLES • CASE LOOPS • CONDITIONAL EXECUTION 16
  • 17. Reorder objects Run Continuous run PauseStop Font ring Alignment ring Distribution ring Debugging features more on this later…
  • 18. THE RUN BUTTON THE RUN BUTTON, WHICH LOOKS LIKE AN ARROW, STARTS VI EXECUTION WHEN YOU CLICK ON IT IT CHANGES APPEARANCE WHEN A VI IS ACTUALLY RUNNING. WHEN A VI WON’T COMPILE, THE RUN BUTTON IS BROKEN
  • 19. RUNNING LABVIEW PROGRAMS • ALMOST ALWAYS PUT YOUR PROGRAM IN SOME SORT OF LOOP THAT CAN BE STOPPED WITH A CONTROL • AVOID USING THE RED “X” TO STOP YOUR PROGRAM