Your Federal Quarterly Tax Payments are due April 15th Get Help Now >>

Sample Title Slide - Download as PowerPoint by E72asoA

VIEWS: 0 PAGES: 17

									Institute of Mathematical and Physical Sciences




        An Introduction to LabVIEW




                                                  C.A.WILLSON
 Institute of Mathematical and Physical Sciences




Course Aims

•Understand the components of a Virtual
 Instrument
•Introduce LabVIEW and common LabVIEW
 functions
•Create a subroutine in LabVIEW



                                                   C.A.WILLSON
 Institute of Mathematical and Physical Sciences



Section I


•LabVIEW terms
•Components of a LabVIEW application
•LabVIEW programming tools
•Creating an application in LabVIEW




                                                   C.A.WILLSON
   Institute of Mathematical and Physical Sciences


LabVIEW Programs known as Virtual Instruments (VIs)


Front Panel
  Controls = Inputs
  Indicators = Outputs


Block Diagram
  Accompanying “program” for
    front panel
  Components “wired” together



                                                     C.A.WILLSON
    Institute of Mathematical and Physical Sciences


VI Front Panel
                                             Panel Toolbar




Numeric
Controls


Numeric
Indicator

Boolean
Control




                          Array              X-Y Graph
                          Indicators                         C.A.WILLSON
     Institute of Mathematical and Physical Sciences


    VI Block Diagram
                                      Numeric Indicator



  Control
  Terminals




Stop Button
Terminal



       While Loop                              Numeric Constant
       Stop Terminal                                                 While Loop

                For-Next Loop
                                                                  C.A.WILLSON
 Institute of Mathematical and Physical Sciences


 Controls and Functions Palettes


                   Graphical, floating palettes
                   used to place controls and
                   indicators on the front panel,
                   or to build the block diagram.



Controls Palette                      Functions Palette
 (Front Panel)                        (Block Diagram)


                                                          C.A.WILLSON
Institute of Mathematical and Physical Sciences


Tools Palette

         Floating palette used to operate and modify front
         panel and block diagram objects. Click the green
         rectangle for automatic selection.

     Operating Tool                           Scrolling Tool
     Positioning/Resizing Tool                Breakpoint Tool
     Labeling Tool                            Probe Tool
     Wiring Tool                              Color Copy Tool
     Shortcut Menu Tool                       Coloring Tool

                                                                C.A.WILLSON
Institute of Mathematical and Physical Sciences


Status Toolbar


            Run Button

            Continuous Run Button             Additional Buttons on the
                                              Diagram Toolbar
            Abort Execution

            Pause/Continue Button                  Execution Highlighting
                                                   Button
            Text Settings
                                                   Step Into Button
            Align Objects
                                                   Step Over Button
            Distribute Objects
                                                   Step Out Button
            Re-order


                                                               C.A.WILLSON
Institute of Mathematical and Physical Sciences

 Creating a VI
    Front Panel Window

                                 Indicators

                                                  Corresponding
                                                  Indicator
                                                  Terminals




  Controls


              Corresponding
              Control
              Terminals


                             Block Diagram Window                 C.A.WILLSON
     Institute of Mathematical and Physical Sciences

 Creating a front panel

Right click to select
the controls palette

Drag and drop the
components


As you place
components a
corresponding
terminal will
appear in the
diagram window




                                                       C.A.WILLSON
Institute of Mathematical and Physical Sciences


Wiring the diagram
                                                  Right click to select
                                                  the functions palette

                                                  Drag and drop
                                                  functions

                                                  Select the wiring tool


                                                  Drag the wire between
                                                  terminals




                                                       C.A.WILLSON
Institute of Mathematical and Physical Sciences



 Program Dataflow
• Block diagram does not execute left to right
• Node executes when data is available to ALL input terminals
• Nodes supply data to all output terminals when done




                                                                C.A.WILLSON
     Institute of Mathematical and Physical Sciences


      Running the program
Click Run to execute
the program


The program will
read the inputs,
display a result, and
exit

To make the
process continuous,
a loop must be
added.



                                                       C.A.WILLSON
 Institute of Mathematical and Physical Sciences


Section II – Loops

 While Loops

          Have iteration terminal I

          Run continuously, subject
          to the Exit terminal status



 For Loops

     Have iteration terminal I

     Run N times set by input N



                                                   C.A.WILLSON
    Institute of Mathematical and Physical Sciences


Adding a loop

Select the While loop
and drag and drop
around the section
you wish to repeat.

 Add a Stop button
with which to exit
the loop.

 Wire the button
terminal to the exit
terminal.




                                                      C.A.WILLSON
Institute of Mathematical and Physical Sciences




                                                  C.A.WILLSON

								
To top