lesson 1 - hardware

6
 1 ni.com/training  LabVIEW Core 1 ni.com/training What You Need To Get Started Computer running LabVIEW 2009 or later and Windows 2000 or later LabVIEW Core 1 Course Man ual LabVIEW Core 1 Exercise Manual LabVIEW Core 1 Course C D Multifunction DAQ device GPIB interface DAQ Signal Accessory, wires, and cable NI Instrument Simulator and power supply Serial and GPIB cables ni.com/training File Locations The course installer places the course files in the following location: Root Directory Exercises <or> Solutions LabVIEW Core 1 ni.com/training Instructional Methods Topic Lecture Quizzes Demonstrations Concept Exercise Development Exercise ni.com/training Getting The Most Out Of This Course  Ask questions! Experiment with hands-on exercis es to understand the methods used Explore solutions Implementations ex plore a possible solution—you may find a b etter one ni.com/training Courses New User LabVIEW Core 1 LabV IEW Core 2 Experienced User LabVIEW Core 3 Managing Software Engineering in LabVIEW LabVIEW OOP System Design Advanced Architectures in LabVIEW Certifications Certified LV Associate Developer Exam Skills tested: LabVIEW environ ment knowledge Certified LabVIEW Developer Exam Skills tested: LabVIEW applica tion development expertise Certified LabVIEW Architect Exam Skills tested: LabVIE W ap plicati on development mastery Skills learned: LabVIEW enviro nment navigation Dataflo w p rogrammi ng Use of common d esign techniques Event driven pr ogrammin g Programmatic U I contr ol Skills learned: Modular applica tion development Struct ured de sign an d development practices Inter-a pplicat ion communication and connectivity techniques Skills learned: Manag e a LabVIEW pro ject from design to deployment Object-oriented programming for LabVIEW Devel opscalabl eapplicati onsand reusablecode Advanced design pa tterns for LabVIEW

Upload: harald

Post on 05-Oct-2015

8 views

Category:

Documents


0 download

DESCRIPTION

Labview

TRANSCRIPT

  • 1ni.com/training

    LabVIEW Core 1

    ni.com/training

    What You Need To Get Started

    Computer runningLabVIEW 2009 or laterand Windows 2000 or later

    LabVIEW Core 1 Course Manual LabVIEW Core 1 Exercise Manual LabVIEW Core 1 Course CD Multifunction DAQ device GPIB interface DAQ Signal Accessory, wires, and cable NI Instrument Simulator and power supply Serial and GPIB cables

    ni.com/training

    File LocationsThe course installer places the course files in the followinglocation:

    Root Directory ExercisesSolutionsLabVIEWCore 1

    ni.com/training

    Instructional Methods

    TopicLecture

    Quizzes

    DemonstrationsConceptExercise

    DevelopmentExercise

    ni.com/training

    Getting The Most Out Of This Course Ask questions! Experiment with hands-on exercises to understand themethods used

    Explore solutions Implementations explore a possible solutionyou may finda better one

    ni.com/training

    CoursesNew User

    LabVIEW Core 1LabVIEW Core 2

    Experienced UserLabVIEW Core 3 Managing SoftwareEngineering in LabVIEW

    LabVIEW OOP SystemDesign

    Advanced Architecturesin LabVIEW

    CertificationsCertified LV Associate

    Developer ExamSkills tested: LabVIEW environmentknowledge

    Certified LabVIEWDeveloper Exam

    Skills tested: LabVIEW applicationdevelopment expertise

    Certified LabVIEWArchitect Exam

    Skills tested: LabVIEW applicationdevelopment mastery

    Skills learned: LabVIEW environmentnavigation

    Dataflow programming Use of common designtechniques

    Event driven programming Programmatic UI control

    Skills learned: Modular applicationdevelopment

    Structured design anddevelopment practices

    Inter-applicationcommunication andconnectivity techniques

    Skills learned: Manage a LabVIEW project from

    design to deployment Object-oriented programming for

    LabVIEW Develop scalable applications and

    reusable code Advanced design patterns for LabVIEW

  • 2ni.com/training

    Course Learning Map

    Lesson 3Lesson 3Troubleshooting & DebuggingVIs

    Lesson 2Lesson 2Navigating LabVIEW

    Lesson 1Lesson 1Setting Up Hardware

    Lesson 6Lesson 6Managing Resources

    Lesson 5Lesson 5Relating Data

    Lesson 4Lesson 4Implementing a VI

    Lesson 9Lesson 9Using Variables

    Lesson 8Lesson 8Common Design Techniquesand Patterns

    Lesson 7Lesson 7Developing ModularApplications

    ni.com/training

    Course GoalsThis course prepares you for the following: Solve problems using LabVIEW Use data acquisition and instrument control in LabVIEWapplications

    Use modular programming practices Develop, debug, and test LabVIEW VIs Effectively use a state machine architecture Parallelism and variables

    8

    TOPICS

    ni.com/training

    Lesson 1Setting Up Hardware

    A. DAQ HardwareB. Using DAQ SoftwareC. Instrument ControlD. GPIB

    E. Serial PortCommunication

    F. Using Instrument ControlSoftware

    ni.com/training

    Setting Up Hardware LabVIEW is a graphical programming environment used bymillions of engineers and scientists to develop sophisticatedmeasurement, test, and control systems

    LabVIEW can integrate with wide variety of hardwaredevices

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

    10

    ni.com/training

    A. DAQ Hardware1. Signal2. Terminal Block3. Cable4. DAQ Device5. Computer

    11 ni.com/training

    DAQ Hardware Terminal Block & CableDAQ Signal Accessoryterminal block used in this course

    12

  • 3ni.com/training

    DAQ Hardware DAQ Device Most DAQ devices have four standard elements: analoginput, analog output, digital I/O, and counters

    You can transfer the signal you measure with the DAQdevice to the computer through a variety of different busstructures

    13 ni.com/training

    DAQ Hardware Analog InputThe process of measuring an analog signal and transferringthe measurement to a computer for analysis, display, orstorage An analog signal is a signal that varies continuously Analog input most commonly measures voltage or current

    14

    ni.com/training

    DAQ Hardware Analog OutputThe process of generating analog signals from your computer Performing digital-to-analog (D/A)conversions generates analog output

    The available analog output typesare voltage and current

    To perform a voltage or currentoutput, a compatible device must beinstalled that can generate thattype of signal

    15 ni.com/training

    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, suchas switches and LEDs

    Used to transfer data program devices communicate between devices

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

    16

    ni.com/training

    DAQ Hardware Counters A counter is a digital timing device typically used for eventcounting, frequency measurement, period measurement,position measurement, and pulse generation

    A counter has a fixed number it can count to as determinedby the resolution of the counter

    For example, a 24-bit countercan count to:2(Counter Resolution) 1 = 224 1 = 16,777,215

    17 ni.com/training

    B. Using DAQ Software Configuration Configure and test your DAQ device using the Measurement& Automation Explorer (MAX)

    18

  • 4ni.com/training

    Simulating a DAQ Device Using NI-DAQmx simulated devices, you can try NI productsin your application without the hardware

    With NI-DAQmx simulated devices, you also can export aphysical device configuration onto a system that does nothave the physical device installed

    19GOAL

    Exercise 1-1Concept: Measurement and Automation Explorer

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

    DISCUSSION

    Exercise 1-1Concept: Measurement and Automation Explorer

    What is a possible real-world application using DAQ?ni.com/training

    C. Instrument Control Use software on a PC to control an instrument over aninstrument control bus

    Mix and match instruments from various categories Understand the properties of the instrument, such as thecommunication protocols to use

    ni.com/training

    C. Instrument ControlBenefits of Instrument Control Automate processes Save time One platform for multiple tasks Ease of use Many types of instruments available

    ni.com/training

    D. GPIBGPIB (general purposeinterface bus) is astandard interface forcommunication betweeninstruments and controllersfrom various vendors

    24

  • 5ni.com/training

    GPIB The bus supports one system controller, usually a computer,and up to 14 additional instruments

    Controller: Defines the communication links Responds to devices that request service Sends GPIB commands Passes/receives control of the bus

    25 ni.com/training

    E. Serial Port CommunicationSerial communication Transmits data between a computer and a peripheraldevice, such as a programmable instrument or anothercomputer Uses a transmitter to send data one bit at a time 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

    ni.com/training

    F. Using Instrument Control Software Interface Drivers: Instrument interfaces such as GPIBinclude a set of drivers for the interface

    Configuration: Use MAX to configure the interface

    27GOAL

    Exercise 1-2Concept: GPIB Configuration with MAX

    Learn to configure the NI Instrument Simulator and use MAXto examine the GPIB interface settings, detect instruments,and communicate with an instrument.

    DISCUSSION

    Exercise 1-2Concept: GPIB Configuration with MAX

    What is a possible real-world application using instrumentcontrol?

    ni.com/training

    SummaryQuiz1. You can use the Measurement & Automation Explorer

    (MAX) to examine, configure, and test your DAQ deviceand GPIB instruments.a) Trueb) False

  • 6ni.com/training

    SummaryQuiz Answer1. You can use the Measurement & Automation Explorer

    (MAX) to examine, configure, and test your DAQ deviceand GPIB instruments.a) Trueb) False

    ni.com/training

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

    a) Automate processesb) Save timec) One platform for multiple tasksd) Limited to only one type of instrument

    ni.com/training

    SummaryQuiz Answers2. Which of the following are benefits of instrument control?

    a) Automate processesb) Save timec) One platform for multiple tasksd) Limited to only one type of instrument