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.
Temperature System VI located in
the C:\Exercises\ LabVIEW Basics I
directory. The following front panel is already built.
![]() Figure 1 |
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 the Stop 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.
Advanced>>Key
Navigation from the shortcut menu to display the
Key Navigation dialog box.
Key Assignment section, assign the
shortcut key shown in the Figure 1.
![]() Figure 2 |
Display Temp VI simulates a temperature
measurement every 500 ms and plots it on a strip chart.
Display and Log Temp VI simulates a
temperature measurement every 500 ms, plots it on a
strip chart, and logs it to a file.
Display Logged Temp VI opens a file
that you select, reads the logged data, and displays
them on a graph.
Temperature
System VI front panel when you press the
<Enter> key. Try pressing the
<Enter> key to do so.
Temperature System VI to run automatically
when you open the VI.
File>>VI Properties.
Execution from the
Category pull-down menu.
Run When
Opened checkbox.
Window Appearance from the
Category pull-down menu.
Customize button.
Show Menu
Bar and Show Toolbar When
Running checkboxes.
OK button twice.
Temperature System VI again. The
VI runs automatically when you open it. Click the
buttons on the front panel or use the keyboard
shortcuts.
Comments, questions, feedback, criticisms?
"A full introductory course on programming with LabVIEW."