Skip to content Skip to navigation

Connexions

You are here: Home » Content » Temperature Control VI

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.

Temperature Control VI

Module by: National Instruments

Summary: In this exercise, the objective is to use the Case structure in a VI. Complete the following steps to build a VI that allows the user to analyze data for limit testing and to determine the highest value.

Exercise 1

1.a) Front Panel

  1. Open the Temperature Running Average VI.
  2. Modify the front panel as shown in Figure 1.
    Figure 1
    Figure 1 (tempcontrol.png)
    1. Place a horizontal smooth box, located on the Controls>>All Controls>>Decorations palette, on the front panel. This decoration visibly groups the Analysis items.
    2. Create a duplicate of the Power Boolean switch. Label the new switch ANALYSIS. Right-click the switch and select Mechanical Action>>Switch When Pressed from the shortcut menu.
    3. Place a numeric control, located on the Controls>>Numeric Controls palette, on the front panel. Label the control High Limit.
    4. Place a round LED, located on the Controls>>LEDs palette, on the front panel. Label the indicator Warning.
    5. Place a numeric indicator from the Controls>>Numeric Indicators palette, on the front panel. Label the indicator High Value.
    6. Right-click the chart display and select Visible Items>>Digital Display from the shortcut menu to display the digital values.
  3. Select File>>Save As to save the VI as Temperature Control.vi in the C:\Exercises\LabVIEW Basics I directory.

1.b) Block Diagram

  1. Modify the block diagram as shown Figure 2. Enlarge the While Loop to create space for the new items.
    Figure 2
    Figure 2 (tempcontrolbd.png)
    1. case.png Place the Case structure, located on the Functions>>Execution Control palette, on the block diagram. Wire the Analysis control to the selector terminal. Click the decrement or increment button to select the True case.
    2. greaticon.png Place two Greater? functions, located on the Functions>>Arithmetic & Comparison>>Express Comparison palette, on the block diagram. This function returns True if the temperature exceeds High Limit. Otherwise, the function returns False.
    3. selecttherm.png Place the Select function, located on the Functions>>Arithmetic & Comparison>>Express Comparison palette, on the block diagram. This function returns the greater of the two input values.
    4. Wire the True case as shown in Figure 2.
    5. Click the decrement or increment button to select the False case.
  2. Complete the False case of the Case Structure, shown in Figure 3.
    Figure 3
    Figure 3 (tempcontrolfalse.png)
    1. Right-click the tunnel that connects to the Warning Indicator and select Create>>Constant. Use the Operating tool to change the Boolean constant to False.
    2. Right-click the tunnel that connects to the High Value indicator and select Create>>Constant. Enter -99999 for the value of the constant.
  3. Save the VI. You will use this VI later in the course.

1.c) Run the VI

  1. Display the front panel, type 80 in High Limit, and run the VI. If ANALYSIS is off, the VI turns off the Warning LED and displays a value of -99999 for High Value. If ANALYSIS is on, the VI turns on the Warning LED when the temperature is above High Limit and displays the current High Value.
  2. Close the VI.

Comments, questions, feedback, criticisms?

Send feedback