National Instruments 374318A-01 用户手册

下载
页码 109
Chapter 4
Getting Started with Measurement Studio
© National Instruments Corporation
4-45
7.
Select Dark and click OK.
8.
Right-click the gauge and select Properties to display the Properties 
window.
9.
Set the Range property for the gauge with the drop-down Range type 
editor. Type 
-0.2
 for the minimum value and type 
0.2
 for the 
maximum value.
10. Right-click the numeric edit and select Properties to display the 
Properties window.
11. Select Gauge in the Source drop-down list. Setting the Source 
property to the gauge allows two-way binding between the controls.
12. Deselect ArrowKeysButtons, and Text for the InteractionMode 
property of the numeric edit control. Deselecting these interaction 
modes makes the numeric edit an indicator. 
13. Select the Format Mode property and in the Numeric Edit Format 
Mode Editor dialog box, change the Precision to 
4
.
14. Select File»Save Form1.cs to save your application.
15. Select Debug»Start Without Debugging to run the application.
16. After your program builds and runs, click Start. Notice the graph 
shows the data plot, and the gauge and the numeric edit display the 
mean of the data.