Professional Documents
Culture Documents
Exercise1 2 Description
Exercise1 2 Description
1-22
Lesson 1
Goal
|
ni.com
Learn to use the palettes and search for controls, functions, and VIs.
Navigating LabVIEW
Description
1. Open a blank LabVIEW project.
Click the Create Project button in the LabVIEW Getting Started window and then click Blank Project.
Click Finish.
Right-click My Computer in the Project Explorer window and select New»VI from the shortcut menu.
3. Select View»Controls Palette from the menu of the VI front panel window.
Select the following palettes to add them to the Controls palette and click the OK button. Do not deselect any palettes.
– Silver
– Signal Processing
Notice that the three palettes you just selected now appear in the Controls window.
Use palettes to locate controls and functions when you want to explore the options available to you or when you are not sure of the name of the control
or function you need.
Click String Control (Silver) in the search results and drag it to the front panel window to place the object.
6. Open the block diagram and right-click anywhere on the block diagram to display the Functions palette.
Click the pin in the upper left-hand corner to keep the palette open.
Tip You can customize the Functions palette just like you customized the Controls palette.
– In the search results, double-click Cosine <<Trigonometric Functions>> to display the function on the palette.
– Double-click File I/O in the search results to display the File I/O palette.
– Drag the Write To Text File function from the palette to the block diagram.
Use the Quick Drop feature when you know the name of the function or VI you want to use.
Type Bundle By Name and double-click Bundle By Name in the search results. The cursor changes to a hand with the Bundle By Name function.
Double-click the function in the search results and place the function on the block diagram.
Type Random in the Search bar in the upper right hand corner of the block diagram.
| 1-23
Note As you type, the global search automatically looks for matches in the LabVIEW Help and LabVIEW palettes. It also searches for online
material related to your query.
Hover the mouse over the first result in the Palette section, Random Number (0-1). You now see the following three options:
1-24
Lesson 1
– Drop—Allows you to place this function immediately on the block diagram
|
ni.com
Navigating LabVIEW
– Help—Brings up the help topic for this function.
Right-click the Add function and notice that Numeric palette is available from the shortcut menu.
Practice placing functions from the Numeric palette on the block diagram.
11. Close the VI and LabVIEW project. You do not need save the files.