Saturday, September 25, 2010

Temperature System VI

Summary: Our goal is to set keyboard shortcuts for front panel controls and display a subVI front panel when a VI runs. Complete the following steps to build a temperature monitoring system you can use to view three different tests on request.

EXERCISE 1

1.A) Front Panel

  1. Open the Temperature System VI located in the C:\Exercises\ LabVIEW Basics I directory. The following front panel is already built.
    Figure 1
    Figure 1 (tempsys.png)
    The front panel contains four Boolean buttons. The mechanical action of the first three buttons is Latch When Pressed. This setting changes the control value when you click it and retains the new value until the VI reads it once. At this point the control reverts to its default value, even if you keep pressing the mouse button. This action is similar to a circuit breaker and is useful for stopping While Loops or for getting the VI to perform an action only once each time you set the control. The mechanical action of theStop button is Latch When Released. This setting changes the control value only after you release the mouse button within the graphical boundary of the control. When the VI reads it once, the control reverts to the old value. This action guarantees at least one new value. This action is similar to dialog box buttons and system buttons.
  2. Right-click a control and select Advanced>>Key Navigation from the shortcut menu to display the Key Navigation dialog box.
  3. In the Key Assignment section, assign the shortcut key shown in the Figure 1.
  4. Repeat Item 2 and Item 3 for each control.

1.B) Block Diagram

  1. Examine the block diagram which is already built.
    Figure 2
    Figure 2 (tempsysbd.png)
    • disptempicon.png The Display Temp VI simulates a temperature measurement every 500 ms and plots it on a strip chart.
    • displogtempicon.png The Display and Log Temp VI simulates a temperature measurement every 500 ms, plots it on a strip chart, and logs it to a file.
    • disploggedtempicon.png The Display Logged Temp VI opens a file that you select, reads the logged data, and displays them on a graph.
  2. Configure each subVI to display its front panel when called.
    1. Right-click the subVI and select SubVI Node Setup from the shortcut menu.
    2. Place checkmarks in the Show Front Panel when called and Close afterwards if originally closed checkboxes.
    3. Click OK to close the SubVI Node Setup dialog box.
    4. Repeat Item 10 through Item 12 for the remaining two subVIs.
  3. Save the VI. Display the front panel and run the VI.
  4. Click each button and press the corresponding keyboard shortcuts. The three subVIs return to the Temperature System VI front panel when you press the <Enter> key. Try pressing the <Enter> key to do so.
  5. Stop the VI.
  6. Configure the Temperature System VI to run automatically when you open the VI.
    1. Select File>>VI Properties.
    2. Select Execution from the Category pull-down menu.
    3. Place a checkmark in the Run When Opened checkbox.
  7. Configure the VI so the menu bar and toolbar are not visible while the VI runs.
    1. Select Window Appearance from the Category pull-down menu.
    2. Click the Customize button.
    3. Remove the checkmarks from the Show Menu Bar and Show Toolbar When Running checkboxes.
    4. Click the OK button twice.
  8. Save and close all VIs.
  9. Open the Temperature System VI again. The VI runs automatically when you open it. Click the buttons on the front panel or use the keyboard shortcuts.
  10. Stop and close all VIs.

Content actions

GIVE FEEDBACK:

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Popular Projects

My Blog List

Give support

Give support
Encourage Me through Comments & Followers

Followers