Skip to content Skip to navigation

Connexions

You are here: Home » Content » LabVIEW Course Exercise Code

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of a lens

      Lenses

      A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

      What is in a lens?

      Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

      Who can create a lens?

      Any individual Connexions member, a community, or a respected organization.

      What are tags? tag icon

      Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

    • External bookmarks
  • E-mail the author
  • Rate this module (How does the rating system work?)

    Rating system

    Ratings

    Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

    How to rate a module

    Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

    (0 ratings)

Lenses

What is a lens?

Definition of a lens

Lenses

A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual Connexions member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

This content is ...

Affiliated with (What does "Affiliated with" mean?)

This content is either by members of the organizations listed or about topics related to the organizations listed. Click each link to see a list of all content affiliated with the organization.
  • National Instruments display tagshide tags

    This module is included in aLens by: National InstrumentsAs a part of collection:"LabVIEW Graphical Programming Course"

    Comments:

    "A full introductory course on programming with LabVIEW."

    Click the "National Instruments" link to see all content affiliated with them.

    Click the tag icon tag icon to display tags associated with this content.

Recently Viewed

This feature requires Javascript to be enabled.

Tags

(What is a tag?)

These tags come from the endorsement, affiliation, and other lenses that include this content.

LabVIEW Course Exercise Code

Module by: National Instruments

Summary: This modules describes the requirements for completing the exercises included in the LabVIEW Graphical Programming Course. It also contains the code necessary for completing the exercises.

A. About This Course

This course teaches you how to use LabVIEW to develop test and measurement, data acquisition, instrument control, datalogging, measurement analysis, and report generation applications. This course assumes that you are familiar with Windows, Mac OS, or UNIX and that you have experience writing algorithms in the form of flowcharts or block diagrams.

The course is divided into lessons, each covering a topic or a set of topics. Each lesson consists of the following:

  • An introduction that describes the purpose of the lesson and what you will learn
  • A description of the topics in the lesson
  • A set of exercises to reinforce those topics. Some lessons include optional and challenge exercise sections or a set of additional exercises to complete if time permits.
  • A summary that outlines important concepts and skills taught in the lesson

Several exercises in this manual use one of the following National Instruments hardware products:

  • A plug-in multifunction data acquisition (DAQ) device connected to a DAQ Signal Accessory containing a temperature sensor, function generator, and LEDs
  • A GPIB interface connected to an NI Instrument Simulator

graphics1.png

If you do not have this hardware, you still can complete most of the exercises. Be sure to use the demo versions of the VIs when you are working through exercises. Exercises that explicitly require hardware are indicated with an icon, shown in Figure 1. You also can substitute other hardware for those previously mentioned. For example, you can use a GPIB instrument in place of the NI Instrument Simulator, or another National Instruments DAQ device connected to a signal source, such as a function generator.

B. What You Need to Get Started

Before you use this course manual, ensure you have all the following items:

  • (Windows) Windows 98 or later installed on your computer; (Mac OS) System 10.2 or later for Mac OS X, System 9.1 or later for OS 9.x or earlier; (UNIX) Sun workstation running Solaris 2.5.1 or later and X Window System server, such as OpenWindows, CDE, or X11R6, or a PC running Linux kernel 2.0.x or later for Intel x86 processors
  • (Windows) Multifunction DAQ device configured as device 1 using Measurement & Automation Explorer (MAX)
  • DAQ Signal Accessory, wires, and cable
  • GPIB interface
  • NI Instrument Simulator and power supply
  • LabVIEW Full or Professional Development System 7.0 or later.

This course assumes you are using the default installation of LabVIEW. If you have changed the palette views from the default settings, some palette paths described in the course may not match your settings. To reset palette views to LabVIEW defaults, select Tools»Options and select Controls/Functions Palettes from the top pull-down menu. Set Palette View to Express and set Format to Standard. Click the OK button to apply the changes and close the dialog box.

  • A serial cable
  • A GPIB cable
  • (Optional) A word processing application such as Notepad or WordPad
  • The following files provided
Table 1
Filename Description
Exercises Folder for saving VIs created during the course and for completing certain course exercises; also includes subVIs necessary for some exercises
nidevsim.zip Zip file containing the LabVIEW instrument driver for the NI Instrument Simulator (Contained in Exercises.zip)
Solutions Folder containing the solutions to all the course exercises

C. Installing the Course Software

Complete the following steps to install the course software.

  1. Copy the contents of the nidevsim directory to the labview\instr.lib directory. After you start LabVIEW, the NI DevSim instrument driver is located on the Functions»Input»Instrument Drivers palette.
  2. Copy the Exercises directory to the top level of the C: directory.
  3. Copy the Solutions directory to the top level of the C: directory.

D. Course Goals and Non-Goals

This course prepares you to do the following:

  • Understand front panels, block diagrams, icons, and connector panes
  • Use the programming structures and data types that exist in LabVIEW
  • Use various editing and debugging techniques
  • Create and save VIs so you can use them as subVIs
  • Display and log data
  • Create applications that use plug-in DAQ devices
  • Create applications that use serial port and GPIB instruments

This course does not describe any of the following:

  • Every built-in VI, function, or object; refer to the LabVIEW Help for more information about LabVIEW features not described in this course
  • Analog-to-digital (A/D) theory
  • Operation of the serial port
  • Operation of the GPIB bus
  • Developing an instrument driver
  • Developing a complete application for any student in the class; refer to the NI Example Finder, available by selecting Help»Find Examples, for example VIs you can use and incorporate into VIs you create

Note:

If you need assistance beyond that provided in this course, you can post a message to the National Instruments discussion forums at: http://forums.ni.com/

Comments, questions, feedback, criticisms?

Send feedback