SlideShare a Scribd company logo
1 of 21
UNIT-II- VI PROGRAMMING
TECHNIQUES
Front Panel
Controls = Inputs
Indicators = Outputs
Block Diagram
Accompanying “program” for
front panel
Components “wired” together
LabVIEW Programs Are Called Virtual
Instruments (VIs)
Boolean
Control
Double
Indicator
Waveform Graph
Panel T
oolbar
VI Front Panel
VI Block Diagram
NumericConstant WhileLoop
Callto
subVI
Knob
Terminal
StopButton
Terminal
StopLoop
Terminal
Thermometer
Terminal
Temperature
Graph
Controls and Functions Palettes
Graphical, floating palettes
Used to place controls &
indicators on the front panel, or
to build the block diagram
Controls Palette
(Panel Window)
Functions Palette
(Diagram Window)
Tools Palette
Operating Tool
Positioning/Resizing Tool
Labeling Tool
Wiring Tool
Shortcut Menu Tool
Scrolling Tool
Breakpoint Tool
Probe Tool
Color Copy Tool
Coloring Tool
• Floating Palette
• Used to operate and modify front
panel and block diagram objects.
Automatic Selection Tool
Run Button
Continuous Run
Button
Abort Execution
Pause/Continue
Button
Text Settings
Align Objects
Distribute Objects
Reorder
Additional Buttons on
the Diagram Toolbar
Execution
Highlighting Button
Step Into Button
Step Over Button
Step Out Button
Status Toolbar
Signal Generation
and Processing.vi
Help » Find Examples…
BrowseAccording to: Task
» Analyzing and Processing Signals
» Signal Processing
» Signal Generation and Processing.vi
Open and Run a Virtual Instrument
Control
T
erminals
Block Diagram Window
Front Panel Window
Indicator
T
erminals
Creating a VI
Creating a VI – Block Diagram
• After Creating Front Panel Controls and Indicators, Switch to
Block Diagram <Ctrl-E>
• Move Front Panel Objects to Desired Locations Using the
Position/Size/Select Tool
• Place Functions On Diagram
• WireAppropriate Terminals Together to Complete the
Diagram
WiringTips– Block Diagram
Wiring“Hot Spot” ClickToSelectWires
ClickWhileWiringToTack WiresDown
SpacebarFlips WireOrientation
SubVirtual Instruments
Whatis a subVI?
• Making an icon and
connectorfor a
subVI
• Using aVI as a subVI
SubVIs
• ASubVI is a VI that can be used within
another VI
• Advantages
– Modular
– Easier to debug
– Don’t have to recreate code
– Require less memory
Iconand Connector
• An icon represents a VI in otherblock
diagrams
• Aconnector shows available
terminals fordata transfer
SubVIs
SubVIs
Steps to Create a SubVI
• Create the Icon
• Create the Connector
• Assign Terminals
• Save the VI
• Insert the VI into a Top Level VI
Create the Icon
• Right-click on the icon in the
diagram or front panel
Create the Connector
Right click on the icon pane (front panel only)
Assign Terminals
Save The VI
• Choose an Easy to Remember Location
• Organize by Functionality
– Save Similar VIs into one directory (e.g. Math Utilities)
• Organize byApplication
– Save all VIs Used for a Specific Application into one
directory or library file (e.g. Lab 1 – Frequency Response)
• Library Files (.llbs) combine many VI’s into a single
file, ideal for transferring entire applications across
computers
Insert the SubVI into a Top Level VI
Accessing user-made subVIs
Functions >> Select a VI
Or
Drag icon onto target diagram

More Related Content

Similar to Unit 3 Sensor and Instrumentation _Graphical programming techniques.pptx

Lesson 1 navigating lab view
Lesson 1   navigating lab viewLesson 1   navigating lab view
Lesson 1 navigating lab viewRaymundo Vazquez
 
Getting started with LabVIEW
Getting started with LabVIEWGetting started with LabVIEW
Getting started with LabVIEWYomna Eid
 
Virtual Instrumentation & LabVIEW-lini.ppt
Virtual Instrumentation & LabVIEW-lini.pptVirtual Instrumentation & LabVIEW-lini.ppt
Virtual Instrumentation & LabVIEW-lini.pptAvinashJain66
 
Sample instrument using lab view abhijeet agarwal-1
Sample instrument using lab view  abhijeet agarwal-1Sample instrument using lab view  abhijeet agarwal-1
Sample instrument using lab view abhijeet agarwal-1Abhijeet Agarwal
 
Introduction%20to%20 labview
Introduction%20to%20 labviewIntroduction%20to%20 labview
Introduction%20to%20 labviewandrearln
 
38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptx38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptxBKushal1
 
Lab-Lecture3-Intro-to-LabView(1).ppt
Lab-Lecture3-Intro-to-LabView(1).pptLab-Lecture3-Intro-to-LabView(1).ppt
Lab-Lecture3-Intro-to-LabView(1).pptBakiyalakshmiR1
 
38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdf38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdfBKushal1
 
Lab view introduction
Lab view introductionLab view introduction
Lab view introductionJakupBerisha2
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE IntroductionAhllen Javier
 
Visual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdfVisual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdfsheenmarie0212
 
Version 3 introduction 11 jul-2016
Version 3 introduction 11 jul-2016Version 3 introduction 11 jul-2016
Version 3 introduction 11 jul-2016Wellbarrier
 

Similar to Unit 3 Sensor and Instrumentation _Graphical programming techniques.pptx (20)

Lesson 1 navigating lab view
Lesson 1   navigating lab viewLesson 1   navigating lab view
Lesson 1 navigating lab view
 
Getting started with LabVIEW
Getting started with LabVIEWGetting started with LabVIEW
Getting started with LabVIEW
 
Virtual Instrumentation & LabVIEW-lini.ppt
Virtual Instrumentation & LabVIEW-lini.pptVirtual Instrumentation & LabVIEW-lini.ppt
Virtual Instrumentation & LabVIEW-lini.ppt
 
Sample instrument using lab view abhijeet agarwal-1
Sample instrument using lab view  abhijeet agarwal-1Sample instrument using lab view  abhijeet agarwal-1
Sample instrument using lab view abhijeet agarwal-1
 
Introduction%20to%20 labview
Introduction%20to%20 labviewIntroduction%20to%20 labview
Introduction%20to%20 labview
 
Lab view
Lab viewLab view
Lab view
 
38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptx38180007 Sarish Wadkar.pptx
38180007 Sarish Wadkar.pptx
 
Lab-Lecture3-Intro-to-LabView(1).ppt
Lab-Lecture3-Intro-to-LabView(1).pptLab-Lecture3-Intro-to-LabView(1).ppt
Lab-Lecture3-Intro-to-LabView(1).ppt
 
Labview material
Labview materialLabview material
Labview material
 
LabView Workshop
LabView WorkshopLabView Workshop
LabView Workshop
 
38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdf38180007 Sarish Wadkar.pdf
38180007 Sarish Wadkar.pdf
 
VISUAL PROGRAMMING
VISUAL PROGRAMMINGVISUAL PROGRAMMING
VISUAL PROGRAMMING
 
Labview
Labview Labview
Labview
 
Virtual instrumentation (LabVIEW)
Virtual instrumentation (LabVIEW)Virtual instrumentation (LabVIEW)
Virtual instrumentation (LabVIEW)
 
2 front panel
2  front panel2  front panel
2 front panel
 
Lab view introduction
Lab view introductionLab view introduction
Lab view introduction
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Visual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdfVisual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdf
 
Version 3 introduction 11 jul-2016
Version 3 introduction 11 jul-2016Version 3 introduction 11 jul-2016
Version 3 introduction 11 jul-2016
 
Swift
SwiftSwift
Swift
 

Recently uploaded

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 

Recently uploaded (20)

#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 

Unit 3 Sensor and Instrumentation _Graphical programming techniques.pptx

  • 2. Front Panel Controls = Inputs Indicators = Outputs Block Diagram Accompanying “program” for front panel Components “wired” together LabVIEW Programs Are Called Virtual Instruments (VIs)
  • 4. VI Block Diagram NumericConstant WhileLoop Callto subVI Knob Terminal StopButton Terminal StopLoop Terminal Thermometer Terminal Temperature Graph
  • 5. Controls and Functions Palettes Graphical, floating palettes Used to place controls & indicators on the front panel, or to build the block diagram Controls Palette (Panel Window) Functions Palette (Diagram Window)
  • 6. Tools Palette Operating Tool Positioning/Resizing Tool Labeling Tool Wiring Tool Shortcut Menu Tool Scrolling Tool Breakpoint Tool Probe Tool Color Copy Tool Coloring Tool • Floating Palette • Used to operate and modify front panel and block diagram objects. Automatic Selection Tool
  • 7. Run Button Continuous Run Button Abort Execution Pause/Continue Button Text Settings Align Objects Distribute Objects Reorder Additional Buttons on the Diagram Toolbar Execution Highlighting Button Step Into Button Step Over Button Step Out Button Status Toolbar
  • 8. Signal Generation and Processing.vi Help » Find Examples… BrowseAccording to: Task » Analyzing and Processing Signals » Signal Processing » Signal Generation and Processing.vi Open and Run a Virtual Instrument
  • 9. Control T erminals Block Diagram Window Front Panel Window Indicator T erminals Creating a VI
  • 10. Creating a VI – Block Diagram • After Creating Front Panel Controls and Indicators, Switch to Block Diagram <Ctrl-E> • Move Front Panel Objects to Desired Locations Using the Position/Size/Select Tool • Place Functions On Diagram • WireAppropriate Terminals Together to Complete the Diagram
  • 11. WiringTips– Block Diagram Wiring“Hot Spot” ClickToSelectWires ClickWhileWiringToTack WiresDown SpacebarFlips WireOrientation
  • 12. SubVirtual Instruments Whatis a subVI? • Making an icon and connectorfor a subVI • Using aVI as a subVI
  • 13. SubVIs • ASubVI is a VI that can be used within another VI • Advantages – Modular – Easier to debug – Don’t have to recreate code – Require less memory
  • 14. Iconand Connector • An icon represents a VI in otherblock diagrams • Aconnector shows available terminals fordata transfer
  • 16. Steps to Create a SubVI • Create the Icon • Create the Connector • Assign Terminals • Save the VI • Insert the VI into a Top Level VI
  • 17. Create the Icon • Right-click on the icon in the diagram or front panel
  • 18. Create the Connector Right click on the icon pane (front panel only)
  • 20. Save The VI • Choose an Easy to Remember Location • Organize by Functionality – Save Similar VIs into one directory (e.g. Math Utilities) • Organize byApplication – Save all VIs Used for a Specific Application into one directory or library file (e.g. Lab 1 – Frequency Response) • Library Files (.llbs) combine many VI’s into a single file, ideal for transferring entire applications across computers
  • 21. Insert the SubVI into a Top Level VI Accessing user-made subVIs Functions >> Select a VI Or Drag icon onto target diagram