Monday, 11 September 2017
Chapter 2: Using a Table to Display Data
Complete the following steps to display a collection of mean values in a
front panel table.
1. Display the front panel.
2. On the Controls palette search for the Express Table indicator and
add it to the right of the waveform graph.
3. Display the block diagram.
LabVIEW wired the Table terminal to the Build Table Express VI.
4. If the Build Table Express VI and the Table terminal are not selected
already, click an open area on the block diagram to the left of the Build
Table Express VI and the Table terminal. Drag the cursor diagonally
until the selection rectangle encloses the Build Table Express VI and
the Table terminal, shown at left.
5. Drag the objects into the While Loop to the right of the Sample
Compression Express VI.
If you drag objects near the border of the While Loop, the loop resizes
to enclose the Build Table Express VI and the Table terminal after you
add the object to the block diagram.
6. Use the Wiring tool to wire the Mean output of the Sample
Compression Express VI to the Signals input of the Build Table
Express VI.
7. The block diagram should appear similar to Figure 2-5.
Figure 2-5. Block Diagram of the Reduce Samples VI
8. Display the front panel and arrange the controls and indicators as
shown in Figure 2-1.
9. Run the VI.
10. Click the Enable switch.
If the Enable switch is on, the table displays the mean values of every
25 samples of the sine wave. If the Enable switch is off, the table does
not record the mean values.
11. Stop the VI.
12. Experiment with properties of the table by using the Table Properties
dialog box. For example, try changing the number of columns to one.
13. Save and close the VI.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment