Lesson 1 - Setting Up Hardware.pdf

Embed Size (px)

Citation preview

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    1/33

    LabVIEW Core 1

    ni.com/training

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    2/33

    What You Need To Get Started

    LabVIEW Core 1 Course Manual

    LabVIEW Core 1 Exercise Manual

    ni.com/training

    Computer runningLabVIEW 2009 or later

    and Windows 2000 or later

    Multifunction DAQ device

    GPIB interface

    DAQ Signal Accessory, wires, and cable

    NI Instrument Simulator and power supply

    Serial and GPIB cables

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    3/33

    File Locations

    The course installer places the course files in the following

    location:

    Exercises

    ni.com/training

    Root Directory Solutions Core 1

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    4/33

    Instructional Methods

    Quizzes

    Demonstrations

    ConceptExercise

    ni.com/training

    TopicLecture Development

    Exercise

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    5/33

    Getting The Most Out Of This Course

    Ask questions!

    Experiment with hands-on exercises to understand the

    methods used

    ni.com/training

    Implementations explore a possible solutionyou may find

    a better one

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    6/33

    Courses

    New User

    LabVIEW Core 1

    LabVIEW Core 2

    Experienced User

    LabVIEW Core 3 Managing SoftwareEngineering in LabVIEW

    LabVIEW OOP System

    Design

    Advanced Architectures

    in LabVIEW

    Skills learned:

    LabVIEW environment

    navigation

    Dataflow programming

    Use of common design

    Skills learned:

    Modular application

    development

    Structured design and

    development practices

    Inter-application

    communication and

    Skills learned:

    Manage a LabVIEW project from

    desi n to de lo ment

    ni.com/training

    Certifications

    Certified LV Associate

    Developer Exam

    Skills tested:

    LabVIEW environment

    knowledge

    Certified LabVIEW

    Developer Exam

    Skills tested:

    LabVIEW application

    development expertise

    Certified LabVIEW

    Architect Exam

    Skills tested:

    LabVIEW application

    development mastery

    Event driven programming

    Programmatic UI control

    connectivity techniques

    Object-oriented programming for

    LabVIEW

    Develop scalable applications and

    reusable code

    Advanced design patterns for LabVIEW

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    7/33

    Course Learning Map

    Lesson 1

    Setting Up Hardware

    Lesson 4

    Implementing a VI

    Lesson 7

    Developing ModularApplications

    ni.com/training

    Lesson 3

    Troubleshooting & DebuggingVIs

    Navigating LabVIEW

    Lesson 6

    Managing Resources

    Relating Data

    Lesson 9

    Using Variables

    Common Design Techniquesand Patterns

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    8/33

    Course Goals

    This course prepares you for the following:

    Solve problems using LabVIEW

    Use data acquisition and instrument control in LabVIEW

    ni.com/training

    Use modular programming practices

    Develop, debug, and test LabVIEW VIs

    Effectively use a state machine architecture

    Parallelism and variables

    8

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    9/33

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    10/33

    Setting Up Hardware

    LabVIEW is a graphical programming environment used by

    millions of engineers and scientists to develop sophisticated

    measurement, test, and control systems

    LabVIEW can integrate with wide variety of hardware

    ni.com/training

    devices

    In this course, you will interact with DAQ, GPIB, and serial

    hardware

    10

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    11/33

    A. DAQ Hardware

    1. Signal

    2. Terminal Block

    3. Cable

    ni.com/training

    .5. Computer

    11

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    12/33

    DAQ Hardware Terminal Block & Cable

    DAQ Signal Accessoryterminal block used in this course

    ni.com/training12

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    13/33

    DAQ Hardware DAQ Device

    Most DAQ devices have four standard elements: analog

    input, analog output, digital I/O, and counters

    You can transfer the signal you measure with the DAQ

    device to the computer through a variety of different bus

    ni.com/training

    structures

    13

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    14/33

    DAQ Hardware Analog Input

    The process of measuring an analog signal and transferring

    the measurement to a computer for analysis, display, or

    storage

    An analog signal is a signal that varies continuously

    ni.com/training

    Analog input most commonly measures voltage or current

    14

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    15/33

    DAQ Hardware Analog Output

    The process of generating analog signals from your computer

    Performing digital-to-analog (D/A)

    conversions generates analog output

    ni.com/training

    are voltage and current

    To perform a voltage or current

    output, a compatible device must be

    installed that can generate that

    type of signal

    15

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    16/33

    DAQ Hardware Digital I/O

    Digital signals:

    Electrical signals that transfer digital data (on/off, high/low, 1/0)using a wire

    Used to control or measure digital or finite state devices, such

    ni.com/training

    Used to transfer data

    program devices

    communicate between devices

    Use digital signals as clocks or triggers tocontrol or synchronize other measurements

    16

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    17/33

    DAQ Hardware Counters

    Acounter is a digital timing device typically used for event

    counting, frequency measurement, period measurement,

    position measurement, and pulse generation

    A counter has a fixed number it can count to as determined

    ni.com/training

    by the resolution of the counter

    For example, a 24-bit counter

    can count to:

    2(Counter Resolution) 1 = 224 1 = 16,777,215

    17

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    18/33

    B. Using DAQ Software Configuration

    Configure and test your DAQ device using the Measurement

    & Automation Explorer (MAX)

    ni.com/training18

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    19/33

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    20/33

    Exercise 1-1

    Concept: Measurement and Automation Explorer

    GOAL

    Use MAX to examine, configure, and test a DAQ device.

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    21/33

    Exercise 1-1

    Concept: Measurement and Automation Explorer

    DISCUSSION

    What is a possible real-world application using DAQ?

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    22/33

    C. Instrument Control

    Use software on a PC to control an instrument over an

    instrument control bus

    Mix and match instruments from various categories

    ni.com/training

    ,communication protocols to use

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    23/33

    C. Instrument Control

    Benefits of Instrument Control

    Automate processes

    Save time

    ni.com/training

    Ease of use

    Many types of instruments available

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    24/33

    D. GPIBGPIB (general purpose

    interface bus) is astandard interface for

    communication between

    instruments and controllers

    from various vendors

    ni.com/training24

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    25/33

    GPIB

    The bus supports one system controller, usually a computer,

    and up to 14 additional instruments

    Controller:

    Defines the communication links

    ni.com/training

    Responds to devices that request service

    Sends GPIB commands

    Passes/receives control of the bus

    25

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    26/33

    E. Serial Port Communication

    Serial communication

    Transmits data between a computer and a peripheraldevice, such as a programmable instrument or anothercomputer

    ni.com/training

    ses a transm tter to sen ata one t at a t me over asingle communication line to a receiver

    Best method when data transfer rates are low, or you musttransfer data over long distances

    Most computers have one or more serial ports, so you donot need any extra hardware other than a cable

    26

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    27/33

    F. Using Instrument Control Software

    Interface Drivers: Instrument interfaces such as GPIB

    include a set of drivers for the interface

    Configuration: Use MAX to configure the interface

    ni.com/training27

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    28/33

    Exercise 1-2

    Concept: GPIB Configuration with MAX

    GOAL

    Learn to configure the NI Instrument Simulator and use MAX

    to examine the GPIB interface settings, detect instruments,and communicate with an instrument.

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    29/33

    Exercise 1-2

    Concept: GPIB Configuration with MAX

    DISCUSSION

    What is a possible real-world application using instrumentcontrol?

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    30/33

    SummaryQuiz

    1. You can use the Measurement & Automation Explorer

    (MAX) to examine, configure, and test your DAQ device

    and GPIB instruments.

    a) True

    ni.com/training

    b) False

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    31/33

    SummaryQuiz Answer

    1. You can use the Measurement & Automation Explorer

    (MAX) to examine, configure, and test your DAQ device

    and GPIB instruments.

    a) True

    ni.com/training

    b) False

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    32/33

    SummaryQuiz

    2. Which of the following are benefits of instrument control?

    a) Automate processes

    b) Save time

    c One latform for multi le tasks

    ni.com/training

    d) Limited to only one type of instrument

  • 8/10/2019 Lesson 1 - Setting Up Hardware.pdf

    33/33

    SummaryQuiz Answers

    2. Which of the following are benefits of instrument control?

    a) Automate processes

    b) Save time

    c One latform for multi le tasks

    ni.com/training

    d) Limited to only one type of instrument